mirror of https://github.com/vuejs/core.git
chore: update
This commit is contained in:
parent
0436ceac77
commit
ba48c8ab57
|
@ -139,16 +139,16 @@ export function disableHydrationNodeLookup(): void {
|
|||
}
|
||||
|
||||
export function locateChildByLogicalIndex(
|
||||
node: InsertionParent,
|
||||
parent: InsertionParent,
|
||||
logicalIndex: number,
|
||||
): Node | null {
|
||||
let child = (node.$lastLogicalChild || node.firstChild) as ChildItem
|
||||
let child = (parent.$lastLogicalChild || parent.firstChild) as ChildItem
|
||||
let fromIndex = child.$idx || 0
|
||||
|
||||
while (child) {
|
||||
if (fromIndex === logicalIndex) {
|
||||
child.$idx = logicalIndex
|
||||
return (node.$lastLogicalChild = child)
|
||||
return (parent.$lastLogicalChild = child)
|
||||
}
|
||||
|
||||
child = (
|
||||
|
|
Loading…
Reference in New Issue