restrict rule

Signed-off-by: Louis-7 <louisgh.cn@gmail.com>
This commit is contained in:
Louis-7
2018-09-03 14:56:06 +08:00
parent 7fc14eddd9
commit 0c95751b8d
2 changed files with 10 additions and 0 deletions
+8
View File
@@ -108,6 +108,14 @@
}
}
.sidemenu {
:global{
.ant-menu-item {
width: 100%;
}
}
}
.switchtheme {
width: 100%;
position: absolute;
+2
View File
@@ -4,6 +4,7 @@ import { Menu, Icon } from 'antd'
import { Link } from 'react-router-dom'
import { arrayToTree, queryArray } from 'utils'
import pathToRegexp from 'path-to-regexp'
import styles from './Layout.less'
const { SubMenu } = Menu
let openKeysFlag = false
@@ -123,6 +124,7 @@ const Menus = ({
mode={siderFold ? 'vertical' : 'inline'}
theme={darkTheme ? 'dark' : 'light'}
selectedKeys={defaultSelectedKeys}
className={styles.sidemenu}
>
{menuItems}
</Menu>