mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-24 10:20:19 +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;
|
state.imageRatio = naturalHeight / naturalWidth;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
watch(() => props.active, resetScale);
|
||||||
watch(
|
watch(
|
||||||
() => props.show,
|
() => props.show,
|
||||||
(value) => {
|
(value) => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user