mirror of
https://github.com/Kisechan/Mainpage.git
synced 2025-07-10 23:27:18 +00:00
添加页面过渡效果,更新路由元信息以设置页面标题,优化页脚内容和样式
This commit is contained in:
16
src/App.vue
16
src/App.vue
@ -6,8 +6,10 @@ import AppFooter from "./components/AppFooter.vue";
|
||||
<template>
|
||||
<div>
|
||||
<NavBar />
|
||||
<router-view />
|
||||
<AppFooter />
|
||||
<transition name="fade" mode="out-in">
|
||||
<router-view />
|
||||
</transition>
|
||||
<AppFooter v-if="!$route.meta.hideFooter" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -27,4 +29,14 @@ html, body {
|
||||
.main-content {
|
||||
flex: 1; /* 占据剩余空间 */
|
||||
}
|
||||
|
||||
.fade-enter-active,
|
||||
.fade-leave-active {
|
||||
transition: opacity 0.5s ease;
|
||||
}
|
||||
|
||||
.fade-enter-from,
|
||||
.fade-leave-to {
|
||||
opacity: 0;
|
||||
}
|
||||
</style>
|
||||
|
Reference in New Issue
Block a user