Menu
build menu list by tree-object
Menu Props
export interface MenuItem {
href?: string
title?: string
key: string
item: string | VNode
children?: MenuItem[]
}
export interface MenuGroup {
label?: string | VNode
href?: string
list?: MenuItem[]
}
export interface MenuPropsType {
onSelect?: {
(key: string): void
}
className?: string
activeKey?: string
menus?: MenuGroup[]
}