mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
feat(Uploader): add preview-full-image prop (#4205)
This commit is contained in:
@@ -44,6 +44,10 @@ export default createComponent({
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
previewFullImage: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
imageFit: {
|
||||
type: String,
|
||||
default: 'cover'
|
||||
@@ -174,6 +178,10 @@ export default createComponent({
|
||||
},
|
||||
|
||||
onPreviewImage(item) {
|
||||
if (!this.previewFullImage) {
|
||||
return;
|
||||
}
|
||||
|
||||
const imageFiles = this.fileList
|
||||
.filter(item => isImageFile(item))
|
||||
.map(item => item.content || item.url);
|
||||
|
Reference in New Issue
Block a user