mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 07:59:33 +08:00
顶部悬浮
This commit is contained in:
parent
f50b899fd3
commit
a2ee242898
@ -67,7 +67,7 @@ const children2Parent: any = {
|
|||||||
|
|
||||||
"/member": ["4"],
|
"/member": ["4"],
|
||||||
"/department": ["4"],
|
"/department": ["4"],
|
||||||
|
|
||||||
"/course": ["5"],
|
"/course": ["5"],
|
||||||
|
|
||||||
"/system/administrator": ["6"],
|
"/system/administrator": ["6"],
|
||||||
@ -93,7 +93,14 @@ export const LeftMenu: React.FC = () => {
|
|||||||
return (
|
return (
|
||||||
<div className={styles["left-menu"]}>
|
<div className={styles["left-menu"]}>
|
||||||
<div
|
<div
|
||||||
style={{ textDecoration: "none", cursor: "pointer" }}
|
style={{
|
||||||
|
textDecoration: "none",
|
||||||
|
cursor: "pointer",
|
||||||
|
position: "sticky",
|
||||||
|
top: 0,
|
||||||
|
zIndex: 10,
|
||||||
|
background: "#fff",
|
||||||
|
}}
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
window.location.href = "/";
|
window.location.href = "/";
|
||||||
}}
|
}}
|
||||||
|
@ -8,12 +8,15 @@
|
|||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.right-cont {
|
.right-cont {
|
||||||
flex:1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
.right-top {
|
.right-top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
position: sticky;
|
||||||
|
top: 0;
|
||||||
|
z-index: 10;
|
||||||
}
|
}
|
||||||
.right-main {
|
.right-main {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user