This library fully depends on vue-class-component, so please read its README before using this library.
This repository is fork from kaorun343/vue-property-decorator.
Since vue-property-decorator@10.0.0-rc.1
has multiple breaking change, in order to make migration from vue2 to vue3 more smoothly, some of API in ^9.0.0
are left untouched in this repo, it would make migration easier.
Here's the list: (Those with ✅ behind mean they work the same as the previous version.)
- @Prop ✅
@PropSync- @Model ✅
@ModelSync- @Watch ✅
- @ProvideReactive ✅
- @InjectReactive ✅
- @Emit ✅
- @Ref ✅
- @Component ✅
- Mixins ✅
- This forking is trying to help project using vue2 migrate to vue3.
- Since the next version of
vue-class-component
stayed rc for over two years, it's recommended not to depend onvue-property-decorator
for further coding. - This forking might not be maintain for anymore.
$ npm install --save kaygnas-vue-property-decorator
# or
$ yarn add kaygnas-vue-property-decorator
for usage, please check kaorun343/vue-property-decorator
MIT