mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 19:24:16 +00:00
fix(ImagePreview): should reset scale after toggle (#4319)
This commit is contained in:
@@ -104,6 +104,7 @@ export default createComponent({
|
||||
|
||||
watch: {
|
||||
value() {
|
||||
this.resetScale();
|
||||
this.active = this.startPosition;
|
||||
},
|
||||
|
||||
@@ -129,7 +130,6 @@ export default createComponent({
|
||||
this.doubleClickTimer = setTimeout(() => {
|
||||
const index = this.active;
|
||||
|
||||
this.resetScale();
|
||||
this.$emit('close', {
|
||||
index,
|
||||
url: this.images[index]
|
||||
|
Reference in New Issue
Block a user