refactor(runtime-vapor): remove default value

This commit is contained in:
三咲智子 Kevin Deng 2024-05-12 00:01:27 +08:00
parent 639c847c0c
commit 1c54cae29a
No known key found for this signature in database
2 changed files with 4 additions and 4 deletions

View File

@ -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()

View File

@ -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 =