vue-pinch

1.0.2 • Public • Published

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 :操作为扩大手势;

Readme

Keywords

Package Sidebar

Install

npm i vue-pinch

Weekly Downloads

1

Version

1.0.2

License

ISC

Unpacked Size

2.8 kB

Total Files

4

Last publish

Collaborators

  • ningbo