mirror of
https://github.com/zuiidea/antd-admin
synced 2026-11-27 08:14:06 +00:00
side fold
This commit is contained in:
@@ -5,6 +5,10 @@
|
||||
height: 100vh;
|
||||
min-width: 1200px;
|
||||
|
||||
&.fold{
|
||||
color: #666;
|
||||
}
|
||||
|
||||
.sider {
|
||||
width: 224px;
|
||||
background: #404040;
|
||||
|
||||
@@ -26,14 +26,18 @@ const getMenus = function (menuArray, parentPath) {
|
||||
})
|
||||
}
|
||||
|
||||
function Sider({ location }) {
|
||||
function Sider({ location,siderFold }) {
|
||||
console.log(location,siderFold);
|
||||
return (
|
||||
<div>
|
||||
<div className={styles.logo}>
|
||||
<img src={config.logoSrc} />
|
||||
<span>{config.logoText}</span>
|
||||
</div>
|
||||
<Menu mode="inline" theme="dark" defaultSelectedKeys={['dashboard']}>
|
||||
<Menu
|
||||
mode="inline"
|
||||
theme="dark"
|
||||
defaultSelectedKeys={['dashboard']}>
|
||||
{getMenus(menu)}
|
||||
</Menu>
|
||||
</div>
|
||||
@@ -42,6 +46,7 @@ function Sider({ location }) {
|
||||
|
||||
Sider.propTypes = {
|
||||
location: PropTypes.object,
|
||||
siderFold: PropTypes.bool,
|
||||
}
|
||||
|
||||
export default Sider
|
||||
|
||||
Reference in New Issue
Block a user