Description
Here you can read a post from Evan You @yyx990803 vuejs/core#4744 (comment)
I feel like this library is not maintained anymore. Maybe it's time to deprecate it?
vue-class-component
made sense for Vue 2.x when the TypeScript support was really bad. Currently this library provides no additional benefits, it just modifies the syntax of declaring a component. Additionally almost all users of vue-class-component
are using vue-property-decorator
(https://github.com/kaorun343/vue-property-decorator) which also seems abandoned.
For Vue 3.x the author of vue-class-component
@ktsn introduced a new way of declaring props in a component #465 which IMO looks really ugly and most developers will not like it. This creates additional chaos in the Vue ecosystem because now you can use the new way of declaring props for class components or just install vue-property-decorator
and use decorators like it was before. Additionally you can also use normal Options API or Composition API.
In conclusion, my suggestion is to deprecate vue-class-component
and do not further suggest new developers using it.
There is no point to fragment the Vue ecosystem into class components and object components where class components provides no gain over the standard Vue syntax.