feat: 添加后台全局页脚

This commit is contained in:
Nixevol
2026-07-03 05:12:41 +08:00
parent 80cdcaddea
commit e4d2f74828
3 changed files with 24 additions and 4 deletions
+18 -1
View File
@@ -45,6 +45,11 @@
</transition>
</router-view>
</n-layout-content>
<n-layout-footer bordered class="footer">
<span>© 2026 {{ appName }}</span>
<span>备案信息待补充</span>
</n-layout-footer>
</n-layout>
</n-layout>
</template>
@@ -188,7 +193,19 @@ onUnmounted(() => window.removeEventListener('resize', resizeHandler));
flex: 1 1 auto;
}
.content {
height: calc(100vh - 56px);
height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
}
.footer {
height: var(--admin-footer-height);
display: flex;
align-items: center;
justify-content: center;
gap: 16px;
padding: 0 16px;
color: var(--n-text-color-3);
font-size: 12px;
line-height: 1;
white-space: nowrap;
}
.fade-enter-active,
.fade-leave-active {
+4 -2
View File
@@ -3,6 +3,8 @@
--brand-2: #1bb6b6;
--brand-from: #0f8f8f;
--brand-to: #1bb6b6;
--admin-header-height: 56px;
--admin-footer-height: 32px;
}
* {
box-sizing: border-box;
@@ -21,8 +23,8 @@ body,
min-height: 100%;
}
.page.table-page {
height: calc(100vh - 56px);
max-height: calc(100vh - 56px);
height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
max-height: calc(100vh - var(--admin-header-height) - var(--admin-footer-height));
display: flex;
flex-direction: column;
overflow: hidden;