yanzhen-design-vue
Version:
24 lines (23 loc) • 1.05 kB
JavaScript
;
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
const vue = require("vue");
const core = require("@yanzhen-lowcode/core");
require("../text-preview/index.cjs");
const _switch = require("./src/switch.cjs");
const schema = require("../text-preview/schema.cjs");
const SchemaSwitchOptions = {
props: _switch.switchProps,
emits: _switch.switchEmits,
styleImport: () => Promise.resolve().then(() => require("./style/index.cjs"))
};
const PreviewSwitch = schema.defineTextPreviewComponent("preview-switch", {
...SchemaSwitchOptions,
component: vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./src/switch.vue.cjs")))
});
const Switch = core.defineComponent("switch", {
...SchemaSwitchOptions,
component: vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./src/switch.vue.cjs")))
});
const YzSchemaSwitch = core.withInstall(Switch, { PreviewSwitch });
exports.YzSchemaSwitch = YzSchemaSwitch;
exports.default = YzSchemaSwitch;