mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-25 02:41:46 +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: {
|
watch: {
|
||||||
value() {
|
value() {
|
||||||
|
this.resetScale();
|
||||||
this.active = this.startPosition;
|
this.active = this.startPosition;
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -129,7 +130,6 @@ export default createComponent({
|
|||||||
this.doubleClickTimer = setTimeout(() => {
|
this.doubleClickTimer = setTimeout(() => {
|
||||||
const index = this.active;
|
const index = this.active;
|
||||||
|
|
||||||
this.resetScale();
|
|
||||||
this.$emit('close', {
|
this.$emit('close', {
|
||||||
index,
|
index,
|
||||||
url: this.images[index]
|
url: this.images[index]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user