Vue 3 Support?
See original GitHub issueHi. I wonder when are you going to offer support to Vue 3. I had look at your code and seen that something can be done:
ShortKey.install = (app, options) => {
elementAvoided = [...(options && options.prevent ? options.prevent : [])];
app.directive('shortkey', {
created(el, binding, vnode) {
// Mapping the commands
const value = parseValue(binding.value);
console.log(value);
bindValue(value, el, binding, vnode);
},
updated(el, binding, vnode) {
const oldValue = parseValue(binding.oldValue);
unbindValue(oldValue, el);
const newValue = parseValue(binding.value);
bindValue(newValue, el, binding, vnode);
},
unmounted(el, binding) {
const value = parseValue(binding.value);
unbindValue(value, el);
},
});
};
This is the breaking changes from vue 2/3 https://v3.vuejs.org/guide/migration/custom-directives.html#custom-directives
Issue Analytics
- State:
- Created 2 years ago
- Reactions:8
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Frequently Asked Questions - Vue.js
What browsers does Vue support? #. The latest version of Vue (3.x) only supports browsers with native ES2015 support. This excludes IE11. Vue...
Read more >Vue.js 3 support - BootstrapVue
Quickly integrate Bootstrap v4 components with Vue.js. ... @vue/compat support is designed for early migration to Vue.js 3 and will be eventually replaced ......
Read more >Vue 3 – A roundup of infos about the new version of Vue.js
This version will be available as a LTS (long-term support) version for 18 months, which means that it will still get security updates...
Read more >Which UI Frameworks Support Vue 3? - In Plain English
Amplify UI is a component library (38 components) with support for Vue 3 and focus on Amazon AWS compatibility.
Read more >Vue - endoflife.date
Vue is a JavaScript framework for building user interfaces. It builds on top of standard ... Release, Released, Active Support, Security Support, Latest ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Ok!! I will look at this asap.
Have raised a pull request, and have also published an npm package vue-three-shortkey to use in the meantime until the PR is merged.