mirror of https://github.com/vuejs/core.git
refactor(runtime-vapor): remove default value
This commit is contained in:
parent
639c847c0c
commit
1c54cae29a
|
@ -18,7 +18,7 @@ import { getCurrentScope } from '@vue/reactivity'
|
||||||
|
|
||||||
let removeComponentInstance = NOOP
|
let removeComponentInstance = NOOP
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
const instance = createComponentInstance((() => {}) as any, {})
|
const instance = createComponentInstance((() => {}) as any, {}, null, null)
|
||||||
const reset = setCurrentInstance(instance)
|
const reset = setCurrentInstance(instance)
|
||||||
const prev = getCurrentScope()
|
const prev = getCurrentScope()
|
||||||
instance.scope.on()
|
instance.scope.on()
|
||||||
|
|
|
@ -259,10 +259,10 @@ let uid = 0
|
||||||
export function createComponentInstance(
|
export function createComponentInstance(
|
||||||
component: ObjectComponent | FunctionalComponent,
|
component: ObjectComponent | FunctionalComponent,
|
||||||
rawProps: RawProps | null,
|
rawProps: RawProps | null,
|
||||||
slots: Slots | null = null,
|
slots: Slots | null,
|
||||||
dynamicSlots: DynamicSlots | null = null,
|
dynamicSlots: DynamicSlots | null,
|
||||||
// application root node only
|
// application root node only
|
||||||
appContext: AppContext | null = null,
|
appContext?: AppContext,
|
||||||
): ComponentInternalInstance {
|
): ComponentInternalInstance {
|
||||||
const parent = getCurrentInstance()
|
const parent = getCurrentInstance()
|
||||||
const _appContext =
|
const _appContext =
|
||||||
|
|
Loading…
Reference in New Issue