wip: more compat tweaks

This commit is contained in:
Evan You
2021-04-22 14:59:54 -04:00
parent 98bc9a26e9
commit 7e0224aa8c
9 changed files with 86 additions and 14 deletions

View File

@@ -429,6 +429,9 @@ export function normalizePropsOptions(
let hasExtends = false
if (__FEATURE_OPTIONS_API__ && !isFunction(comp)) {
const extendProps = (raw: ComponentOptions) => {
if (__COMPAT__ && isFunction(raw)) {
raw = raw.options
}
hasExtends = true
const [props, keys] = normalizePropsOptions(raw, appContext, true)
extend(normalized, props)