1.0.2 • Published 4 years ago

vue-pinch v1.0.2

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

vue-pinch

Vue 轻量级捏合、扩大手势指令。

安装

使用 npm 安装:

npm i vue-pinch --save
import Vue from 'vue'
import VuePinch from 'vue-pinch'

Vue.use(VuePinch)

使用

<template>
    <div class="pinch" v-pinch="pinchCtrl"></div>
</template>
new Vue({
  methods: {
      pinchCtrl: function (e) {        
          if(e==='pinchin'){
              console.log('捏合')
          }
          if(e==='pinchout'){
              console.log('扩大');
          }
      }
  }
})

回调参数

  • pinchin :操作为捏合手势;
  • pinchout :操作为扩大手势;
1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago

0.1.0

4 years ago