2025-03-02 22:11:27 +08:00
|
|
|
<script setup>
|
2025-03-04 11:39:37 +08:00
|
|
|
import NavBar from "./components/NavBar.vue";
|
|
|
|
import AppFooter from "./components/AppFooter.vue";
|
2025-03-02 22:11:27 +08:00
|
|
|
</script>
|
|
|
|
|
2025-03-01 21:30:49 +08:00
|
|
|
<template>
|
2025-03-04 11:11:24 +08:00
|
|
|
<div>
|
2025-03-04 11:39:37 +08:00
|
|
|
<NavBar />
|
2025-03-05 22:23:00 +08:00
|
|
|
<transition name="fade" mode="out-in">
|
|
|
|
<router-view />
|
|
|
|
</transition>
|
|
|
|
<AppFooter v-if="!$route.meta.hideFooter" />
|
2025-03-04 11:11:24 +08:00
|
|
|
</div>
|
2025-03-01 21:30:49 +08:00
|
|
|
</template>
|
|
|
|
|
2025-03-04 21:29:51 +08:00
|
|
|
<style scoped>
|
|
|
|
html, body {
|
|
|
|
height: 100%;
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-container {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
min-height: 100vh;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-content {
|
|
|
|
flex: 1; /* 占据剩余空间 */
|
|
|
|
}
|
2025-03-05 22:23:00 +08:00
|
|
|
|
|
|
|
.fade-enter-active,
|
|
|
|
.fade-leave-active {
|
|
|
|
transition: opacity 0.5s ease;
|
|
|
|
}
|
|
|
|
|
|
|
|
.fade-enter-from,
|
|
|
|
.fade-leave-to {
|
|
|
|
opacity: 0;
|
|
|
|
}
|
2025-03-04 21:29:51 +08:00
|
|
|
</style>
|