fix(ImagePreview): should not show previews image

This commit is contained in:
chenjiahan 2020-03-19 19:58:37 +08:00
parent 5b279ab0dc
commit 7fcfc5f327

View File

@ -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);