doc: demo translation enhancement (#3033)

* doc enhancement

* keep chinese simplified demo
This commit is contained in:
Shawn Sit 2016-09-18 14:30:37 +08:00 committed by Benjy Cui
parent b27dfca108
commit 7ce12fe36a
4 changed files with 4 additions and 3 deletions

View File

@ -59,7 +59,7 @@ const Test = React.createClass({
</Button>
</ButtonGroup>
<Button type="ghost" onClick={this.onClick} style={{ marginLeft: 8 }}>
Red badge toggle
Switch state
</Button>
</div>
</div>

View File

@ -21,7 +21,7 @@ ReactDOM.render(<div>
<Icon type="notification" />
</Badge>
<Badge dot>
<a href="#">A Link</a>
<a href="#">Link something</a>
</Badge>
</div>, mountNode);
````

View File

@ -45,7 +45,7 @@ let Demo = React.createClass({
};
return (
<div>
<Button type="primary" onClick={this.showModal}>点击有惊喜</Button>
<Button type="primary" onClick={this.showModal}>Surprise</Button>
<Modal title="login" visible={this.state.visible} onOk={this.handleSubmit} onCancel={this.hideModal}>
<Form horizontal>
<FormItem

View File

@ -18,6 +18,7 @@ import { Switch, Icon } from 'antd';
ReactDOM.render(<div>
<Switch checkedChildren="开" unCheckedChildren="关" />
<Switch checkedChildren="On" unCheckedChildren="Off" />
<Switch checkedChildren={<Icon type="check" />} unCheckedChildren={<Icon type="cross" />} />
</div>, mountNode);
````