Commit 570e9a54 by zhangleyuan

feat:修改左侧边栏的伸缩效果

parent c075c9c0
......@@ -2,7 +2,7 @@
* @Author: 吴文洁
* @Date: 2019-07-10 10:30:49
* @LastEditors: zhangleyuan
* @LastEditTime: 2020-12-22 15:26:10
* @LastEditTime: 2020-12-22 15:27:33
* @Description:
*/
import React, { useContext, useEffect, useState } from 'react';
......@@ -64,7 +64,7 @@ const App: React.FC = (props: any) => {
<div id="home">
<Header handleMenuType={handleMenuType} menuType={menuType}/>
<ConfigProvider locale={zhCN} >
<Main/>
<Main menuType={menuType}/>
</ConfigProvider>
<Menu menuType={menuType}/>
</div>
......
......@@ -3,7 +3,8 @@ import './Main.less';
import { MainRoutes } from '@/routes';
function Main(props){
const {menuType} = props
const {menuType} = props;
console.log("menuType",menuType);
return (
<div
className={menuType ? `right-container has-nav` : `right-container has-nav right-container-vertical`}
......
......@@ -26,7 +26,7 @@
flex-direction: column;
-webkit-flex-direction: column;
height: 100%;
.nav {
-webkit-flex: 1;
cursor: default;
......@@ -69,20 +69,7 @@
}
}
// .first-menu-item{
// &::active{
// color:@active-color !important;
// }
// }
// .ant-menu-item {
// color: @xm-color-text-menu;
// }
// .ant-menu-item-selected {
// .name {
// color: #fff;
// }
// }
}
}
......@@ -92,8 +79,11 @@
.ant-menu-item {
text-align: center;
}
.icon {
margin-right: 0px;
// .icon {
// margin-right: 0px;
// }
.ant-menu-submenu-arrow{
display:none !important;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment