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