feat(transition): support component child

This commit is contained in:
Evan You
2019-11-20 21:56:17 -05:00
parent 93561b080e
commit 79f23a2f77
6 changed files with 114 additions and 111 deletions

View File

@@ -85,6 +85,12 @@ export function renderComponentRoot(
)
}
}
// inherit transition data
if (vnode.transition != null) {
// TODO warn if component has transition data but root is a fragment
result.transition = vnode.transition
}
} catch (err) {
handleError(err, instance, ErrorCodes.RENDER_FUNCTION)
result = createVNode(Comment)