0.1.2 • Published 7 years ago

vfinger v0.1.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

Finger events plugin for Vue.js. This plugin does not support Vue 1.X.

Install

  • You can install it via npm:
  npm install vfinger

Intro

  • This is a hammerjs based on the gesture library,You can easily support a variety of touch events and gestures in your project.

  • By using vfinger you can listen to the gestures of the element gesture operation.

How to import

  • Using Components
  import vfinger from 'vfinger';

  Vue.use(vfinger);
  • Direct import
  <script src="//cdn.bootcss.com/vue/2.2.4/vue.js"></script>

  <script src="./v-finger.js"></script>

Usage

  • Using the v-finger directive

      <div id="demo" v-finger="{methods:callback,a:123,b:3333}">
  • add callback method

   methods: {
      callback: function (type,e,params) {
          console.log(type)
          console.log(params)
          console.log(e)
      }
  }

Have feedback

In use there are any questions, please give me feedback, you can use the following contact with me

Mail (luandapipi@gmail.com)

grateful

Thanks for the following items, ranked in no particular order

hammerjs

License

  • MIT
0.1.2

7 years ago

0.1.1

7 years ago

0.1.0

7 years ago