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