wip: compat configuration
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
import {
|
||||
DeprecationTypes,
|
||||
warnDeprecation,
|
||||
getCurrentInstance,
|
||||
LegacyConfig
|
||||
DeprecationTypes,
|
||||
LegacyConfig,
|
||||
compatUtils
|
||||
} from '@vue/runtime-core'
|
||||
import { hyphenate, isArray } from '@vue/shared'
|
||||
|
||||
@@ -62,7 +62,7 @@ export const withKeys = (fn: Function, modifiers: string[]) => {
|
||||
keyCodes = ((getCurrentInstance()!.appContext
|
||||
.config as any) as LegacyConfig).keyCodes
|
||||
if (__DEV__ && modifiers.some(m => /^\d+$/.test(m))) {
|
||||
warnDeprecation(DeprecationTypes.V_ON_KEYCODE_MODIFIER)
|
||||
compatUtils.warnDeprecation(DeprecationTypes.V_ON_KEYCODE_MODIFIER)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import {
|
||||
App,
|
||||
RootHydrateFunction,
|
||||
isRuntimeOnly,
|
||||
warnDeprecation,
|
||||
DeprecationTypes
|
||||
DeprecationTypes,
|
||||
compatUtils
|
||||
} from '@vue/runtime-core'
|
||||
import { nodeOps } from './nodeOps'
|
||||
import { patchProp, forcePatchProp } from './patchProp'
|
||||
@@ -78,7 +78,7 @@ export const createApp = ((...args) => {
|
||||
for (let i = 0; i < container.attributes.length; i++) {
|
||||
const attr = container.attributes[i]
|
||||
if (attr.name !== 'v-cloak' && /^(v-|:|@)/.test(attr.name)) {
|
||||
warnDeprecation(DeprecationTypes.GLOBAL_DOM_TEMPLATE_MOUNT)
|
||||
compatUtils.warnDeprecation(DeprecationTypes.GLOBAL_MOUNT_CONTAINER)
|
||||
break
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user