Skip to content

Component inside <Transition> renders non-element root node that cannot be a #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
any86 opened this issue Dec 1, 2021 · 0 comments

Comments

@any86
Copy link
Owner

any86 commented Dec 1, 2021

解决办法

看下里的页面是不是有多个根元素, 如果是改成一个, 比如下面的"A组件"包含多个根, 他就不可以放在""中.

// A.vue
<template>
	<p>1</p>
	<p>2</p>
</template>
// 错误
<transition>
  <A></A>
</transition>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant