MemberLevelSelect-dba586c6.js 1.3 KB

1
  1. import{d as y,K as V,r as x,l as w,o as l,v as u,w as n,c as g,F as h,q as z,a as o,g as L,f as M,n as S,t as k,O as U,y as j,z as q,_ as D,__tla as E}from"./index-11e4820e.js";import{E as F,__tla as H}from"./el-avatar-ae8c6775.js";import{a as K,__tla as N}from"./index-f4819903.js";let c,O=Promise.all([(()=>{try{return E}catch{}})(),(()=>{try{return H}catch{}})(),(()=>{try{return N}catch{}})()]).then(async()=>{let s;s={class:"flex items-center gap-x-8px"},c=D(y({name:"MemberLevelSelect",__name:"MemberLevelSelect",props:{modelValue:{type:Number,default:void 0}},emits:["update:modelValue"],setup(_,{emit:d}){const p=_,i=d,a=V({get:()=>p.modelValue,set(r){i("update:modelValue",r)}}),t=x([]);return w(()=>{(async()=>t.value=await K())()}),(r,m)=>{const f=F,v=j,b=q;return l(),u(b,{modelValue:o(a),"onUpdate:modelValue":m[0]||(m[0]=e=>U(a)?a.value=e:null),placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7B49\u7EA7",clearable:"",class:"!w-240px"},{default:n(()=>[(l(!0),g(h,null,z(o(t),e=>(l(),u(v,{key:e.id,label:e.name,value:e.id},{default:n(()=>[L("span",s,[M(f,{src:e.icon,size:"small"},null,8,["src"]),S(" "+k(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{O as __tla,c as default};