From 7fcfc5f3270d3507a002247c53a29da211f1ecb6 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Thu, 19 Mar 2020 19:58:37 +0800 Subject: [PATCH] fix(ImagePreview): should not show previews image --- src/image-preview/index.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/image-preview/index.js b/src/image-preview/index.js index 172b8e4d8..34a46ea84 100644 --- a/src/image-preview/index.js +++ b/src/image-preview/index.js @@ -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);