提交
This commit is contained in:
1 parent
7e9155fef1
commit
2fd826dbe1
80 files changed
+32546
-36145
No files matched your search
@@ -36,7 +36,11 @@
|
||||
/>
|
||||
</template>
|
||||
<template v-else-if="isOaUploadImageFile(file)">
|
||||
<img class="el-upload-list__item-thumbnail" :src="file.url" alt="" />
|
||||
<img
|
||||
class="el-upload-list__item-thumbnail"
|
||||
:src="attachmentFullUrl(file.url || '') || file.url"
|
||||
alt=""
|
||||
/>
|
||||
</template>
|
||||
<template v-else-if="isOaUploadVideoFile(file)">
|
||||
<div class="oa-fc-upload-card__icon oa-fc-upload-card__icon--video">
|
||||
@@ -227,16 +231,18 @@
|
||||
isOaUploadImageFile,
|
||||
isOaUploadVideoFile,
|
||||
getOaUploadDisplayName,
|
||||
attachmentFullUrl,
|
||||
handlePreview(file: UploadFile) {
|
||||
if (typeof this.onPreview === 'function') {
|
||||
this.onPreview(file)
|
||||
return
|
||||
}
|
||||
const full = attachmentFullUrl(String(file?.url || '')) || String(file?.url || '')
|
||||
if (this.resolvedListType === 'text' || !isOaUploadImageFile(file)) {
|
||||
if (file?.url) window.open(file.url, '_blank')
|
||||
if (full) window.open(full, '_blank')
|
||||
return
|
||||
}
|
||||
this.previewImage = file.url || ''
|
||||
this.previewImage = full
|
||||
this.previewVisible = true
|
||||
},
|
||||
async handleDownload(file: UploadFile) {
|
||||
|
||||
Reference in new issue
Block a user