fix(Picker): avoid click event when moving (#4273)

This commit is contained in:
neverland 2019-08-28 16:55:51 +08:00 committed by GitHub
parent 9c68de0d88
commit 6ae352882c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,10 @@ export default createComponent({
},
onClickItem(index) {
if (this.moving) {
return;
}
this.duration = DEFAULT_DURATION;
this.setIndex(index, true);
},