# 廢棄的寫法
[vue3廢棄api官網說明](https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html)
## 1.filter
不支持filter,建議使用全局屬性app.config.globalProperties.或者computed替代
## 2.$set
不支持$set,可以直接修改對象屬性this.xx=XX
## 3.sync
.sync修飾符需要修改成v-model="editParams"
(Vue3自定義組件的v-model不再是觸發@input方法,而是@updateValue:editParams方法)
## 4.Vue.extend
不支持extend
## 5.on,off 和 $once 實例方法已被移除
on,off 和 $once 實例方法已被移除,組件實例不再實現事件觸發接口。
$emit 仍然包含于現有的 API 中。
## 6.$children
$children 不支持,遷移到$refs
## 7. this.$scopedSlots
移除 this.$scopedSlots
遷移策略: 所有 this.scopedSlots 替換為 this.scopedSlots替換為this.slots
## 8.取消KeyboardEvent.keyCode
取消`Vue2.x`中的綁定鍵盤事件
## 9.$listeners和$delete
取消$listeners和$delete