feat(portal): support multiple portal appending to same target

This commit is contained in:
Evan You
2020-03-27 18:42:57 -04:00
parent b8ffbffaf7
commit aafb880a0a
6 changed files with 178 additions and 95 deletions

View File

@@ -1839,7 +1839,7 @@ function baseCreateRenderer(
if (__FEATURE_SUSPENSE__ && vnode.shapeFlag & ShapeFlags.SUSPENSE) {
return vnode.suspense!.next()
}
return hostNextSibling((vnode.anchor || vnode.el)!)
return hostNextSibling((vnode.type === Fragment ? vnode.anchor : vnode.el)!)
}
const setRef = (