Vue3 升级内容
createAPP,参考:https://v3.cn.vuejs.org/guide/migration/global-api.html#挂载-app-实例
emits 属性,参考:https://v3.cn.vuejs.org/guide/migration/emits-option.html#概述
Fragment,参考:https://v3.cn.vuejs.org/guide/migration/fragments.html#概览
生命周期,参考:https://v3.cn.vuejs.org/guide/migration/introduction.html#其他小改变
移除 .sync,参考:https://v3.cn.vuejs.org/guide/migration/v-model.html#使用-v-bind-sync
异步组件的写法,参考:https://v3.cn.vuejs.org/guide/migration/async-components.html#_3-x-语法
Suspense,参考:https://v3.cn.vuejs.org/guide/migration/suspense.html
移除 filter,参考:https://v3.cn.vuejs.org/guide/migration/filters.html#_2-x-语法
Composition API,参考:https://v3.cn.vuejs.org/guide/composition-api-introduction.html
- reactive
- watch 和 watchEffect
- ref 相关
- setup
- readonly
- 生命周期钩子函数
Teleport,参考:https://v3.cn.vuejs.org/guide/teleport.html