mirror of
https://gitee.com/dromara/go-view.git
synced 2025-04-23 18:00:27 +08:00
fix: 抽离底部组件
This commit is contained in:
parent
557ddd6ee5
commit
4273682d51
3
src/layout/components/Footer/index.ts
Normal file
3
src/layout/components/Footer/index.ts
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import Footer from './index.vue'
|
||||||
|
|
||||||
|
export { Footer }
|
23
src/layout/components/Footer/index.vue
Normal file
23
src/layout/components/Footer/index.vue
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
<template>
|
||||||
|
<div class="go-footer">
|
||||||
|
<slot>
|
||||||
|
<n-a>{{ $t('global.doc_addr') }}: </n-a>
|
||||||
|
<n-a italic href="http://www.mtruning.club/">
|
||||||
|
http://www.mtruning.club/
|
||||||
|
</n-a>
|
||||||
|
</slot>
|
||||||
|
</div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup lang="ts"></script>
|
||||||
|
|
||||||
|
<style lang="scss" scoped>
|
||||||
|
@include go(footer) {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
padding: 0 40px;
|
||||||
|
height: $--footer-height;
|
||||||
|
}
|
||||||
|
</style>
|
@ -30,6 +30,8 @@ $--color-dark-border: #333335;
|
|||||||
$--max-width: 1920px;
|
$--max-width: 1920px;
|
||||||
// 顶部距离
|
// 顶部距离
|
||||||
$--header-height: 60px;
|
$--header-height: 60px;
|
||||||
|
// 底部距离
|
||||||
|
$--footer-height: 50px;
|
||||||
// 模糊
|
// 模糊
|
||||||
$--filter-blur-base: blur(20px);
|
$--filter-blur-base: blur(20px);
|
||||||
// 毛玻璃
|
// 毛玻璃
|
||||||
|
@ -105,10 +105,7 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="go-login-box-footer">
|
<div class="go-login-box-footer">
|
||||||
<n-a>{{ $t('global.doc_addr') }}: </n-a>
|
<Footer />
|
||||||
<n-a italic href="http://www.mtruning.club/">
|
|
||||||
http://www.mtruning.club/
|
|
||||||
</n-a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@ -126,6 +123,7 @@ import { useDesignStore } from '@/store/modules/designStore/designStore'
|
|||||||
import { ThemeSelect } from '@/components/ThemeSelect'
|
import { ThemeSelect } from '@/components/ThemeSelect'
|
||||||
import { LangSelect } from '@/components/LangSelect'
|
import { LangSelect } from '@/components/LangSelect'
|
||||||
import { Header } from '@/layout/components/Header'
|
import { Header } from '@/layout/components/Header'
|
||||||
|
import { Footer } from '@/layout/components/Footer'
|
||||||
import { PageEnum } from '@/enums/pageEnum'
|
import { PageEnum } from '@/enums/pageEnum'
|
||||||
import {
|
import {
|
||||||
PersonOutline as PersonOutlineIcon,
|
PersonOutline as PersonOutlineIcon,
|
||||||
@ -292,12 +290,8 @@ $carousel-image-height: 60vh;
|
|||||||
&-footer {
|
&-footer {
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 0;
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: $footer-height;
|
bottom: 0;
|
||||||
text-align: center;
|
|
||||||
line-height: $footer-height;
|
|
||||||
color: $--color-text-2;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
&-bg {
|
&-bg {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user