feature:新增跳转底部悬浮按钮

This commit is contained in:
tangly1024
2021-12-21 17:29:34 +08:00
parent 351c3b2f6e
commit 2840e63388
3 changed files with 56 additions and 3 deletions

View File

@@ -1,6 +1,7 @@
import CommonHead from '@/components/CommonHead'
import FloatDarkModeButton from '@/components/FloatDarkModeButton'
import Footer from '@/components/Footer'
import JumpToBottomButton from '@/components/JumpToBottomButton'
import JumpToTopButton from '@/components/JumpToTopButton'
import LoadingCover from '@/components/LoadingCover'
import SideAreaLeft from '@/components/SideAreaLeft'
@@ -94,6 +95,7 @@ const BaseLayout = ({
<Footer title={meta.title}/>
<JumpToTopButton targetRef={targetRef} showPercent={true} />
<JumpToBottomButton targetRef={targetRef} showPercent={false}/>
<FloatDarkModeButton/>
</div>
)