import{d as w,ac as l,r as p,e as F,aM as d,o as x,x as j,w as m,a as t,H as N,f as c,bq as V,C as g,_ as k,__tla as H}from"./index-8dc1e40a.js";import{_ as O,__tla as P}from"./Editor-78efff00.js";import{u as R,__tla as U}from"./useMessage-7a27dd80.js";import{r as q,__tla as z}from"./formRules-467f9efe.js";let n,C=Promise.all([(()=>{try{return H}catch{}})(),(()=>{try{return P}catch{}})(),(()=>{try{return U}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{n=k(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:u,emit:_}){const f=R(),o=i,s=p(),e=p({description:""}),v=F({description:[q]});d(()=>e.value.description,a=>{a==="<p><br></p>"&&(e.value.description="")},{deep:!0,immediate:!0}),d(()=>o.propFormData,a=>{a&&V(e.value,a)},{immediate:!0});const D=_;return u({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=g,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(O),{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{C as __tla,n as default};
