MemberLevelSelect-e665f498.js 1.3 KB

1
  1. import{d as V,e as x,r as y,z as w,o as l,k as u,w as n,c as z,F as h,C as L,a as o,j as S,i as M,l as g,t as j,R as k,G as C,H as D,_ as E,__tla as F}from"./index-2f799233.js";import{E as G,__tla as H}from"./el-avatar-7a15dd9c.js";import{a as N,__tla as P}from"./index-2f01728c.js";let c,R=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return P}catch{}})()]).then(async()=>{let s;s={class:"flex items-center gap-x-8px"},c=E(V({name:"MemberLevelSelect",__name:"MemberLevelSelect",props:{modelValue:{type:Number,default:void 0}},emits:["update:modelValue"],setup(_,{emit:d}){const i=_,p=d,a=x({get:()=>i.modelValue,set(r){p("update:modelValue",r)}}),t=y([]);return w(()=>{(async()=>t.value=await N())()}),(r,m)=>{const f=G,v=C,b=D;return l(),u(b,{modelValue:o(a),"onUpdate:modelValue":m[0]||(m[0]=e=>k(a)?a.value=e:null),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7B49\u7EA7",clearable:"",class:"!w-240px"},{default:n(()=>[(l(!0),z(h,null,L(o(t),e=>(l(),u(v,{key:e.id,label:e.name,value:e.id},{default:n(()=>[S("span",s,[M(f,{src:e.icon,size:"small"},null,8,["src"]),g(" "+j(e.name),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__file","D:/zx/mall-newfeifan-zx-business/src/views/member/level/components/MemberLevelSelect.vue"]])});export{R as __tla,c as default};