pref: update transition
This commit is contained in:
parent
e2d80b78d8
commit
72267bc37c
@ -21,5 +21,9 @@ useHead({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<RouterView />
|
<router-view v-slot="{ Component, route }">
|
||||||
|
<transition name="fade" mode="out-in">
|
||||||
|
<component :is="Component" :key="route.path" />
|
||||||
|
</transition>
|
||||||
|
</router-view>
|
||||||
</template>
|
</template>
|
||||||
|
@ -2,13 +2,11 @@
|
|||||||
<v-app class="flex flex-col">
|
<v-app class="flex flex-col">
|
||||||
<Nav />
|
<Nav />
|
||||||
|
|
||||||
<div style="--v-layout-top: 25px;--v-layout-bottom: 70px;">
|
<div>
|
||||||
<router-view v-slot="{ Component, route }">
|
<router-view v-slot="{ Component }">
|
||||||
<transition name="fade" mode="out-in">
|
<div class="prose max-w-110ch m-auto p-3">
|
||||||
<div :key="route.path" class="prose max-w-110ch m-auto p-3">
|
<component :is="Component" />
|
||||||
<component :is="Component" />
|
</div>
|
||||||
</div>
|
|
||||||
</transition>
|
|
||||||
</router-view>
|
</router-view>
|
||||||
</div>
|
</div>
|
||||||
</v-app>
|
</v-app>
|
||||||
|
@ -2,14 +2,6 @@
|
|||||||
<v-app class="flex flex-col">
|
<v-app class="flex flex-col">
|
||||||
<Nav />
|
<Nav />
|
||||||
|
|
||||||
<div style="--v-layout-top: 25px" class="m-auto">
|
<router-view class="prose max-w-110ch m-auto p-3" />
|
||||||
<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>
|
</v-app>
|
||||||
</template>
|
</template>
|
||||||
|
Loading…
Reference in New Issue
Block a user