Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qingyangmoke/vue-plugin-touch
vue2.0 的touch事件 ,原生事件注册,无依赖 体积小 1K
https://github.com/qingyangmoke/vue-plugin-touch
plugin touch vue vue-plugin vue-touch vue2 vuejs
Last synced: 4 months ago
JSON representation
vue2.0 的touch事件 ,原生事件注册,无依赖 体积小 1K
- Host: GitHub
- URL: https://github.com/qingyangmoke/vue-plugin-touch
- Owner: qingyangmoke
- Created: 2017-08-15T09:50:12.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-08-15T12:04:08.000Z (over 7 years ago)
- Last Synced: 2024-10-01T10:21:58.498Z (5 months ago)
- Topics: plugin, touch, vue, vue-plugin, vue-touch, vue2, vuejs
- Language: JavaScript
- Homepage:
- Size: 13.7 KB
- Stars: 6
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# vue-plugin-touch
> vue2.0 touch 事件 把原生的 touchstart,touchmove,touchend,touchcancel添加到Vue组件中
## Install
> 该插件支持 Vue2.0. 不支持 Vue 1.*版本
### 通过npm安装
``` bash
npm install vue-plugin-touch
``````Javascript
import vueTouch from 'vue-plugin-touch';
Vue.use(vueTouch);
```#### 直接引用
```Javascript```
## 使用``` html
Touch me!
```### 支持的事件
touchstart、touchmove、touchend、touchcancel
## License
[MIT](http://opensource.org/licenses/MIT)