fix: onAfterClose init flip value (#6913)

pull/6917/head
Konv Suu 2023-08-30 16:07:35 +08:00 committed by GitHub
parent 9855e43805
commit f7cc27b7ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

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