import{W as x,X as g}from"./element-plus.8c800afc.js";import{M as v}from"./picker.e9a187d6.js";import{P as V}from"./index.d0a14c5a.js";import{d as i,s as h,r as B,b as R,Z as c,o as w,c as P,U as o,L as a,u as s,R as n,S as r}from"./@vue.18505fe0.js";const M={class:"edit-popup"},N=i({name:"brandEdit"}),I=i({...N,props:{dictData:{type:Object,default:()=>({})}},emits:["success","close"],setup(S,{expose:d,emit:m}){const _=m,p=h(),f=B("add"),b=R(()=>"\u54C1\u724C\u8BE6\u60C5"),t=c({id:"",name:"",py:"",number:"",data:"",more:"",pic:"",sort:""});c({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",trigger:["blur"]}]});const C=async u=>{for(const e in t)u[e]!=null&&u[e]!=null&&(t[e]=u[e])},F=(u="add")=>{var e;f.value=u,(e=p.value)==null||e.open()},E=()=>{_("close")};return d({open:F,setFormData:C}),(u,e)=>{const l=x,D=v,y=g;return w(),P("div",M,[o(V,{ref_key:"popupRef",ref:p,async:!0,width:"550px",onClose:E,"bottom-btn":!1},{default:a(()=>[o(y,{class:"margin-top",title:s(b),column:1,border:""},{default:a(()=>[o(l,{label:"\u54C1\u724C\u540D\u79F0"},{default:a(()=>[n(r(s(t).name),1)]),_:1}),o(l,{label:"\u54C1\u724C\u7F16\u53F7"},{default:a(()=>[n(r(s(t).number),1)]),_:1}),o(l,{label:"\u5907\u6CE8\u4FE1\u606F"},{default:a(()=>[n(r(s(t).data),1)]),_:1}),o(l,{label:"\u6269\u5C55\u4FE1\u606F"},{default:a(()=>[n(r(s(t).more),1)]),_:1}),o(l,{label:"\u56FE\u7247"},{default:a(()=>[o(D,{modelValue:s(t).pic,"onUpdate:modelValue":e[0]||(e[0]=k=>s(t).pic=k),disabled:""},null,8,["modelValue"])]),_:1}),o(l,{label:"\u6392\u5E8F"},{default:a(()=>[n(r(s(t).sort),1)]),_:1})]),_:1},8,["title"])]),_:1},512)])}}});export{I as _};
