import{i as c}from"./index.vue_vue_type_style_index_0_scoped_79fe850d_lang.831d5a3c.js";import{_ as g,r as u,e as p,o as l,c as a,f as _,w as C,h as f,ab as S,m as i,G as V,H as b,z as w,s as B,t as N}from"./index.82404a61.js";const L=s=>(B("data-v-79fe850d"),s=s(),N(),s),z={class:"icon-body"},D=L(()=>i("i",{class:"el-icon-search el-input__icon"},null,-1)),E={class:"icon-list"},F=["onClick"],G={__name:"index",emits:["selected"],setup(s,{expose:v,emit:m}){const e=u(""),n=u(c);function r(){n.value=c,e.value&&(n.value=c.filter(t=>t.indexOf(e.value)!==-1))}function h(t){m("selected",t),document.body.click()}function x(){e.value="",n.value=c}return v({reset:x}),(t,d)=>{const I=p("el-input"),k=p("svg-icon");return l(),a("div",z,[_(I,{modelValue:f(e),"onUpdate:modelValue":d[0]||(d[0]=o=>S(e)?e.value=o:null),style:{position:"relative"},clearable:"",placeholder:"\u8BF7\u8F93\u5165\u56FE\u6807\u540D\u79F0",onClear:r,onInput:r},{suffix:C(()=>[D]),_:1},8,["modelValue"]),i("div",E,[(l(!0),a(V,null,b(f(n),(o,y)=>(l(),a("div",{key:y,onClick:H=>h(o)},[_(k,{"icon-class":o,style:{height:"30px",width:"16px"}},null,8,["icon-class"]),i("span",null,w(o),1)],8,F))),128))])])}}},U=g(G,[["__scopeId","data-v-79fe850d"]]);export{U as I};