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')); ````