|
|
@ -18,13 +18,15 @@ class MenuItem extends React.Component<any, any> { |
|
|
|
render() { |
|
|
|
const { inlineCollapsed } = this.context; |
|
|
|
const props = this.props; |
|
|
|
return <Tooltip |
|
|
|
title={inlineCollapsed && props.level === 1 ? props.children : ''} |
|
|
|
placement="right" |
|
|
|
overlayClassName={`${props.rootPrefixCls}-inline-collapsed-tooltip`} |
|
|
|
> |
|
|
|
<Item {...props} ref={this.saveMenuItem} /> |
|
|
|
</Tooltip>; |
|
|
|
return ( |
|
|
|
<Tooltip |
|
|
|
title={inlineCollapsed && props.level === 1 ? props.children : ''} |
|
|
|
placement="right" |
|
|
|
overlayClassName={`${props.rootPrefixCls}-inline-collapsed-tooltip`} |
|
|
|
> |
|
|
|
<Item {...props} ref={this.saveMenuItem} /> |
|
|
|
</Tooltip> |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|