Skip to content

Commit

Permalink
Updated: Better vue 3 support
Browse files Browse the repository at this point in the history
  • Loading branch information
dhershman1 committed May 17, 2022
1 parent 929656e commit c0e2281
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
import debounce from './debounce'
import { getDirective } from './directive'
import vueDebounce from './directive'
import vue3Debounce from './vue3_directive'

export { debounce, getDirective }
export {
debounce,
vue3Debounce
}

export default {
install (Vue, opts = {}) {
Vue.directive('debounce', getDirective(Vue.version, opts))
Vue.directive('debounce', vueDebounce(opts))
}
}

0 comments on commit c0e2281

Please sign in to comment.