What's the difference between vue-property-decorator and vue-class-component?

@Component({})

it seems that all of them can be used in the above way, and it is a bit confusing over time. What is the difference between them? Or which one should be used in what scenarios?

Apr.07,2021

vue class component is official by vue
vue property decorator is from the community
in which vue class component provides vue component and so on
vue property decorator deeply depends on vue class component to expand a lot of operators @ Prop @ Emit @ Inject and so on, it can be said to be a superset of vue class component
when normal development, you only need to use the operators provided in vue property decorator to no longer need to introduce vue component from vue class componen

.
Menu