wip: respect rootProps in createVaporApp

This commit is contained in:
Evan You 2024-12-06 22:50:53 +08:00
parent 3ef1656d4a
commit 68aa9bd768
No known key found for this signature in database
GPG Key ID: 00E9AB7A6704CE0A
1 changed files with 2 additions and 1 deletions

View File

@ -7,6 +7,7 @@ import {
createAppAPI,
normalizeContainer,
} from '@vue/runtime-dom'
import type { RawProps } from './componentProps'
let _createApp: CreateAppFunction<ParentNode, VaporComponent>
@ -15,7 +16,7 @@ const mountApp: AppMountFn<ParentNode> = (app, container) => {
if (container.nodeType === 1 /* Node.ELEMENT_NODE */) {
container.textContent = ''
}
const instance = createComponent(app._component)
const instance = createComponent(app._component, app._props as RawProps)
insert(instance, container)
return instance
}