feat(transition): compat with keep-alive

This commit is contained in:
Evan You
2019-11-25 17:34:28 -05:00
parent 16ea2993d6
commit c6fb506fc0
8 changed files with 192 additions and 88 deletions

View File

@@ -91,7 +91,8 @@ export function renderComponentRoot(
if (
__DEV__ &&
!(result.shapeFlag & ShapeFlags.COMPONENT) &&
!(result.shapeFlag & ShapeFlags.ELEMENT)
!(result.shapeFlag & ShapeFlags.ELEMENT) &&
result.type !== Comment
) {
warn(
`Component inside <Transition> renders non-element root node ` +