fix(v-model): v-model listeners should not fallthrough to plain element root

fix #1643
This commit is contained in:
Evan You
2020-07-21 14:17:48 -04:00
parent 304830a764
commit c852bf18d7
4 changed files with 71 additions and 53 deletions

View File

@@ -41,6 +41,8 @@ export const NO = () => false
const onRE = /^on[^a-z]/
export const isOn = (key: string) => onRE.test(key)
export const isModelListener = (key: string) => key.startsWith('onUpdate:')
export const extend = Object.assign
export const remove = <T>(arr: T[], el: T) => {