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