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