mirror of https://github.com/vuejs/core.git
wip: respect rootProps in createVaporApp
This commit is contained in:
parent
3ef1656d4a
commit
68aa9bd768
|
@ -7,6 +7,7 @@ import {
|
||||||
createAppAPI,
|
createAppAPI,
|
||||||
normalizeContainer,
|
normalizeContainer,
|
||||||
} from '@vue/runtime-dom'
|
} from '@vue/runtime-dom'
|
||||||
|
import type { RawProps } from './componentProps'
|
||||||
|
|
||||||
let _createApp: CreateAppFunction<ParentNode, VaporComponent>
|
let _createApp: CreateAppFunction<ParentNode, VaporComponent>
|
||||||
|
|
||||||
|
@ -15,7 +16,7 @@ const mountApp: AppMountFn<ParentNode> = (app, container) => {
|
||||||
if (container.nodeType === 1 /* Node.ELEMENT_NODE */) {
|
if (container.nodeType === 1 /* Node.ELEMENT_NODE */) {
|
||||||
container.textContent = ''
|
container.textContent = ''
|
||||||
}
|
}
|
||||||
const instance = createComponent(app._component)
|
const instance = createComponent(app._component, app._props as RawProps)
|
||||||
insert(instance, container)
|
insert(instance, container)
|
||||||
return instance
|
return instance
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue