handleTouchStart() {
this.touchStatus = true
},
handleTouchMove(e) {
if(this.touchStatus) {
const startY = this.$refs['A'][0].offsetTop;
const touchY = e.touches[0].clientY - 79;
const index = Math.floor((touchY - startY) / 20);
if(index >= 0 && index < this.letters.length) {
this.$emit('change', this.letters[index]);
}
}
},
handleTouchEnd() {
this.touchStatus = false
}
03-29
05-16
05-16
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交