🔨 Refactor(custom): refactored for new version of element

This commit is contained in:
Kuingsmile
2024-06-06 16:23:25 +08:00
parent 9a23d5fb99
commit 66cd522d96
20 changed files with 108 additions and 239 deletions

View File

@@ -30,22 +30,14 @@ import mime from 'mime-types'
import path from 'path'
const base64Image = ref('')
const props = defineProps(
{
isShowThumbnail: {
type: Boolean,
required: true
},
item: {
type: Object,
required: true
},
localPath: {
type: String,
required: true
}
const props = defineProps<{
isShowThumbnail: boolean
item: {
isImage: boolean
fileName: string
}
)
localPath: string
}>()
const createBase64Image = async () => {
const filePath = path.normalize(props.localPath)