|
@@ -210,9 +210,9 @@ export function createRenderer(options: RendererOptions) {
|
|
|
}
|
|
}
|
|
|
const { flags } = vnode
|
|
const { flags } = vnode
|
|
|
if (flags & VNodeFlags.COMPONENT_STATEFUL) {
|
|
if (flags & VNodeFlags.COMPONENT_STATEFUL) {
|
|
|
- mountStatefulComponent(vnode, container, contextVNode, isSVG, endNode)
|
|
|
|
|
|
|
+ mountStatefulComponent(vnode, container, isSVG, endNode)
|
|
|
} else {
|
|
} else {
|
|
|
- mountFunctionalComponent(vnode, container, contextVNode, isSVG, endNode)
|
|
|
|
|
|
|
+ mountFunctionalComponent(vnode, container, isSVG, endNode)
|
|
|
}
|
|
}
|
|
|
if (__DEV__) {
|
|
if (__DEV__) {
|
|
|
popContext()
|
|
popContext()
|
|
@@ -222,7 +222,6 @@ export function createRenderer(options: RendererOptions) {
|
|
|
function mountStatefulComponent(
|
|
function mountStatefulComponent(
|
|
|
vnode: VNode,
|
|
vnode: VNode,
|
|
|
container: RenderNode | null,
|
|
container: RenderNode | null,
|
|
|
- contextVNode: MountedVNode | null,
|
|
|
|
|
isSVG: boolean,
|
|
isSVG: boolean,
|
|
|
endNode: RenderNode | null
|
|
endNode: RenderNode | null
|
|
|
) {
|
|
) {
|
|
@@ -234,7 +233,6 @@ export function createRenderer(options: RendererOptions) {
|
|
|
vnode,
|
|
vnode,
|
|
|
vnode.tag as ComponentClass,
|
|
vnode.tag as ComponentClass,
|
|
|
container,
|
|
container,
|
|
|
- contextVNode,
|
|
|
|
|
isSVG,
|
|
isSVG,
|
|
|
endNode
|
|
endNode
|
|
|
)
|
|
)
|
|
@@ -244,7 +242,6 @@ export function createRenderer(options: RendererOptions) {
|
|
|
function mountFunctionalComponent(
|
|
function mountFunctionalComponent(
|
|
|
vnode: VNode,
|
|
vnode: VNode,
|
|
|
container: RenderNode | null,
|
|
container: RenderNode | null,
|
|
|
- contextVNode: MountedVNode | null,
|
|
|
|
|
isSVG: boolean,
|
|
isSVG: boolean,
|
|
|
endNode: RenderNode | null
|
|
endNode: RenderNode | null
|
|
|
) {
|
|
) {
|
|
@@ -1156,7 +1153,6 @@ export function createRenderer(options: RendererOptions) {
|
|
|
vnode: VNode,
|
|
vnode: VNode,
|
|
|
Component: ComponentClass,
|
|
Component: ComponentClass,
|
|
|
container: RenderNode | null,
|
|
container: RenderNode | null,
|
|
|
- contextVNode: MountedVNode | null,
|
|
|
|
|
isSVG: boolean,
|
|
isSVG: boolean,
|
|
|
endNode: RenderNode | null
|
|
endNode: RenderNode | null
|
|
|
): RenderNode {
|
|
): RenderNode {
|
|
@@ -1164,7 +1160,7 @@ export function createRenderer(options: RendererOptions) {
|
|
|
// new Vue()
|
|
// new Vue()
|
|
|
const instance =
|
|
const instance =
|
|
|
(__COMPAT__ && (vnode.children as ComponentInstance)) ||
|
|
(__COMPAT__ && (vnode.children as ComponentInstance)) ||
|
|
|
- createComponentInstance(vnode, Component, contextVNode)
|
|
|
|
|
|
|
+ createComponentInstance(vnode, Component)
|
|
|
|
|
|
|
|
// inject platform-specific unmount to keep-alive container
|
|
// inject platform-specific unmount to keep-alive container
|
|
|
if ((Component as any)[KeepAliveSymbol] === true) {
|
|
if ((Component as any)[KeepAliveSymbol] === true) {
|