MemberLevelSelect-221c1e8e.js 1.3 KB

1
  1. import{d as b,K as V,r as x,l as g,o as l,v as n,w as u,c as h,F as w,q as z,a as o,g as L,f as M,n as S,t as j,O as k,y as q,z as D,_ as E,__tla as F}from"./index-663b822b.js";import{E as K,__tla as N}from"./el-avatar-b5d05e5d.js";import{a as O,__tla as P}from"./index-2a32dd00.js";let c,U=Promise.all([(()=>{try{return F}catch{}})(),(()=>{try{return N}catch{}})(),(()=>{try{return P}catch{}})()]).then(async()=>{let t;t={class:"flex items-center gap-x-8px"},c=E(b({name:"MemberLevelSelect",__name:"MemberLevelSelect",props:{modelValue:{type:Number,default:void 0}},emits:["update:modelValue"],setup(_,{emit:d}){const i=_,p=d,a=V({get:()=>i.modelValue,set(r){p("update:modelValue",r)}}),s=x([]);return g(()=>{(async()=>s.value=await O())()}),(r,m)=>{const f=K,v=q,y=D;return l(),n(y,{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:u(()=>[(l(!0),h(w,null,z(o(s),e=>(l(),n(v,{key:e.id,label:e.name,value:e.id},{default:u(()=>[L("span",t,[M(f,{src:e.icon,size:"small"},null,8,["src"]),S(" "+j(e.name),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/member/level/components/MemberLevelSelect.vue"]])});export{U as __tla,c as default};