Merge remote-tracking branch 'origin/develop' into develop

This commit is contained in:
yuping
2022-12-25 19:12:46 +08:00
9 changed files with 716 additions and 72 deletions

View File

@@ -1,7 +1,6 @@
<template>
<img class="file"
:style="style"
:src="{pdf,doc:word,ppt,zip,excel,xlsx:excel,xls:excel,rar,book,md,docx:word}[filePath.split('.').slice(-1)] || book"/>
<img class="file" :style="style"
:src="{ pdf, doc: word, ppt, zip, excel, xlsx: excel, xls: excel, rar, book, md, docx: word, png }[filePath.split('.').slice(-1)] || book" />
</template>
<script setup>
import rar from '@/assets/image/file/rar.png'
@@ -12,20 +11,20 @@ import ppt from '@/assets/image/file/ppt.png'
import word from '@/assets/image/file/word.png'
import zip from '@/assets/image/file/zip.png'
import book from '@/assets/image/file/book.png'
import {defineProps, ref} from "vue";
import { defineProps, ref } from "vue";
const {modelValue = [], style} = defineProps({
modelValue: String,
style: {
type: Object,
default: {}
}
const { modelValue = "", style } = defineProps({
modelValue: String,
style: {
type: Object,
default: {}
}
})
const filePath = ref(modelValue)
</script>
<style lang="scss">
.file {
width: 22px;
height: 26px;
width: 22px;
height: 26px;
}
</style>