优化
This commit is contained in:
@@ -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 } },
|
||||||
|
|||||||
Reference in New Issue
Block a user