yanzhen-design-vue
Version:
24 lines (23 loc) • 847 B
JavaScript
import { defineAsyncComponent } from "vue";
import { defineComponent, withInstall } from "@yanzhen-lowcode/core";
import "../text-preview/index.mjs";
import { switchProps, switchEmits } from "./src/switch.mjs";
import { defineTextPreviewComponent } from "../text-preview/schema.mjs";
const SchemaSwitchOptions = {
props: switchProps,
emits: switchEmits,
styleImport: () => import("./style/index.mjs")
};
const PreviewSwitch = defineTextPreviewComponent("preview-switch", {
...SchemaSwitchOptions,
component: defineAsyncComponent(() => import("./src/switch.vue.mjs"))
});
const Switch = defineComponent("switch", {
...SchemaSwitchOptions,
component: defineAsyncComponent(() => import("./src/switch.vue.mjs"))
});
const YzSchemaSwitch = withInstall(Switch, { PreviewSwitch });
export {
YzSchemaSwitch,
YzSchemaSwitch as default
};