mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(Picker): avoid click event when moving (#4273)
This commit is contained in:
parent
9c68de0d88
commit
6ae352882c
@ -141,6 +141,10 @@ export default createComponent({
|
|||||||
},
|
},
|
||||||
|
|
||||||
onClickItem(index) {
|
onClickItem(index) {
|
||||||
|
if (this.moving) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this.duration = DEFAULT_DURATION;
|
this.duration = DEFAULT_DURATION;
|
||||||
this.setIndex(index, true);
|
this.setIndex(index, true);
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user