- 点击手势
<v-touch tag="a" v-on:tap="onTap">a标签-Tap me!</v-touch>
- 滑动手势
<v-touch v-on:swipeleft="swiperleft" v-on:swiperight="swiperright" class="wrapper”>
- 手势的方法
methods: {
swiperleft: function() {
console.log("swiperleft----------------");
this.$router.push({
'path': '/flex'
});
},
swiperright: function() {
console.log("swiperright---------");
this.$router.push({
'path': '/extend'
});
},
onTap: function() {
console.log("3");
},
}
网友评论