mirror of
https://github.com/PlayEdu/backend
synced 2025-07-19 19:19:43 +08:00
左侧菜单固定
This commit is contained in:
parent
008e297b74
commit
9f4265ebe0
@ -10,4 +10,11 @@
|
|||||||
margin-left: 38px;
|
margin-left: 38px;
|
||||||
margin-bottom: 14px;
|
margin-bottom: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-box {
|
||||||
|
width: 200px;
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: auto;
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -140,23 +140,25 @@ export const LeftMenu: React.FC = () => {
|
|||||||
>
|
>
|
||||||
<img src={logo} className={styles["App-logo"]} />
|
<img src={logo} className={styles["App-logo"]} />
|
||||||
</div>
|
</div>
|
||||||
<Menu
|
<div className={styles["menu-box"]}>
|
||||||
onClick={onClick}
|
<Menu
|
||||||
style={{
|
onClick={onClick}
|
||||||
width: 200,
|
style={{
|
||||||
background: "#ffffff",
|
width: 200,
|
||||||
}}
|
background: "#ffffff",
|
||||||
selectedKeys={selectedKeys}
|
}}
|
||||||
openKeys={openKeys}
|
selectedKeys={selectedKeys}
|
||||||
mode="inline"
|
openKeys={openKeys}
|
||||||
items={items}
|
mode="inline"
|
||||||
onSelect={(data: any) => {
|
items={items}
|
||||||
setSelectedKeys(data.selectedKeys);
|
onSelect={(data: any) => {
|
||||||
}}
|
setSelectedKeys(data.selectedKeys);
|
||||||
onOpenChange={(keys: any) => {
|
}}
|
||||||
setOpenKeys(keys);
|
onOpenChange={(keys: any) => {
|
||||||
}}
|
setOpenKeys(keys);
|
||||||
/>
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
@ -313,6 +313,10 @@ code {
|
|||||||
background-color: #ffffff !important;
|
background-color: #ffffff !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ant-menu {
|
||||||
|
border-inline-end: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
.ant-menu-item {
|
.ant-menu-item {
|
||||||
width: calc(100% - 32px) !important;
|
width: calc(100% - 32px) !important;
|
||||||
margin-left: 16px !important;
|
margin-left: 16px !important;
|
||||||
|
@ -1,16 +1,20 @@
|
|||||||
.layout-wrap {
|
.layout-wrap {
|
||||||
width: 100%;
|
position: fixed;
|
||||||
min-height: 100vh;
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
display: flex;
|
display: flex;
|
||||||
.left-menu {
|
.left-menu {
|
||||||
width: 200px;
|
width: 200px;
|
||||||
height: auto;
|
height: 100%;
|
||||||
float: left;
|
float: left;
|
||||||
}
|
}
|
||||||
.right-cont {
|
.right-cont {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
background-color: #f6f6f6;
|
||||||
.right-top {
|
.right-top {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 48px;
|
height: 48px;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user