Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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)