From 22c48941e99f105713eff4196ab1e1bd6fd915ce Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 14 Jun 2015 13:20:35 +0800 Subject: [PATCH] tweak code style --- components/modal/demo/basic.md | 6 +++--- components/modal/demo/custom.md | 6 +++--- components/modal/demo/footer.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md index 2310d09ecc..8fab228fd9 100644 --- a/components/modal/demo/basic.md +++ b/components/modal/demo/basic.md @@ -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() { diff --git a/components/modal/demo/custom.md b/components/modal/demo/custom.md index be012ee03f..164ce28f99 100644 --- a/components/modal/demo/custom.md +++ b/components/modal/demo/custom.md @@ -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); }, diff --git a/components/modal/demo/footer.md b/components/modal/demo/footer.md index 5731473ade..131a5ba125 100644 --- a/components/modal/demo/footer.md +++ b/components/modal/demo/footer.md @@ -13,7 +13,7 @@ var Test = React.createClass({ getInitialState: function() { return { loading: false, - visible:false + visible: false }; }, showModal() {