mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
feat(ImagePreview): reset scale after swiping (#7972)
This commit is contained in:
parent
95e45ab88a
commit
598fd4a464
@ -235,6 +235,7 @@ export default {
|
||||
state.imageRatio = naturalHeight / naturalWidth;
|
||||
};
|
||||
|
||||
watch(() => props.active, resetScale);
|
||||
watch(
|
||||
() => props.show,
|
||||
(value) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user