123 |
- import{e as _,a0 as t,g as o,h as a,A as r,q as s,p as c,F as k,Q as C,j as h,n as S,x as i}from"./vue.e266cb73.js";import{_ as w}from"./_plugin-vue_export-helper.c27b6911.js";const B={class:"icon-selector-warp-row"},b=_({name:"iconSelectorList"}),I=_({...b,props:{list:{type:Array,default:()=>[]},empty:{type:String,default:()=>"无相关图标"},prefix:{type:String,default:()=>""}},emits:["get-icon"],setup(e,{emit:m}){const p=e,d=l=>{m("get-icon",l)};return(l,N)=>{const u=t("SvgIcon"),f=t("el-col"),g=t("el-row"),y=t("el-empty"),v=t("el-scrollbar");return o(),a("div",B,[r(v,{ref:"selectorScrollbarRef"},{default:s(()=>[p.list.length>0?(o(),c(g,{key:0,gutter:10},{default:s(()=>[(o(!0),a(k,null,C(e.list,(n,x)=>(o(),c(f,{xs:6,sm:4,md:4,lg:4,xl:4,key:x,onClick:V=>d(n)},{default:s(()=>[h("div",{class:S(["icon-selector-warp-item",{"icon-selector-active":e.prefix===n}])},[r(u,{name:n},null,8,["name"])],2)]),_:2},1032,["onClick"]))),128))]),_:1})):i("v-if",!0),e.list.length<=0?(o(),c(y,{key:1,"image-size":100,description:e.empty},null,8,["description"])):i("v-if",!0)]),_:1},512)])}}});const F=w(I,[["__scopeId","data-v-69708d3c"],["__file","C:/Users/89282/Desktop/lechang_storage/lechang_storage/vue-next-admin/src/components/iconSelector/list.vue"]]);export{F as default};
- //# sourceMappingURL=list.12bec248.js.map
|