You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
1.1 KiB
34 lines
1.1 KiB
import React from 'react';
|
|
import { IconCode } from '@douyinfe/semi-icons';
|
|
import { Badge } from "@douyinfe/semi-ui";
|
|
|
|
export function getNavItem (user, dispatch) {
|
|
return (
|
|
[
|
|
{
|
|
itemKey: 'example',
|
|
text: <Badge count={5} type='danger' >举个栗子</Badge>,
|
|
icon: <IconCode />,
|
|
items: [
|
|
{
|
|
itemKey: 'e1',
|
|
text:'举个棒子1',
|
|
icon: <IconCode />,
|
|
to: '/example/e1/c1',
|
|
items: [{
|
|
itemKey: 'c1', to: '/example/e1/c1', text: '举个锤子1'
|
|
}]
|
|
}, {
|
|
itemKey: 'e2',
|
|
text: '举个棒子2',
|
|
icon: <IconCode />,
|
|
to: '/example/e2/c2',
|
|
items: [{
|
|
itemKey: 'c2', to: '/example/e2/c2', text: '举个锤子2'
|
|
}]
|
|
},
|
|
]
|
|
},
|
|
]
|
|
);
|
|
}
|