UNPKG

yanzhen-design-vue

Version:

25 lines (24 loc) 773 B
import { defineAsyncComponent } from "vue"; import { defineComponent, withInstall } from "@yanzhen-lowcode/core"; import "../text-preview/index.mjs"; import { radioProps, radioEmits } from "./src/radio.mjs"; import { defineTextPreviewComponent, YzSchemaTextPreview } from "../text-preview/schema.mjs"; const SchemaRadioOptions = { props: radioProps, emits: radioEmits }; const PreviewRadio = defineTextPreviewComponent("preview-radio", { ...SchemaRadioOptions, component: YzSchemaTextPreview.component }); const Radio = defineComponent("radio", { ...SchemaRadioOptions, component: defineAsyncComponent(() => import("./src/radio.vue.mjs")) }); const YzSchemaRadio = withInstall(Radio, { PreviewRadio }); export { YzSchemaRadio, YzSchemaRadio as default };