UNPKG

epic-designer-dev

Version:

基于vue3的设计器,可视化开发页面表单。在epic-designer的基础上新增了字典选择器

86 lines (85 loc) 2.25 kB
import "vue"; /* empty css */ import "vuedraggable"; import "@vueuse/core"; import "../../hooks/src/store/index.js"; import { pluginManager as a } from "../../utils/src/manager/pluginManager.js"; import { version as n } from "ant-design-vue"; import c from "./button/index.js"; import s from "./card/index.js"; import d from "./cascader/index.js"; import f from "./checkbox/index.js"; import l from "./col/index.js"; import b from "./color-picker/index.js"; import u from "./date-picker/index.js"; import r from "./form/index.js"; import x from "./form-item/index.js"; import y from "./input/index.js"; import C from "./input-number/index.js"; import I from "./input-password/index.js"; import T from "./modal/index.js"; import w from "./radio/index.js"; import P from "./row/index.js"; import h from "./select/index.js"; import k from "./slider/index.js"; import A from "./switch/index.js"; import N from "./textarea/index.js"; import S from "./time-picker/index.js"; import F from "./upload-file/index.js"; import v from "./upload-image/index.js"; function io(o = a) { var e; const p = n.split("."), i = Number.parseInt(p[0]), m = document.createElement("style"); i > 3 ? (m.append(document.createTextNode(` .epic-modal-ant .epic-modal-main { padding: 4px 12px 12px; } .epic-modal-ant .ant-modal-title { padding: 16px 16px 0px; } .epic-modal-ant .ant-modal-content { padding: 0px; }`)), document.head.append(m)) : r.config.attribute = (e = r.config.attribute) == null ? void 0 : e.filter( (t) => t.label !== "禁用" ), o.component( "Collapse", async () => (await import("ant-design-vue")).Collapse ), o.component( "CollapseItem", async () => (await import("ant-design-vue")).CollapsePanel ), o.component( "Tabs", async () => (await import("ant-design-vue")).Tabs ), o.component( "TabPane", async () => (await import("ant-design-vue")).TabPane ), [ r, x, y, N, C, I, w, f, h, k, S, u, d, A, v, F, b, c, s, P, l, T ].forEach((t) => { o.registerComponent(t), o.addBaseComponentTypes(t.defaultSchema.type); }), o.setInitialized(!0); } export { io as setupAntd };