mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
feat(Uploader): add close-preview event (#4376)
This commit is contained in:
@@ -189,7 +189,10 @@ export default createComponent({
|
||||
ImagePreview({
|
||||
images: imageFiles,
|
||||
closeOnPopstate: true,
|
||||
startPosition: imageFiles.indexOf(item.content || item.url)
|
||||
startPosition: imageFiles.indexOf(item.content || item.url),
|
||||
onClose: () => {
|
||||
this.$emit('close-preview');
|
||||
}
|
||||
});
|
||||
},
|
||||
|
||||
|
Reference in New Issue
Block a user