Ver Fonte

fix(vapor): handle next host node for vapor component (#12820)

edison há 1 ano atrás
pai
commit
05d9b429a4
1 ficheiros alterados com 3 adições e 0 exclusões
  1. 3 0
      packages/runtime-core/src/renderer.ts

+ 3 - 0
packages/runtime-core/src/renderer.ts

@@ -2418,6 +2418,9 @@ function baseCreateRenderer(
 
   const getNextHostNode: NextFn = vnode => {
     if (vnode.shapeFlag & ShapeFlags.COMPONENT) {
+      if ((vnode.type as ConcreteComponent).__vapor) {
+        return hostNextSibling((vnode.component! as any).block)
+      }
       return getNextHostNode(vnode.component!.subTree)
     }
     if (__FEATURE_SUSPENSE__ && vnode.shapeFlag & ShapeFlags.SUSPENSE) {