1
0
mirror of https://github.com/zclzone/vue-naive-admin.git synced 2026-01-22 23:50:22 +08:00

fix: 修复keepAlive页面transition不生效问题, close #93

This commit is contained in:
zclzone
2024-09-03 09:02:17 +08:00
parent 615c3b63f7
commit 3359b0f2b5
3 changed files with 41 additions and 47 deletions

View File

@@ -8,11 +8,9 @@
<template>
<main class="cus-scroll h-full flex-col flex-1 bg-#f5f6fb dark:bg-#121212">
<transition name="fade-slide" mode="out-in" appear>
<main :class="{ 'flex-1': full }" class="m-12">
<slot />
</main>
</transition>
<main :class="{ 'flex-1': full }" class="m-12">
<slot />
</main>
<slot v-if="$slots.footer" name="footer" />
<TheFooter v-else-if="showFooter" class="mb-12 mt-auto" />
<n-back-top :bottom="20" />