|
@ -78,14 +78,14 @@ export default class Tooltip extends React.Component { |
|
|
? `${children.props.className} ${openClassName}` : openClassName; |
|
|
? `${children.props.className} ${openClassName}` : openClassName; |
|
|
return ( |
|
|
return ( |
|
|
<RcTooltip |
|
|
<RcTooltip |
|
|
{...this.props} |
|
|
|
|
|
transitionName={transitionName} |
|
|
transitionName={transitionName} |
|
|
builtinPlacements={placements} |
|
|
builtinPlacements={placements} |
|
|
overlay={title} |
|
|
overlay={title} |
|
|
visible={visible} |
|
|
visible={visible} |
|
|
onVisibleChange={this.onVisibleChange} |
|
|
|
|
|
onPopupAlign={this.onPopupAlign} |
|
|
onPopupAlign={this.onPopupAlign} |
|
|
ref="tooltip" |
|
|
ref="tooltip" |
|
|
|
|
|
{...this.props} |
|
|
|
|
|
onVisibleChange={this.onVisibleChange} |
|
|
> |
|
|
> |
|
|
{visible ? cloneElement(children, { className: childrenCls }) : children} |
|
|
{visible ? cloneElement(children, { className: childrenCls }) : children} |
|
|
</RcTooltip> |
|
|
</RcTooltip> |
|
|