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