From 176adab7630435e5001df88646da867c22a0d351 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 22 Sep 2015 15:11:29 +0800 Subject: [PATCH] update modal basic demo --- components/modal/demo/basic.md | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/components/modal/demo/basic.md b/components/modal/demo/basic.md index 470509cec3..90271120d9 100644 --- a/components/modal/demo/basic.md +++ b/components/modal/demo/basic.md @@ -9,11 +9,9 @@ ````jsx var Modal = antd.Modal; -var Test = React.createClass({ - getInitialState(){ - return{ - visible: false - }; +var App = React.createClass({ + getInitialState() { + return { visible: false }; }, showModal() { this.setState({ @@ -35,11 +33,8 @@ var Test = React.createClass({ render() { return
- +

对话框的内容

对话框的内容

对话框的内容

@@ -48,5 +43,5 @@ var Test = React.createClass({ } }); -React.render( , document.getElementById('components-modal-demo-basic')); +React.render( , document.getElementById('components-modal-demo-basic')); ````