MemberLevelSelect-3d68b2b6.js 1.3 KB

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