UNPKG

yanzhen-design-vue

Version:

25 lines (24 loc) 891 B
"use strict"; 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 radio = require("./src/radio.cjs"); const schema = require("../text-preview/schema.cjs"); const SchemaRadioOptions = { props: radio.radioProps, emits: radio.radioEmits }; const PreviewRadio = schema.defineTextPreviewComponent("preview-radio", { ...SchemaRadioOptions, component: schema.YzSchemaTextPreview.component }); const Radio = core.defineComponent("radio", { ...SchemaRadioOptions, component: vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./src/radio.vue.cjs"))) }); const YzSchemaRadio = core.withInstall(Radio, { PreviewRadio }); exports.YzSchemaRadio = YzSchemaRadio; exports.default = YzSchemaRadio;