UNPKG

yanzhen-design-vue

Version:

22 lines (21 loc) 743 B
import { defineComponent, openBlock, createBlock, unref, normalizeProps, guardReactiveProps } from "vue"; import { YzUpload } from "../../upload/index.mjs"; import { fileName, fileProps, fileEmits } from "./file.mjs"; import { useFile } from "./use-file.mjs"; const _sfc_main = /* @__PURE__ */ defineComponent({ ...{ name: fileName }, __name: "file", props: fileProps, emits: fileEmits, setup(__props, { emit: __emit }) { const props = __props; const emit = __emit; const { uploadPropsRef } = useFile(props, emit); return (_ctx, _cache) => { return openBlock(), createBlock(unref(YzUpload), normalizeProps(guardReactiveProps(unref(uploadPropsRef))), null, 16); }; } }); export { _sfc_main as default };