上面是一个管理端结构,父组件和子组件都是通过router挂载的。
<router-view v-slot="{ Component, route }">
<transition
enter-from-class="op-0 translate-x--10"
leave-to-class="op-0 translate-x-10"
mode="out-in"
appear
>
<component
:is="Component"
:key="route.fullPath"
transition="~ duration-300"
class="min-w-980 max-w-1280 mx-auto rd-2"
/>
</transition>
</router-view>
在切换子组件时,怎么只触发子组件的过渡动画,而不触发父组件的