fix(runtime-core): align option merge behavior with Vue 2
fix #3566, #2791
This commit is contained in:
@@ -4,7 +4,11 @@ import {
|
||||
validateComponentName,
|
||||
Component
|
||||
} from './component'
|
||||
import { ComponentOptions, RuntimeCompilerOptions } from './componentOptions'
|
||||
import {
|
||||
ComponentOptions,
|
||||
MergedComponentOptions,
|
||||
RuntimeCompilerOptions
|
||||
} from './componentOptions'
|
||||
import { ComponentPublicInstance } from './componentPublicInstance'
|
||||
import { Directive, validateDirectiveName } from './directives'
|
||||
import { RootRenderFunction } from './renderer'
|
||||
@@ -98,7 +102,7 @@ export interface AppContext {
|
||||
* Each app instance has its own cache because app-level global mixins and
|
||||
* optionMergeStrategies can affect merge behavior.
|
||||
*/
|
||||
cache: WeakMap<ComponentOptions, ComponentOptions>
|
||||
cache: WeakMap<ComponentOptions, MergedComponentOptions>
|
||||
/**
|
||||
* Flag for de-optimizing props normalization
|
||||
* @internal
|
||||
|
||||
Reference in New Issue
Block a user