我目前正在使用 vuejs 2 和 vuetify 2 开发企业应用程序的 Web 前端。计划在发布后迁移到 Vuejs 3。
是否有任何编码模式现在应该避免,以便将来轻松迁移到 vuejs 3?
Vue 3 发布路线图的 github 说:
High level API remains as close to 2.x as possible. Breaking changes only made where necessary, and will be communicated through the RFC process. (https://github.com/vuejs/roadmap)
最佳答案
Are there any coding pattern which should be avoided now for any easy future migration to vuejs 3?
是的。应避免使用基于类的组件。它们不会被标记为过时,但无法将组合 API 与它们一起使用。类组件不再是 Vue 的 future 。
关于这个问题:
关于vue.js - 从 VueJS2 轻松迁移到 VueJS3 的最佳实践?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58367558/