mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 10:56:35 +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.value = show;
|
||||||
});
|
});
|
||||||
|
|
||||||
|
instance.$once('closed', () => {
|
||||||
|
instance.images = [];
|
||||||
|
});
|
||||||
|
|
||||||
if (options.onClose) {
|
if (options.onClose) {
|
||||||
instance.$off('close');
|
instance.$off('close');
|
||||||
instance.$once('close', options.onClose);
|
instance.$once('close', options.onClose);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user