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