ignoredElements 【忽略自定義元素, 支持正則】
Vue.config.ignoredElements = [
'my-custom-web-component',
/^ion-/
]
Vue.observable 【讓一個(gè)對(duì)象可響應(yīng)。 可作為最小化跨組件狀態(tài)存儲(chǔ)器】
const state = Vue.observable({ count: 0 })
errorCaptured 【當(dāng)捕獲一個(gè)來(lái)自子孫組件的錯(cuò)誤時(shí)被調(diào)用。】
vm.$slots 【v-slot 指令取代 slot 和 slot-scope】
v-for 【支持在可迭代協(xié)議的值(Iterable)上使用,包括Map和Set,2.x目前不支持可響應(yīng)Map和Set】
v-on 【支持動(dòng)態(tài)事件】
<button v-on:[event]="doThis"></button>
<button @[event]="doThis"></button>
v-bind 【支持動(dòng)態(tài)特性名】
<button v-bind:[key]="value"></button>
<button :[key]="value"></button>
keep-alive 【新增 max 屬性,表最多可緩存的組件實(shí)例數(shù)】
查看詳細(xì)說(shuō)明,請(qǐng)轉(zhuǎn)至官網(wǎng)Vue.js API