main-4d7fe365.js 1.1 KB

1
  1. import{d as f,e as p,r as v,l as h,o as s,v as c,w,c as x,F as y,q as g,a as m,y as V,z as b,_ as k,__tla as z}from"./index-11e4820e.js";import{f as U,__tla as q}from"./index-413a299f.js";let d,A=Promise.all([(()=>{try{return z}catch{}})(),(()=>{try{return q}catch{}})()]).then(async()=>{d=k(f({name:"WxAccountSelect",__name:"main",emits:["change"],setup(C,{emit:o}){const a=p({id:-1,name:""}),e=v([]),i=o,r=u=>{const l=e.value.find(t=>t.id===u);a.id&&(a.name=l?l.name:"",i("change",a.id,a.name))};return h(()=>{(async()=>(e.value=await U(),e.value.length>0&&(a.id=e.value[0].id,a.id&&(a.name=e.value[0].name,i("change",a.id,a.name)))))()}),(u,l)=>{const t=V,_=b;return s(),c(_,{modelValue:m(a).id,"onUpdate:modelValue":l[0]||(l[0]=n=>m(a).id=n),placeholder:"\u8BF7\u9009\u62E9\u516C\u4F17\u53F7",class:"!w-240px",onChange:r},{default:w(()=>[(s(!0),x(y,null,g(m(e),n=>(s(),c(t,{key:n.id,label:n.name,value:n.id},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/mp/components/wx-account-select/main.vue"]])});export{A as __tla,d as default};