gepic
Version:
基于vue3的设计器,可视化开发页面表单
62 lines (61 loc) • 1.58 kB
JavaScript
import { pluginManager as t } from "epic-designer";
import e from "./input/index.js";
import p from "./textarea/index.js";
import i from "./input-number/index.js";
import f from "./form/index.js";
import l from "./formItem/index.js";
import a from "./button/index.js";
import n from "./card/index.js";
import c from "./row/index.js";
import s from "./col/index.js";
import C from "./select/index.js";
import d from "./radio/index.js";
import I from "./checkbox/index.js";
import b from "./slider/index.js";
import E from "./color-picker/index.js";
import T from "./switch/index.js";
import h from "./cascader/index.js";
import F from "./collapse/index.js";
import P from "./collapse-item/index.js";
import u from "./date-picker/index.js";
import y from "./upload-file/index.js";
import S from "./upload-image/index.js";
import k from "./modal/index.js";
import { ElFormItem as x, ElTabs as v, ElTabPane as w, ElCollapse as A, ElCollapseItem as B } from "element-plus";
function mo(o = t) {
o.component("FormItem", x), o.component("Tabs", v), o.component("TabPane", w), o.component("Collapse", A), o.component("CollapseItem", B), [
f,
l,
e,
p,
i,
d,
I,
u,
C,
T,
E,
h,
b,
y,
S,
a,
n,
c,
s,
F,
P,
k
].forEach((r) => {
o.registerComponent(r), o.addBaseComponentTypes(r.defaultSchema.type);
}), o.setInitialized(!0);
}
function ro(o) {
import("element-plus").then(({ provideGlobalConfig: m }) => {
m(o);
});
}
export {
ro as provideGlobalConfig,
mo as setupElementPlus
};