UNPKG

egova-admin-web

Version:

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

67 lines (66 loc) 1.85 kB
import { Select as p } from "ant-design-vue/es"; import { defineComponent as s, computed as m, toRef as f, openBlock as u, createBlock as d, withCtx as w, createElementVNode as h } from "vue"; import { a as v, _ 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 = s({ 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 l = m({ get: () => e.value, set: (c) => { o("update:value", c); } }), i = f(e, "config"), r = e.config.placeholder ?? "请选择", a = e.config.allowClear ?? !0, { options: t, filterOption: n } = v(i); return { innerValue: l, placeholder: r, allowClear: a, options: t, filterOption: n }; } }), _ = /* @__PURE__ */ h("i", { class: "zt-iconfont zt-icon-arrow-down" }, null, -1); function C(e, o, l, i, r, a) { const t = p; return u(), d(t, { class: "zt-dynamic-form-select", value: e.innerValue, "onUpdate:value": o[0] || (o[0] = (n) => e.innerValue = n), placeholder: e.placeholder, "allow-clear": e.allowClear, "show-search": "", options: e.options, "filter-option": e.filterOption }, { suffixIcon: w(() => [ _ ]), _: 1 }, 8, ["value", "placeholder", "allow-clear", "options", "filter-option"]); } const U = /* @__PURE__ */ g(y, [["render", C]]); export { U as default };