1.0.2 • Published 4 years ago
directives-vue v1.0.2
Usage
- v-link
- v-copy
- v-long-touch
// main.js
import VueDirectives from 'directives-vue';
Vue.use(VueDirectives);
// test.vue
<div v-link>should use link color</div>
<div v-copy="copied text">copied text</div>
<div v-long-touch="onLongTouch">box</div>
function onLongTouch() {
console.log('on long touch')
}