This commit is contained in:
阿辉
2024-11-08 23:30:25 +08:00
parent 4f85de3247
commit 72e046fd6d

View File

@@ -10,9 +10,7 @@ import { ref, defineProps, PropType, watch, onMounted, h } from 'vue';
const props = defineProps({ const props = defineProps({
fileData: { type: Object as PropType<any>, required: true }, fileData: { type: Object as PropType<any>, required: true },
}); });
const _OtherFileComponent = defineComponent({ const _OtherFileComponent = defineComponent({ template: '<el-icon><Files /></el-icon>' });
template: '<el-icon><Files /></el-icon>'
})
const FileTypes = [ const FileTypes = [
{ tag: 'img', attr: { src: props.fileData.url, draggable: false } }, { tag: 'img', attr: { src: props.fileData.url, draggable: false } },
{ tag: 'video', attr: { src: props.fileData.url, controls: false, autoplay: true, muted: true, loop: true } }, { tag: 'video', attr: { src: props.fileData.url, controls: false, autoplay: true, muted: true, loop: true } },