import { useAttrs as y, resolveComponent as S, openBlock as o, createBlock as c, mergeProps as _, unref as s, withCtx as d, createElementBlock as v, Fragment as w, renderList as B, createVNode as b, createElementVNode as x, toDisplayString as C } from "vue"; import { f as k } from "./icon-groups.js"; import { a7 as L, a8 as N } from "./index2.js"; const W = { style: { "margin-left": "8px" } }, O = { __name: "SIconSelect", props: { // 选中图标名,支持 v-model:value value: { type: String, default: "" }, placeholder: { type: String, default() { return window.$l("请选择图标"); } }, multiple: { type: Boolean, default: !1 }, disabled: { type: Boolean, default: !1 }, required: { type: Boolean, default: !1 }, minWidth: { type: Number, default: 240 } }, emits: ["update:value", "change"], setup(t, { emit: i }) { const u = y(), r = i, m = (e) => { r("update:value", e), r("change", e); }, f = k("all", ""), p = (e, l) => { var a; return String((a = l == null ? void 0 : l.value) != null ? a : "").toLowerCase().includes(String(e != null ? e : "").trim().toLowerCase()); }; return (e, l) => { const a = S("s-icon"), h = N, g = L; return o(), c(g, _({ value: t.value, disabled: t.disabled, mode: t.multiple ? "multiple" : void 0, "allow-clear": !t.required, placeholder: t.placeholder, "show-search": "", "filter-option": p, onChange: m }, s(u), { style: { minWidth: t.minWidth + "px" } }), { default: d(() => [ (o(!0), v(w, null, B(s(f), (n) => (o(), c(h, { value: n, key: n }, { default: d(() => [ b(a, { name: n, color: "" }, null, 8, ["name"]), x("span", W, C(n), 1) ]), _: 2 }, 1032, ["value"]))), 128)) ]), _: 1 }, 16, ["value", "disabled", "mode", "allow-clear", "placeholder", "style"]); }; } }; export { O as default };