tab 测试

This commit is contained in:
Shikong 2023-07-11 15:33:23 +08:00
parent cbd7809291
commit 6952d6837c

View File

@ -9,12 +9,14 @@
:label="item.title"
:closable="item.closable"
:name="item.name">
<router-view v-slot="{ Component }">
<transition>
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" />
<keep-alive v-else>
<component :is="Component" />
</keep-alive>
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">
<div>
<component v-if="route.meta.keepAlive != null && route.meta.keepAlive === false" :is="Component" :key="route.path"/>
<keep-alive v-else>
<component :is="Component" :key="route.path"/>
</keep-alive>
</div>
</transition>
</router-view>
</el-tab-pane>