企业🤖AI Agent构建引擎,智能编排和调试,一键部署,支持私有化部署方案 广告
[TOC] # Vue 与 TypeScript ## 基础 1. [vue-property-decorator](https://github.com/kaorun343/vue-property-decorator) 1.`vue-class-component` vue 官方出的,提供了 Vue、Component 等等。 2. `vue-property-decorator` 社区出的,深度依赖了 `vue-class-component` 拓展出了很多操作符:`@Prop`、`@Emit`、`@Inject` 等等。可以说是 `vue-class-component` 的一个超集。 正常开发的时候,只需要使用 `vue-property-decorator` 即可。 2. [vuex-class](https://github.com/ktsn/vuex-class) 基于 `vue-class-component` 对 Vuex 提供的装饰器 ## JSX 还是推荐使用 jsx 的方式编写 vue。 # 参考 [使用tsx开发vue项目入门](https://blog.csdn.net/keader01/article/details/104109906) [开启在vue中使用typescript+jsx之旅](https://segmentfault.com/a/1190000022310242)