import{H as _,ah as t,o,c as a,V as r,P as n,O as l,F as C,a8 as v,a as S,J as h,S as i}from"./@vue-6dabbe94.js";import{_ as w}from"./_plugin-vue_export-helper-c27b6911.js";const B={class:"icon-selector-warp-row"},V=_({name:"iconSelectorList"}),b=_({...V,props:{list:{type:Array,default:()=>[]},empty:{type:String,default:()=>"无相关图标"},prefix:{type:String,default:()=>""}},emits:["get-icon"],setup(e,{emit:m}){const p=e,d=s=>{m("get-icon",s)};return(s,I)=>{const u=t("SvgIcon"),f=t("el-col"),g=t("el-row"),y=t("el-empty"),k=t("el-scrollbar");return o(),a("div",B,[r(k,{ref:"selectorScrollbarRef"},{default:n(()=>[p.list.length>0?(o(),l(g,{key:0,gutter:10},{default:n(()=>[(o(!0),a(C,null,v(e.list,(c,x)=>(o(),l(f,{xs:6,sm:4,md:4,lg:4,xl:4,key:x,onClick:N=>d(c)},{default:n(()=>[S("div",{class:h(["icon-selector-warp-item",{"icon-selector-active":e.prefix===c}])},[r(u,{name:c},null,8,["name"])],2)]),_:2},1032,["onClick"]))),128))]),_:1})):i("",!0),e.list.length<=0?(o(),l(y,{key:1,"image-size":100,description:e.empty},null,8,["description"])):i("",!0)]),_:1},512)])}}});const L=w(b,[["__scopeId","data-v-cec21a67"]]);export{L as default};
