render popup to body

This commit is contained in:
yiminghe 2015-08-19 20:12:34 +08:00
parent 8c91030b01
commit a46f694766

View File

@ -13,8 +13,11 @@ export default React.createClass({
transitionName: '',
placement: 'top',
trigger: 'click',
onConfirm: function () {},
onCancel: function () {}
overlayStyle: {},
onConfirm: function () {
},
onCancel: function () {
}
};
},
confirm() {
@ -41,6 +44,7 @@ export default React.createClass({
<i className="anticon anticon-exclamation-circle"></i>
{this.props.title}
</p>
<div className={prefixCls + '-buttons'}>
<button onClick={this.cancel} className="ant-btn ant-btn-sm"> </button>
<button onClick={this.confirm} className="ant-btn ant-btn-primary ant-btn-sm"> </button>
@ -57,8 +61,9 @@ export default React.createClass({
return (
<Tooltip placement={this.props.placement}
overlayStyle={this.props.overlayStyle}
prefixCls={prefixCls}
renderPopupToBody={false}
renderPopupToBody={true}
onVisibleChange={this.onVisibleChange}
transitionName={transitionName}
visible={this.state.visible}