From f7cc27b7adc4879825dab46153031fbccad7d92e Mon Sep 17 00:00:00 2001 From: Konv Suu <2583695112@qq.com> Date: Wed, 30 Aug 2023 16:07:35 +0800 Subject: [PATCH] fix: onAfterClose init flip value (#6913) --- components/vc-image/src/Preview.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/vc-image/src/Preview.tsx b/components/vc-image/src/Preview.tsx index b35cf65ec..80d03fc70 100644 --- a/components/vc-image/src/Preview.tsx +++ b/components/vc-image/src/Preview.tsx @@ -104,6 +104,8 @@ const Preview = defineComponent({ const onAfterClose = () => { scale.value = 1; rotate.value = 0; + flip.x = 1; + flip.y = 1; setPosition(initialPosition); emit('afterClose'); };