]> git.ipfire.org Git - thirdparty/vuejs/core.git/commitdiff
Merge branch 'edison/feat/fowardedSlots' into edison/testVapor
authordaiwei <daiwei521@126.com>
Fri, 20 Jun 2025 02:23:43 +0000 (10:23 +0800)
committerdaiwei <daiwei521@126.com>
Fri, 20 Jun 2025 02:23:43 +0000 (10:23 +0800)
1  2 
packages/runtime-vapor/src/block.ts
packages/runtime-vapor/src/vdomInterop.ts

index 6fcec466a33af00a151f93e13ea89ccc0b1d1c7c,93c88f9c01170fc9e7cb089bb8ffc120b4994343..582b3104525ec2209c289a18749e024c4f9987e6
@@@ -216,13 -124,17 +216,16 @@@ export function insert
        insert(b, parent, anchor)
      }
    } else {
+     if (block.anchor) {
+       insert(block.anchor, parent, anchor)
+       anchor = block.anchor
+     }
      // fragment
      if (block.insert) {
 -      // TODO handle hydration for vdom interop
 -      block.insert(parent, anchor)
 +      block.insert(parent, anchor, (block as TransitionBlock).$transition)
      } else {
 -      insert(block.nodes, parent, anchor)
 +      insert(block.nodes, parent, anchor, parentSuspense)
      }
-     if (block.anchor) insert(block.anchor, parent, anchor)
    }
  }