(node, i, { popped, accordion, mode, current, horizontal, level })
| 85 | }, |
| 86 | |
| 87 | formatSubMenu(node, i, { popped, accordion, mode, current, horizontal, level }) { |
| 88 | let {title, index, disabled, active, children} = node.props; |
| 89 | let className = getClassList(node.props); |
| 90 | className.push('_item', 'sub-menu'); |
| 91 | if (active) className.push('_active'); |
| 92 | className = className.join(' '); |
| 93 | const childNodes = <Menu {...children.props} disabled={disabled} mode={mode} level={level} |
| 94 | horizontal={horizontal} accordion={accordion} popped={popped} |
| 95 | current={current} onChange={this.handleItemClick}> |
| 96 | {children.props.children} |
| 97 | </Menu>; |
| 98 | |
| 99 | if (mode === 'hover' || horizontal) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…