mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
feat(Uploader): add preview-options prop (#6810)
This commit is contained in:
@@ -30,6 +30,7 @@ export default createComponent({
|
||||
beforeRead: Function,
|
||||
beforeDelete: Function,
|
||||
previewSize: [Number, String],
|
||||
previewOptions: Object,
|
||||
name: {
|
||||
type: [Number, String],
|
||||
default: '',
|
||||
@@ -256,11 +257,12 @@ export default createComponent({
|
||||
|
||||
this.imagePreview = ImagePreview({
|
||||
images: imageContents,
|
||||
closeOnPopstate: true,
|
||||
startPosition: imageFiles.indexOf(item),
|
||||
closeOnPopstate: true,
|
||||
onClose: () => {
|
||||
this.$emit('close-preview');
|
||||
},
|
||||
...this.previewOptions,
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user