vue2-tap

1.0.2 • Public • Published

vue2-tap

a v-tap directive of vue.js

install

npm install vue2-tap --save;

How To use

  • Available through npm as vue2-tap.
npm install vue2-tap --save; 
//import vueTap from 'Vue2-tap'
var VueTap = require('vue2-tap')
Vue.use(vueTap)
var VueTap = require('vue2-tap')
Vue.use(VueTap)

Vue2.0 用法

<p v-tap="{ handler:method, params:[a,b,$event]}">带参数</p>
<a v-tap="tap">不带参数</a>
new Vue({
	el: "#app",
	methods : {
		method : function(a,b,event) {
			
		},
        tap:fucntion(){

        }
	}
});

Readme

Keywords

Package Sidebar

Install

npm i vue2-tap

Weekly Downloads

0

Version

1.0.2

License

MIT

Last publish

Collaborators

  • liangjian