]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
chore: update
authordaiwei <daiwei521@126.com>
Mon, 29 Sep 2025 02:53:08 +0000 (10:53 +0800)
committerdaiwei <daiwei521@126.com>
Mon, 29 Sep 2025 02:53:08 +0000 (10:53 +0800)
packages/runtime-vapor/src/dom/node.ts

index 5ec574e855710b101057034d814edb44b7b760dc..c88747f5fef52f9427890a62fe7a99d1c0a425db 100644 (file)
@@ -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 = (