gepic
Version:
基于vue3的设计器,可视化开发页面表单
66 lines (65 loc) • 1.61 kB
JavaScript
import { pluginManager as r } from "epic-designer";
import t from "./input/index.js";
import p from "./input-number/index.js";
import e from "./form/index.js";
import i from "./form-item/index.js";
import a from "./button/index.js";
import f from "./card/index.js";
import c from "./row/index.js";
import n from "./col/index.js";
import s from "./select/index.js";
import l from "./radio/index.js";
import C from "./checkbox/index.js";
import d from "./slider/index.js";
import I from "./color-picker/index.js";
import y from "./switch/index.js";
import N from "./cascader/index.js";
import b from "./collapse/index.js";
import w from "./collapse-item/index.js";
import F from "./date-picker/index.js";
import { NTabPane as T } from "naive-ui";
import h from "./upload-file/index.js";
import P from "./upload-image/index.js";
import S from "./modal/index.js";
function Z(o = r) {
o.component(
"FormItem",
async () => (await import("naive-ui/lib/form")).NFormItem
), o.component(
"Tabs",
async () => (await import("naive-ui/lib/tabs")).NTabs
), o.component("TabPane", T), o.component(
"Collapse",
async () => (await import("naive-ui/lib/collapse")).NCollapse
), o.component(
"CollapseItem",
async () => (await import("naive-ui/lib/collapse")).NCollapseItem
), [
e,
i,
t,
p,
l,
C,
F,
s,
y,
I,
N,
d,
h,
P,
a,
f,
c,
n,
b,
w,
S
].forEach((m) => {
o.registerComponent(m), o.addBaseComponentTypes(m.defaultSchema.type);
}), o.setInitialized(!0);
}
export {
Z as setupNaiveUi
};