Match-id-8d8e589bdbc4b167a6b0e61f1706aa51e83543e5

This commit is contained in:
* 2022-01-20 16:59:09 +08:00 committed by *
parent ebf980b555
commit c66db8d84f
5 changed files with 10 additions and 5 deletions

View File

@ -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;
}
// 判断一个标签是否有设置选择范围的能力

View File

@ -46,7 +46,8 @@ function mapChildrenToArray(
throw new Error(
'Object is invalid as a Horizon child. '
);
default:
// No Default
}
}

View File

@ -219,7 +219,7 @@ export function tryRenderRoot(treeRoot: VNode) {
}
// 发起更新
export function launchUpdateFromVNode(vNode: VNode): void {
export function launchUpdateFromVNode(vNode: VNode) {
// 检查循环调用
checkLoopingUpdateLimit();

View File

@ -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;
}
}

View File

@ -71,6 +71,7 @@ function callBeforeSubmitLifeCycles(
const root = vNode.realNode;
clearContainer(root.outerDom);
}
// No Default
}
}
@ -137,6 +138,7 @@ function callAfterSubmitLifeCycles(
}
}
}
// No Default
}
}