fix(Picker): optimize the click experience

This commit is contained in:
陈嘉涵 2020-01-11 15:13:53 +08:00
parent 719928cb5a
commit 5cbb9e2998
2 changed files with 4 additions and 3 deletions

View File

@ -107,10 +107,10 @@ export default createComponent({
},
onTouchMove(event) {
this.moving = true;
this.touchMove(event);
if (this.direction === 'vertical') {
this.moving = true;
preventDefault(event, true);
}
@ -195,8 +195,7 @@ export default createComponent({
}
};
// 若有触发过 `touchmove` 事件,那应该
// 在 `transitionend` 后再触发 `change` 事件
// trigger the change event after transitionend when moving
if (this.moving) {
this.transitionEndTrigger = trigger;
} else {

View File

@ -20,6 +20,7 @@
font-size: @picker-action-font-size;
background-color: transparent;
border: none;
cursor: pointer;
&:active {
background-color: @picker-action-active-color;
@ -36,6 +37,7 @@
&__columns {
position: relative;
display: flex;
cursor: pointer;
}
&__loading {