美文网首页
vue typescript中vue-property-deco

vue typescript中vue-property-deco

作者: w_wx_x | 来源:发表于2019-11-21 17:35 被阅读0次

官方提出:vue-class-component
社区提出:vue-property-decorator

vue-property-decorator
1.深度依赖了 vue-class-component
2.拓展出了很多操作符 @Prop @Emit @Inject 等等
3.可以说是vue-class-component的一个超集
4.正常开发的时候你只需要使用vue-property-decorator
vue-property-decorator使用说明:https://www.npmjs.com/package/vue-property-decorator

相关文章

网友评论

      本文标题:vue typescript中vue-property-deco

      本文链接:https://www.haomeiwen.com/subject/pswtwctx.html