mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 10:44:59 +00:00
fix(ImagePreview): should not emit close event after tapped when using async-close (#5410)
This commit is contained in:
@@ -118,12 +118,12 @@ export default createComponent({
|
||||
this.doubleClickTimer = setTimeout(() => {
|
||||
const index = this.active;
|
||||
|
||||
this.$emit('close', {
|
||||
index,
|
||||
url: this.images[index]
|
||||
});
|
||||
|
||||
if (!this.asyncClose) {
|
||||
this.$emit('close', {
|
||||
index,
|
||||
url: this.images[index]
|
||||
});
|
||||
|
||||
this.$emit('input', false);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user