import{d as w,p as l,r as p,f as F,aP as d,o as P,l as j,w as m,a as t,K as x,i as c,dI as N,H as O,_ as V,__tla as g}from"./index-2c56227b.js";import{_ as H,__tla as k}from"./Editor-d05caa83.js";import{u as A,__tla as E}from"./useMessage-96878a4a.js";import{r as G,__tla as I}from"./formRules-5c913959.js";let n,K=Promise.all([(()=>{try{return g}catch{}})(),(()=>{try{return k}catch{}})(),(()=>{try{return E}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{n=V(w({name:"ProductDescriptionForm",__name:"DescriptionForm",props:{propFormData:{type:Object,default:()=>{}},activeName:l.string.def(""),isDetail:l.bool.def(!1)},emits:["update:activeName"],setup(s,{expose:_,emit:u}){const f=A(),o=s,i=p(),e=p({description:""}),v=F({description:[G]});d(()=>e.value.description,a=>{a==="<p><br></p>"&&(e.value.description="")},{deep:!0,immediate:!0}),d(()=>o.propFormData,a=>{a&&N(e.value,a)},{immediate:!0});const y=u;return _({validate:async()=>{var a;if(i)try{await((a=t(i))==null?void 0:a.validate()),Object.assign(o.propFormData,e.value)}catch(r){throw f.error("\u3010\u5546\u54C1\u8BE6\u60C5\u3011\u4E0D\u5B8C\u5584\uFF0C\u8BF7\u586B\u5199\u76F8\u5173\u4FE1\u606F"),y("update:activeName","description"),r}}}),(a,r)=>{const b=O,D=x;return P(),j(D,{ref_key:"formRef",ref:i,model:t(e),rules:t(v),"label-width":"120px",disabled:s.isDetail},{default:m(()=>[c(b,{label:"\u5546\u54C1\u8BE6\u60C5",prop:"description"},{default:m(()=>[c(t(H),{modelValue:t(e).description,"onUpdate:modelValue":r[0]||(r[0]=h=>t(e).description=h)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules","disabled"])}}}),[["__file","E:/GAOHP_2023/mall/newfeifan-front/yudao-ui-admin-vue3/src/views/mall/product/spu/form/DescriptionForm.vue"]])});export{K as __tla,n as default};
