本身不支持,但是可以通过touchend事件来通过间隔来判断单击还是双击,具体代码如下:
//html部分
<view @touchend="Touchend"></view>
//js部分
export default {
data(){
return {
touchCount : 0,
}
},
methods:{
Touchend(e){
this.touchCount ++
setTimeout(()=>{
if(this.touchCount == 1){
console.log('单击')
}
if(this.touchCount >= 2){
console.log('双击')
}
this.touchCount = 0
},250)
}
}
}
网友回复


