Skip to content

vue 2.0touch手势插件(tap,longTap,doubleTap,pressMove,swipe,rotate,pinch等事件)基于AlloyFinger

Notifications You must be signed in to change notification settings

gggso/vue-finger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

vue-finger

基于腾讯AlloyFinger的vue 2.0手势插件 AlloyFinger:http://alloyteam.github.io/AlloyFinger/

所有手势事件
v-tap:点击事件
v-singleTap:单击事件,和tap的区别是相差250ms
v-longTap:长按事件,当点击时长超过750ms时候触发
v-doubleTap:双击事件
v-pressMove:拖拽移动事件
v-multipointStart:多点触控事件开始事件
v-multipointEnd:多点触控事件结束事件
v-swipe:滑动事件
v-rotate:旋转事件
v-pinch:缩放事件

使用示例:
见fingerDemo,在项目中使用的时候,在main.js中导入、vue.use(),然后在子组件中就可以直接用v-tap="{methods:func , arg: args}"的方式使用

About

vue 2.0touch手势插件(tap,longTap,doubleTap,pressMove,swipe,rotate,pinch等事件)基于AlloyFinger

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published