render popup to body

This commit is contained in:
yiminghe 2015-08-19 20:16:20 +08:00
parent a46f694766
commit 85c30ab0ad

View File

@ -7,7 +7,8 @@ export default React.createClass({
return {
transitionName: '',
placement: 'top',
trigger: 'hover'
trigger: 'hover',
overlayStyle: {}
};
},
render() {
@ -29,12 +30,13 @@ export default React.createClass({
return (
<Tooltip placement={this.props.placement}
prefixCls={prefixCls}
delay={0.1}
renderPopupToBody={false}
transitionName={transitionName}
trigger={this.props.trigger}
overlay={overlay}>
prefixCls={prefixCls}
delay={0.1}
overlayStyle={this.props.overlayStyle}
renderPopupToBody={true}
transitionName={transitionName}
trigger={this.props.trigger}
overlay={overlay}>
{this.props.children}
</Tooltip>
);