pref: fix fade transition

This commit is contained in:
thehrz 2023-08-13 14:06:11 +08:00
parent d796ffa08c
commit 54ac696913
Signed by: thehrz
GPG Key ID: C84CBCE7D5F88855
3 changed files with 13 additions and 13 deletions

View File

@ -2,14 +2,14 @@
<v-app class="flex flex-col">
<Nav />
<v-main style="--v-layout-top: 25px;--v-layout-bottom: 70px;">
<div class="prose max-w-110ch m-auto p-3">
<router-view v-slot="{ Component, route }">
<transition name="fade">
<component :is="Component" :key="route.path" />
</transition>
</router-view>
</div>
</v-main>
<div style="--v-layout-top: 25px;--v-layout-bottom: 70px;">
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">
<div :key="route.path" class="prose max-w-110ch m-auto p-3">
<component :is="Component" />
</div>
</transition>
</router-view>
</div>
</v-app>
</template>

View File

@ -3,9 +3,9 @@
<Nav />
<div style="--v-layout-top: 25px" class="m-auto">
<router-view v-slot="{ Component }">
<transition name="fade">
<div class="">
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">
<div :key="route.path" class="prose max-w-110ch m-auto p-3">
<component :is="Component" />
</div>
</transition>

View File

@ -28,7 +28,7 @@ body,
.fade-enter-active,
.fade-leave-active {
transition: opacity 0.5s ease;
transition: opacity 0.3s ease;
}
.fade-enter-from,