mirror of
https://github.com/youzan/vant.git
synced 2025-10-17 16:44:21 +00:00
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