import React from 'react';
import { Nav } from '../../../index';
import { IconUser, IconStar, IconUserGroup, IconEdit, IconApps, IconSetting } from '@douyinfe/semi-icons';
const Demo = (props = {}) => {
const superLargeSubs = [];
const superLen = 120;
for (let i = 0; i < superLen; i++) {
superLargeSubs.push(`Item ${i}`);
}
return (
},
{ itemKey: 'union', text: '公会中心', icon:
},
{
itemKey: 'union-management',
text: '公会管理',
icon:
,
items: ['公告设置', '公会查询', '信息录入'],
},
{
itemKey: 'approve-management',
text: '审批管理',
icon:
,
items: [
'入驻审核',
{
itemKey: 'operation-management',
text: '运营管理',
items: ['人员管理', '人员变更'],
},
],
},
{
text: '超长导航列表',
icon:
,
itemKey: 'long-list',
maxHeight: 9999,
items: superLargeSubs,
},
{
text: '任务平台',
icon:
,
itemKey: 'job',
items: ['任务管理', '用户任务查询'],
},
]}
onSelect={key => console.log(key)}
header={{
logo:

,
text: 'Semi运营后台',
}}
footer={{
collapseButton: true,
collapseText: isCollapsed =>
{isCollapsed ? '展开' : '收起'},
}}
/>
);
};
export default Demo;