MemberLevelSelect-ebc45d36.js 1.3 KB

1
  1. import{d as y,b as V,r as x,B as w,o as l,l as u,w as n,c as h,F as g,k,a as o,g as M,i as L,j as S,t as j,y as z,D,G as U,_ as B,__tla as E}from"./index-af173888.js";import{E as F,__tla as G}from"./el-avatar-d6d93c05.js";import{a as H,__tla as N}from"./index-00c1d4c5.js";let c,P=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return G}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{let s;s={class:"flex items-center gap-x-8px"},c=B(y({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)}}),t=x([]);return w(()=>{(async()=>t.value=await H())()}),(r,m)=>{const f=F,v=D,b=U;return l(),u(b,{modelValue:o(a),"onUpdate:modelValue":m[0]||(m[0]=e=>z(a)?a.value=e:null),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7B49\u7EA7",clearable:"",class:"!w-240px"},{default:n(()=>[(l(!0),h(g,null,k(o(t),e=>(l(),u(v,{key:e.id,label:e.name,value:e.id},{default:n(()=>[M("span",s,[L(f,{src:e.icon,size:"small"},null,8,["src"]),S(" "+j(e.name),1)])]),_:2},1032,["label","value"]))),128))]),_:1},8,["modelValue"])}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/member/level/components/MemberLevelSelect.vue"]])});export{P as __tla,c as default};