diff --git a/src/components/SiderMenu/SliderMenu.js b/src/components/SiderMenu/SliderMenu.js index ccbe5ea68ea1ed19a71cb862a8fe0a7499cbe277..e457f2f5b6f12524b26c112302e2e6c0cbe91f67 100644 --- a/src/components/SiderMenu/SliderMenu.js +++ b/src/components/SiderMenu/SliderMenu.js @@ -1,6 +1,7 @@ import React, { PureComponent } from 'react'; import { Layout } from 'antd'; import pathToRegexp from 'path-to-regexp'; +import classNames from 'classnames'; import Link from 'umi/link'; import styles from './index.less'; import BaseMenu, { getMenuMatches } from './BaseMenu'; @@ -89,6 +90,12 @@ export default class SiderMenu extends PureComponent { const { logo, collapsed, onCollapse, fixSiderbar, theme } = this.props; const { openKeys } = this.state; const defaultProps = collapsed ? {} : { openKeys }; + + const siderClassName = classNames(styles.sider, { + [styles.fixSiderbar]: fixSiderbar, + [styles.light]: theme === 'light', + }); + return ( -