Package Exports
- vue-m-touch
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-m-touch) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-m-touch
基于vue移动端手势库
从v0.0.3开始支持vue2.x
Install
npm install vue-m-touch
Use
var Vue = require('vue');
Vue.use(require('vue-m-touch'));
Api
v-touch:tap
v-touch:longtap
v-touch:swipeleft
v-touch:swiperight
v-touch:tap.stop
v-touch:tap.prevent
v-touch:tap.self
传参数:
vue建议通过dataset方式
v-touch:tap="handler"
也可以通过对象的形式传参数,必须存在一个handler属性用于回调
v-touch:tap="{handler:handler,arg1:'1',arg2:{}}"