Open any86 opened 2 years ago
看下里的页面是不是有多个根元素, 如果是改成一个, 比如下面的"A组件"包含多个根, 他就不可以放在""中.
// A.vue <template> <p>1</p> <p>2</p> </template>
// 错误 <transition> <A></A> </transition>
解决办法
看下里的页面是不是有多个根元素, 如果是改成一个, 比如下面的"A组件"包含多个根, 他就不可以放在""中.