transition和keep-alive结合使用,使用vue3的fragement多个根路径写法时报错
What problem does this feature solve?
appMain.vue
vue3 Page
has issue
第二种写法 appMain.vue 此时不报错了, 我加多了一个div,但是不动画了
What does the proposed API look like?
我想使用vue3的fragement多个根路径写法时,同时想要缓存和动画,且不报错,我需要怎么写,或者有什么解决方案。
Dude, you can do like this 老哥,你把这个组件套一层div,像下面这样应该就可以了
<template>
<div>
<div>这是父组件</div>
....
</div>
</template>
But I think it should be a bug... 但是我觉得这个应该算bug...
- This reproduction is a whole template - we need a minimal reproduction focused on the actual problem.
- It seems you try to transition to a component that renders multiple root nodes - that's not possible, as the error message states.