feat(ImagePreview): reset scale after swiping (#7972)
This commit is contained in:
@@ -235,6 +235,7 @@ export default {
|
|||||||
state.imageRatio = naturalHeight / naturalWidth;
|
state.imageRatio = naturalHeight / naturalWidth;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(() => props.active, resetScale);
|
||||||
watch(
|
watch(
|
||||||
() => props.show,
|
() => props.show,
|
||||||
(value) => {
|
(value) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user