tweak code style

pull/21/head
afc163 10 years ago
parent 34e1c66418
commit 22c48941e9

@ -12,18 +12,18 @@ var Modal = antd.Modal;
var Test = React.createClass({
getInitialState(){
return{
visible:false
visible: false
}
},
showModal() {
this.setState({
visible:true
visible: true
});
},
handleOk() {
console.log('点击了确定');
this.setState({
visible:false
visible: false
});
},
handleCancel() {

@ -14,12 +14,12 @@ var Test = React.createClass({
getInitialState() {
return {
ModalText: '对话框的内容',
visible:false
visible: false
};
},
showModal() {
this.setState({
visible:true
visible: true
});
},
handleOk() {
@ -28,7 +28,7 @@ var Test = React.createClass({
});
setTimeout((function() {
this.setState({
visible:false
visible: false
});
}).bind(this), 2000);
},

@ -13,7 +13,7 @@ var Test = React.createClass({
getInitialState: function() {
return {
loading: false,
visible:false
visible: false
};
},
showModal() {

Loading…
Cancel
Save