wip: keyCode compat

This commit is contained in:
Evan You
2021-04-06 17:38:43 -04:00
parent 2784d6615d
commit 068d93b9e5
3 changed files with 53 additions and 9 deletions

View File

@@ -29,7 +29,9 @@ export const enum DeprecationTypes {
PROPS_DEFAULT_THIS,
CUSTOM_DIR
CUSTOM_DIR,
V_ON_KEYCODE_MODIFIER
}
type DeprecationData = {
@@ -190,6 +192,13 @@ const deprecations: Record<DeprecationTypes, DeprecationData> = {
`Custom directive hook "${legacyHook}" has been removed. ` +
`Use "${newHook}" instead.`,
link: `https://v3.vuejs.org/guide/migration/custom-directives.html`
},
[DeprecationTypes.V_ON_KEYCODE_MODIFIER]: {
message:
`Using keyCode as v-on modifier is no longer supported. ` +
`Use kebab-case key name modifiers instead.`,
link: `https://v3.vuejs.org/guide/migration/keycode-modifiers.html`
}
}