update modal custom.md

This commit is contained in:
afc163 2015-08-25 17:08:43 +08:00
parent e6d92e37b1
commit 8c2c65adf4

View File

@ -26,11 +26,11 @@ var Test = React.createClass({
this.setState({
ModalText: '对话框将在两秒后关闭'
});
setTimeout((function() {
setTimeout(() => {
this.setState({
visible: false
});
}).bind(this), 2000);
}, 2000);
},
handleCancel() {
console.log('点击了取消');