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