UNPKG

egova-admin-web

Version:

新版统一用户中心前端项目

68 lines (67 loc) 1.92 kB
import { Select as p } from "ant-design-vue/es"; import { defineComponent as m, computed as s, toRef as u, openBlock as f, createBlock as d, withCtx as v, createElementVNode as w } from "vue"; import { a as h, _ as g } from "./index-017479e1.mjs"; import "axios"; import "ant-design-vue"; import "lodash-es"; import "sm-crypto"; import "crypto-js"; import "pinia"; import "qs"; import "vue-router"; import "@vueuse/core"; import "validator"; import "@ant-design/icons-vue"; import "dayjs"; import "qrcode"; /*! egova-admin-web v2.4.12-r210.4 */ const y = m({ name: "ZtDynamicFormSelect", components: { ASelect: p }, props: { value: { type: String, default: void 0 }, field: { type: Object, default: () => ({}) }, config: { type: Object, default: () => ({}) } }, emits: ["update:value"], setup(e, { emit: o }) { const n = s({ get: () => e.value ? e.value.trim().split(",") : [], set: (c) => { o("update:value", c.join(",")); } }), i = u(e, "config"), r = e.config.placeholder ?? "请选择", a = e.config.allowClear ?? !0, { options: t, filterOption: l } = h(i); return { innerValue: n, placeholder: r, allowClear: a, options: t, filterOption: l }; } }), _ = /* @__PURE__ */ w("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1); function C(e, o, n, i, r, a) { const t = p; return f(), d(t, { class: "zt-dynamic-form-select", mode: "multiple", value: e.innerValue, "onUpdate:value": o[0] || (o[0] = (l) => e.innerValue = l), placeholder: e.placeholder, "allow-clear": e.allowClear, "show-search": "", options: e.options, "filter-option": e.filterOption }, { suffixIcon: v(() => [ _ ]), _: 1 }, 8, ["value", "placeholder", "allow-clear", "options", "filter-option"]); } const R = /* @__PURE__ */ g(y, [["render", C]]); export { R as default };