UNPKG

yanzhen-design-vue

Version:

27 lines (26 loc) 1 kB
"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 image = require("./src/image.cjs"); const schema = require("../text-preview/schema.cjs"); const SchemaImageOptions = { props: image.imageProps, emits: image.imageEmits }; const PreviewImage = schema.defineTextPreviewComponent("preview-image", { ...SchemaImageOptions, component: schema.YzSchemaTextPreview.component }); const Image = core.defineComponent("image", { ...SchemaImageOptions, component: vue.defineAsyncComponent(() => Promise.resolve().then(() => require("./src/image.vue.cjs"))) }); const YzSchemaImage = core.withInstall(Image, { PreviewImage }); const YzSchemaPreviewImage = core.withInstall(PreviewImage); exports.YzSchemaImage = YzSchemaImage; exports.YzSchemaPreviewImage = YzSchemaPreviewImage; exports.default = YzSchemaImage;