mirror of https://github.com/vuejs/core.git
wip(vapor): mounted/beforeMounted lifecycle hooks
This commit is contained in:
parent
e23a6a8746
commit
ebe787108d
|
@ -16,7 +16,7 @@ const mountApp: AppMountFn<ParentNode> = (app, container) => {
|
|||
container.textContent = ''
|
||||
}
|
||||
const instance = createComponent(app._component)
|
||||
insert(instance.block, container)
|
||||
insert(instance, container)
|
||||
return instance
|
||||
}
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import { isArray } from '@vue/shared'
|
||||
import { invokeArrayFns, isArray } from '@vue/shared'
|
||||
import { renderEffect } from '../renderEffect'
|
||||
import { setText } from './prop'
|
||||
import { type Block, normalizeBlock } from '../block'
|
||||
|
@ -12,7 +12,9 @@ export function insert(
|
|||
if (block instanceof Node) {
|
||||
parent.insertBefore(block, anchor)
|
||||
} else if (isVaporComponent(block)) {
|
||||
if (block.bm) invokeArrayFns(block.bm)
|
||||
insert(block.block, parent, anchor)
|
||||
if (block.m) invokeArrayFns(block.m)
|
||||
} else if (isArray(block)) {
|
||||
for (let i = 0; i < block.length; i++) {
|
||||
insert(block[i], parent, anchor)
|
||||
|
|
Loading…
Reference in New Issue