feat(ImagePreview): reset scale after swiping (#7972)

This commit is contained in:
neverland
2021-01-23 15:51:55 +08:00
committed by GitHub
parent 95e45ab88a
commit 598fd4a464

View File

@@ -235,6 +235,7 @@ export default {
state.imageRatio = naturalHeight / naturalWidth;
};
watch(() => props.active, resetScale);
watch(
() => props.show,
(value) => {