main-b47fe5c9.js 1.1 KB

1
  1. import{d as f,f as p,r as v,B as h,o as t,l as c,w,c as x,F as g,k as y,a as m,D as k,G as V,_ as b,__tla as D}from"./index-af173888.js";import{f as U,__tla as z}from"./index-ef06add8.js";let d,A=Promise.all([(()=>{try{return D}catch{}})(),(()=>{try{return z}catch{}})()]).then(async()=>{d=b(f({name:"WxAccountSelect",__name:"main",emits:["change"],setup(B,{emit:o}){const a=p({id:-1,name:""}),e=v([]),i=o,r=u=>{const l=e.value.find(s=>s.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 s=k,_=V;return t(),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(()=>[(t(!0),x(g,null,y(m(e),n=>(t(),c(s,{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};