7 | {list.map(item => (
8 |
9 | onChange(item.key)}>
10 |

11 |
17 |
18 |
19 |
20 |
21 | ))}
22 |
23 | );
24 |
25 | export default BlockChecbox;
26 |
--------------------------------------------------------------------------------
/manager/src/components/SettingDrawer/ThemeColor.less:
--------------------------------------------------------------------------------
1 | .themeColor {
2 | margin-top: 24px;
3 | overflow: hidden;
4 | .title {
5 | margin-bottom: 12px;
6 | color: rgba(0, 0, 0, 0.65);
7 | font-size: 14px;
8 | line-height: 22px;
9 | }
10 | .colorBlock {
11 | float: left;
12 | width: 20px;
13 | height: 20px;
14 | margin-right: 8px;
15 | color: #fff;
16 | font-weight: bold;
17 | text-align: center;
18 | border-radius: 2px;
19 | cursor: pointer;
20 | }
21 | }
22 |
--------------------------------------------------------------------------------
/manager/src/components/SiderMenu/index.js:
--------------------------------------------------------------------------------
1 | import React from 'react';
2 | import { Drawer } from 'antd';
3 | import SiderMenu from './SiderMenu';
4 | import { getFlatMenuKeys } from './SiderMenuUtils';
5 |
6 | const SiderMenuWrapper = React.memo(props => {
7 | const { isMobile, menuData, collapsed, onCollapse } = props;
8 | const flatMenuKeys = getFlatMenuKeys(menuData);
9 | return isMobile ? (
10 |