@ -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('点击了确定');
handleCancel() {
@ -14,12 +14,12 @@ var Test = React.createClass({
getInitialState() {
return {
ModalText: '对话框的内容',
};
@ -28,7 +28,7 @@ var Test = React.createClass({
setTimeout((function() {
}).bind(this), 2000);
@ -13,7 +13,7 @@ var Test = React.createClass({
getInitialState: function() {
loading: false,