gepic
Version:
基于vue3的设计器,可视化开发页面表单
81 lines (80 loc) • 2.08 kB
JavaScript
import { pluginManager as a } from "epic-designer";
import n from "./input/index.js";
import c from "./textarea/index.js";
import s from "./input-number/index.js";
import d from "./input-password/index.js";
import f from "./radio/index.js";
import l from "./checkbox/index.js";
import C from "./select/index.js";
import x from "./slider/index.js";
import y from "./time-picker/index.js";
import b from "./date-picker/index.js";
import u from "./cascader/index.js";
import I from "./switch/index.js";
import T from "./upload-image/index.js";
import h from "./upload-file/index.js";
import w from "./card/index.js";
import P from "./row/index.js";
import k from "./col/index.js";
import r from "./form/index.js";
import A from "./form-item/index.js";
import S from "./button/index.js";
import F from "./modal/index.js";
import N from "./color-picker/index.js";
import { version as v } from "ant-design-vue";
function to(o = a) {
var e;
const p = v.split("."), i = parseInt(p[0]), m = document.createElement("style");
i > 3 ? (m.appendChild(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.appendChild(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,
A,
n,
c,
s,
d,
f,
l,
C,
x,
y,
b,
u,
I,
T,
h,
N,
S,
w,
P,
k,
F
].forEach((t) => {
o.registerComponent(t), o.addBaseComponentTypes(t.defaultSchema.type);
}), o.setInitialized(!0);
}
export {
to as setupAntd
};