mirror of
https://github.com/PlayEdu/frontend.git
synced 2025-06-07 23:44:11 +08:00
底部组件优化
This commit is contained in:
parent
46bb144f0a
commit
8614d4ebaf
@ -33,6 +33,18 @@ body {
|
|||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.layout-box {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
min-height: 100vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
.footer-box {
|
||||||
|
flex: 1;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column-reverse;
|
||||||
|
}
|
||||||
|
|
||||||
.main-body {
|
.main-body {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: auto;
|
height: auto;
|
||||||
|
@ -5,13 +5,15 @@ import LoadingPage from "../../loading";
|
|||||||
|
|
||||||
const WithHeaderWithFooter = () => {
|
const WithHeaderWithFooter = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="layout-box">
|
||||||
<Header></Header>
|
<Header></Header>
|
||||||
<Suspense fallback={<LoadingPage height="100vh" />}>
|
<Suspense fallback={<LoadingPage height="100vh" />}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
<div className="footer-box">
|
||||||
<Footer></Footer>
|
<Footer></Footer>
|
||||||
</>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -5,12 +5,14 @@ import LoadingPage from "../../loading";
|
|||||||
|
|
||||||
const WithoutHeaderWithFooter = () => {
|
const WithoutHeaderWithFooter = () => {
|
||||||
return (
|
return (
|
||||||
<>
|
<div className="layout-box">
|
||||||
<Suspense fallback={<LoadingPage height="100vh" />}>
|
<Suspense fallback={<LoadingPage height="100vh" />}>
|
||||||
<Outlet />
|
<Outlet />
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
<div className="footer-box">
|
||||||
<Footer></Footer>
|
<Footer></Footer>
|
||||||
</>
|
</div>
|
||||||
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user