Files
vue3-tutorial/docs/chapter3/02_全局API更新.md
zxfjd3g 981d157ac7 init
2020-11-12 19:08:22 +08:00

22 lines
524 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2. 全局API更新
## 全新的全局API
- createApp()
- defineProperty()
- defineAsyncComponent()
- nextTick()
## 将原来的全局API转移到应用对象
- app.component()
- app.config()
- app.directive()
- app.mount()
- app.unmount()
- app.use()
## 模板语法变化
- v-model的本质变化
- propvalue -> modelValue
- eventinput -> update:modelValue
- .sync修改符已移除, 由v-model代替
- <ChildComponent v-model:title="pageTitle" v-model:content="pageContent" />
- v-if优先v-for解析