UNPKG

quick-admin-vue3-core

Version:

以快(计算机执行效率、开发效率)为核心的后台管理系统开发模板

43 lines (42 loc) 1.36 kB
import { defineComponent as s, reactive as f, computed as c, resolveComponent as _, createElementBlock as V, openBlock as r, Fragment as h, renderList as L, createBlock as B, withCtx as P, createVNode as b, mergeProps as g, unref as l } from "vue"; import { _ as k } from "./Index.vue_vue_type_script_setup_true_lang-C2wcd99b.js"; const C = /* @__PURE__ */ s({ inheritAttrs: !1, __name: "BaseAnyEleList", props: { modelValue: { default: () => f({}) }, prefixProp: {}, fields: { default: () => [] }, hideLabel: { type: Boolean } }, emits: ["update:modelValue"], setup(a, { emit: p }) { const n = a, d = p; let t = c({ get: () => n.modelValue, set: (e) => d("update:modelValue", e) }); return (e, w) => { const m = _("el-row"); return r(!0), V(h, null, L(e.fields, (o, u) => (r(), B(m, { gutter: 16, key: u }, { default: P(() => [ b(k, g({ modelValue: l(t)[o.prop], "onUpdate:modelValue": (i) => l(t)[o.prop] = i, prefixProp: e.prefixProp, field: o, hideLabel: e.hideLabel, ref_for: !0 }, e.$attrs), null, 16, ["modelValue", "onUpdate:modelValue", "prefixProp", "field", "hideLabel"]) ]), _: 2 }, 1024))), 128); }; } }); export { C as default };