mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ImagePreview): should not show previews image
This commit is contained in:
parent
5b279ab0dc
commit
7fcfc5f327
@ -62,6 +62,10 @@ const ImagePreview = (images, startPosition = 0) => {
|
||||
instance.value = show;
|
||||
});
|
||||
|
||||
instance.$once('closed', () => {
|
||||
instance.images = [];
|
||||
});
|
||||
|
||||
if (options.onClose) {
|
||||
instance.$off('close');
|
||||
instance.$once('close', options.onClose);
|
||||
|
Loading…
x
Reference in New Issue
Block a user