mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(ImagePreview): should reset scale after toggle (#4319)
This commit is contained in:
parent
10db0100bb
commit
db7a91d066
@ -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]
|
||||
|
Loading…
x
Reference in New Issue
Block a user