1 |
- import{d as w,ag as l,r as d,e as F,N as p,o as x,x as g,w as c,a as t,Y as N,H as j,f as m,bg as V,C as z,_ as O,__tla as P}from"./index-38ca2ce1.js";import{_ as k,__tla as C}from"./Editor-4cac483d.js";import{u as H,__tla as I}from"./useMessage-1a1b9385.js";import{r as R,__tla as U}from"./formRules-7bebc0bd.js";let _,Y=Promise.all([(()=>{try{return P}catch{}})(),(()=>{try{return C}catch{}})(),(()=>{try{return I}catch{}})(),(()=>{try{return U}catch{}})()]).then(async()=>{_=O(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:n,emit:u}){const f=H(),o=s,i=d(),e=d({description:""}),v=F({description:[R]});p(()=>e.value.description,a=>{a==="<p><br></p>"&&(e.value.description="")},{deep:!0,immediate:!0}),p(()=>o.propFormData,a=>{a&&V(e.value,a)},{immediate:!0});const D=u;return n({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"),D("update:activeName","description"),r}}}),(a,r)=>{const b=z,y=j;return x(),g(y,{ref_key:"formRef",ref:i,model:t(e),rules:t(v),disabled:s.isDetail,class:N({view:s.isDetail})},{default:c(()=>[m(b,{prop:"description"},{default:c(()=>[m(t(k),{modelValue:t(e).description,"onUpdate:modelValue":r[0]||(r[0]=h=>t(e).description=h)},null,8,["modelValue"])]),_:1})]),_:1},8,["model","rules","disabled","class"])}}}),[["__scopeId","data-v-4783d9de"],["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mall/product/spu/form/DescriptionForm.vue"]])});export{Y as __tla,_ as default};
|