yanzhen-design-vue
Version:
26 lines (25 loc) • 773 B
JavaScript
import { defineAsyncComponent } from "vue";
import { defineComponent, withInstall } from "@yanzhen-lowcode/core";
import "../text-preview/index.mjs";
import { timeProps, timeEmits } from "./src/time.mjs";
import { defineTextPreviewComponent } from "../text-preview/schema.mjs";
const YzSchemaTimeOptions = {
props: timeProps,
emits: timeEmits
};
const PreviewTime = defineTextPreviewComponent("preview-time", {
...YzSchemaTimeOptions
});
const Time = defineComponent("time", {
...YzSchemaTimeOptions,
component: defineAsyncComponent(() => import("./src/time.vue.mjs"))
});
const YzSchemaTime = withInstall(Time, {
PreviewTime
});
const YzSchemaPreviewTime = withInstall(PreviewTime);
export {
YzSchemaPreviewTime,
YzSchemaTime,
YzSchemaTime as default
};