sd-throttle
sd-throttle is an prevent duplicate clicks directive for vue.js.
Install
npm install sd-throttle --save
in vue:
// register globallyVue // or for a single instance directives: throttle
Usage
click
el: '#app' data: // The unit is seconds timeout: 1 // The default value is true. You can click // value is false can't click isThrottle: true methods: { console } ;