mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
remove unused state visible
This commit is contained in:
parent
539ac64998
commit
9d5e0a2e58
@ -31,8 +31,7 @@ var Test = React.createClass({
|
||||
<button className="ant-btn ant-btn-primary" onClick={this.showModal}>显示对话框</button>
|
||||
<Modal title="第一个 Modal"
|
||||
visible={this.state.visible}
|
||||
onOk={this.handleOk}
|
||||
onCancel={this.handleCancel}>
|
||||
onOk={this.handleOk}>
|
||||
<p>对话框的内容</p>
|
||||
<p>对话框的内容</p>
|
||||
<p>对话框的内容</p>
|
||||
|
@ -6,7 +6,6 @@ function noop() {
|
||||
export default React.createClass({
|
||||
getInitialState() {
|
||||
return {
|
||||
visible: false,
|
||||
confirmLoading: false
|
||||
};
|
||||
},
|
||||
@ -53,6 +52,6 @@ export default React.createClass({
|
||||
确 定 {loadingIcon}
|
||||
</button>
|
||||
];
|
||||
return <Dialog transitionName="zoom" onBeforeClose={props.onCancel} visible={this.state.visible} maskAnimation="fade" width="500" footer={footer} {...props} ref="d" />;
|
||||
return <Dialog transitionName="zoom" onBeforeClose={props.onCancel} maskAnimation="fade" width="500" footer={footer} {...props} ref="d" />;
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user