mirror of
https://github.com/youzan/vant.git
synced 2025-10-15 23:55:08 +00:00
feat(ImagePreview): reset scale after swiping (#7972)
This commit is contained in:
@@ -235,6 +235,7 @@ export default {
|
||||
state.imageRatio = naturalHeight / naturalWidth;
|
||||
};
|
||||
|
||||
watch(() => props.active, resetScale);
|
||||
watch(
|
||||
() => props.show,
|
||||
(value) => {
|
||||
|
Reference in New Issue
Block a user