You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
First, this decorator's behavior is defined by this library itself.
I would like to keep this library easy to estimate those decorators' behavior. However, @Emit decorator has some unique behaviors, for instance, catch return value and arguments and emit them, treat with promise. On the contrary, these behaviors are easily implemented without using this decorator.
// Same line count do same thing
@ComponentclassMyComponentextendsVue{
@Emit('change')handleChangeA(){return'new value'}handleChangeB(){this.$emit('change','new value')}}
Proposal
I'd like to deprecate @Emit decorator.
Then, developers will use this.$emit instead.