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
|
||||
beforeEach(() => {
|
||||
const instance = createComponentInstance((() => {}) as any, {})
|
||||
const instance = createComponentInstance((() => {}) as any, {}, null, null)
|
||||
const reset = setCurrentInstance(instance)
|
||||
const prev = getCurrentScope()
|
||||
instance.scope.on()
|
||||
|
|
|
@ -259,10 +259,10 @@ let uid = 0
|
|||
export function createComponentInstance(
|
||||
component: ObjectComponent | FunctionalComponent,
|
||||
rawProps: RawProps | null,
|
||||
slots: Slots | null = null,
|
||||
dynamicSlots: DynamicSlots | null = null,
|
||||
slots: Slots | null,
|
||||
dynamicSlots: DynamicSlots | null,
|
||||
// application root node only
|
||||
appContext: AppContext | null = null,
|
||||
appContext?: AppContext,
|
||||
): ComponentInternalInstance {
|
||||
const parent = getCurrentInstance()
|
||||
const _appContext =
|
||||
|
|
Loading…
Reference in New Issue