Vue3 升级内容
-
createAPP,参考:https://v3.cn.vuejs.org/guide/migration/global-api.html#%E6%8C%82%E8%BD%BD-app-%E5%AE%9E%E4%BE%8B
-
多事件,参考:https://v3.cn.vuejs.org/guide/events.html#%E5%A4%9A%E4%BA%8B%E4%BB%B6%E5%A4%84%E7%90%86%E5%99%A8
-
emits 属性,参考:https://v3.cn.vuejs.org/guide/migration/emits-option.html#%E6%A6%82%E8%BF%B0
-
Fragment,参考:https://v3.cn.vuejs.org/guide/migration/fragments.html#%E6%A6%82%E8%A7%88
-
移除 .sync,参考:https://v3.cn.vuejs.org/guide/migration/v-model.html#%E4%BD%BF%E7%94%A8-v-bind-sync
-
异步组件的写法,参考:https://v3.cn.vuejs.org/guide/migration/async-components.html#_3-x-%E8%AF%AD%E6%B3%95
-
Suspense,参考:https://v3.cn.vuejs.org/guide/migration/suspense.html
-
移除 filter,参考:https://v3.cn.vuejs.org/guide/migration/filters.html#_2-x-%E8%AF%AD%E6%B3%95
-
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