simplesmiler/vue-focus

Make Vue plugin

simshaun opened this issue · 1 comments

It'd be nice if all the directives could be made available globally by calling Vue.use(VueFocus).

https://vuejs.org/guide/plugins.html

Sorry for taking so long to response.
I don't really like the plugin style, because it promotes implicit dependencies and may cause conflicts.
If you really want to make things global, you can use Vue.mixin:

var VueFocus = require('vue-focus');
Vue.mixin(VueFocus.mixin);