mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
render popup to body
This commit is contained in:
parent
8c91030b01
commit
a46f694766
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user