import{a0 as E,a1 as h}from"./element-plus.4a7d92a3.js";import{P as k}from"./index.a19e7573.js";import{d as i,s as x,r as g,b as v,Z as p,o as B,c as R,U as o,L as u,u as a,R as l,S as r}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,c=x(),f=g("add"),b=v(()=>"\u5355\u4F4D\u8BE6\u60C5"),t=p({id:"",name:"",py:"",number:"",data:"",is_bulk:""});p({name:[{required:!0,message:"\u8BF7\u8F93\u5165\u54C1\u724C\u540D\u79F0",trigger:["blur"]}]});const F=async s=>{for(const e in t)s[e]!=null&&s[e]!=null&&(t[e]=s[e])},D=(s="add")=>{var e;f.value=s,(e=c.value)==null||e.open()},C=()=>{_("close")};return d({open:D,setFormData:F}),(s,e)=>{const n=E,y=h;return B(),R("div",w,[o(k,{ref_key:"popupRef",ref:c,async:!0,width:"550px",onClose:C,"bottom-btn":!1},{default:u(()=>[o(y,{class:"margin-top",title:a(b),column:1,border:""},{default:u(()=>[o(n,{label:"\u5355\u4F4D\u540D\u79F0"},{default:u(()=>[l(r(a(t).name),1)]),_:1}),o(n,{label:"\u5355\u4F4D\u7F16\u53F7"},{default:u(()=>[l(r(a(t).number),1)]),_:1}),o(n,{label:"\u662F\u5426\u6563\u88C5"},{default:u(()=>[l(r(a(t).is_bulk?"\u662F":"\u5426"),1)]),_:1}),o(n,{label:"\u5907\u6CE8\u4FE1\u606F"},{default:u(()=>[l(r(a(t).data),1)]),_:1})]),_:1},8,["title"])]),_:1},512)])}}});export{j as _};
