Match-id-8d8e589bdbc4b167a6b0e61f1706aa51e83543e5
This commit is contained in:
parent
ebf980b555
commit
c66db8d84f
|
@ -69,10 +69,11 @@ function isNodeContainsByTargetNode(targetNode, node) {
|
|||
return false;
|
||||
}
|
||||
|
||||
function isInDocument(dom): any | void {
|
||||
function isInDocument(dom) {
|
||||
if (dom && dom.ownerDocument) {
|
||||
return isNodeContainsByTargetNode(dom.ownerDocument.documentElement, dom);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// 判断一个标签是否有设置选择范围的能力
|
||||
|
|
|
@ -46,7 +46,8 @@ function mapChildrenToArray(
|
|||
throw new Error(
|
||||
'Object is invalid as a Horizon child. '
|
||||
);
|
||||
default:
|
||||
|
||||
// No Default
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -219,7 +219,7 @@ export function tryRenderRoot(treeRoot: VNode) {
|
|||
}
|
||||
|
||||
// 发起更新
|
||||
export function launchUpdateFromVNode(vNode: VNode): void {
|
||||
export function launchUpdateFromVNode(vNode: VNode) {
|
||||
// 检查循环调用
|
||||
checkLoopingUpdateLimit();
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@ function captureLazyComponent(
|
|||
processing,
|
||||
lazyComponent,
|
||||
shouldUpdate,
|
||||
): any | void {
|
||||
) {
|
||||
if (!processing.isCreated) {
|
||||
// 每次加载lazy都当作mount来处理
|
||||
processing.isCreated = true;
|
||||
|
@ -64,6 +64,7 @@ function captureLazyComponent(
|
|||
Component,
|
||||
'',
|
||||
);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -71,6 +71,7 @@ function callBeforeSubmitLifeCycles(
|
|||
const root = vNode.realNode;
|
||||
clearContainer(root.outerDom);
|
||||
}
|
||||
|
||||
// No Default
|
||||
}
|
||||
}
|
||||
|
@ -137,6 +138,7 @@ function callAfterSubmitLifeCycles(
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
// No Default
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue