import{d as w,p as l,r as p,f as F,aP as d,o as x,l as j,w as m,a as t,K as N,i as c,dI as P,H as V,_ as g,__tla as k}from"./index-8c6726e5.js";import{_ as H,__tla as O}from"./Editor-1fcaafc3.js";import{u as R,__tla as U}from"./useMessage-9f6930df.js";import{r as z,__tla as I}from"./formRules-7a1e0413.js";let n,K=Promise.all([(()=>{try{return k}catch{}})(),(()=>{try{return O}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return I}catch{}})()]).then(async()=>{n=g(w({name:"ProductDescriptionForm",__name:"DescriptionForm",props:{propFormData:{type:Object,default:()=>{}},activeName:l.string.def(""),isDetail:l.bool.def(!1)},emits:["update:activeName"],setup(i,{expose:_,emit:u}){const f=R(),o=i,s=p(),e=p({description:""}),v=F({description:[z]});d(()=>e.value.description,a=>{a==="<p><br></p>"&&(e.value.description="")},{deep:!0,immediate:!0}),d(()=>o.propFormData,a=>{a&&P(e.value,a)},{immediate:!0});const D=u;return _({validate:async()=>{var a;if(s)try{await((a=t(s))==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"),D("update:activeName","description"),r}}}),(a,r)=>{const b=V,y=N;return x(),j(y,{ref_key:"formRef",ref:s,model:t(e),rules:t(v),"label-width":"120px",disabled:i.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","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/DescriptionForm.vue"]])});export{K as __tla,n as default};
