import{_ as I,a as c,ad as O,ai as D,O as z,j as d,b as t,c as u,l as r,w as m,d as p,F as E,e as L,f,E as M,q as N,a6 as S,t as j,m as F,B as U,ae as q}from"./index-D0Tcm3GV.js";const P={class:"icon-dialog"},R={class:"icon-ul"},T=["onClick"],$={__name:"IconsDialog",props:{modelValue:{},modelModifiers:{}},emits:q(["select"],["update:modelValue"]),setup(v,{emit:V}){const s=c([]),n=[],a=c(""),_=c(""),g=V,i=O(v,"modelValue");for(const[e]of Object.entries(D))s.value.push(e),n.push(e);function k(){}function x(){}function C(e){_.value=e,g("select",e),i.value=!1}return z(a,e=>{e?s.value=n.filter(l=>l.indexOf(e)>-1):s.value=n}),(e,l)=>{const h=d("el-input"),y=d("el-icon"),b=d("el-dialog");return t(),u("div",P,[r(b,{modelValue:i.value,"onUpdate:modelValue":l[1]||(l[1]=o=>i.value=o),width:"980px","close-on-click-modal":!1,"modal-append-to-body":!1,onOpen:k,onClose:x},{header:m(({close:o,titleId:w,titleClass:A})=>[l[2]||(l[2]=F(" 选择图标 ",-1)),r(h,{modelValue:f(a),"onUpdate:modelValue":l[0]||(l[0]=B=>U(a)?a.value=B:null),size:"small",style:{width:"260px"},placeholder:"请输入图标名称","prefix-icon":"Search",clearable:""},null,8,["modelValue"])]),default:m(()=>[p("ul",R,[(t(!0),u(E,null,L(f(s),o=>(t(),u("li",{key:o,class:M(f(_)===o?"active-item":""),onClick:w=>C(o)},[p("div",null,[r(y,{size:30},{default:m(()=>[(t(),N(S(o)))]),_:2},1024),p("div",null,j(o),1)])],10,T))),128))])]),_:1},8,["modelValue"])])}}},H=I($,[["__scopeId","data-v-4bd3554f"]]);export{H as default};
