Browse Source

docs: translated controlled demo (#3220)

* translated controlled demo

* fixs: misspell &  shorter label
pull/3251/head
Shawn Sit 8 years ago
committed by Benjy Cui
parent
commit
a932a4ac08
  1. 8
      components/mention/demo/controlled.md

8
components/mention/demo/controlled.md

@ -43,7 +43,7 @@ let App = React.createClass({
const { getFieldValue } = this.props.form; const { getFieldValue } = this.props.form;
const mentions = getMentions(getFieldValue('mention')); const mentions = getMentions(getFieldValue('mention'));
if (mentions.length < 2) { if (mentions.length < 2) {
callback(new Error('最帅的码农不止一个!!')); callback(new Error('More than one must be selected!'));
} else { } else {
callback(); callback();
} }
@ -55,7 +55,7 @@ let App = React.createClass({
<Form horizontal> <Form horizontal>
<FormItem <FormItem
id="control-mention" id="control-mention"
label="最帅的码农" label="Top programmers"
labelCol={{ span: 6 }} labelCol={{ span: 6 }}
wrapperCol={{ span: 14 }} wrapperCol={{ span: 14 }}
> >
@ -71,9 +71,9 @@ let App = React.createClass({
)} )}
</FormItem> </FormItem>
<FormItem wrapperCol={{ span: 14, offset: 6 }}> <FormItem wrapperCol={{ span: 14, offset: 6 }}>
<Button type="primary" onClick={this.handleSubmit}>确定</Button> <Button type="primary" onClick={this.handleSubmit}>Submit</Button>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<Button type="ghost" onClick={this.handleReset}>重置</Button> <Button type="ghost" onClick={this.handleReset}>Reset</Button>
</FormItem> </FormItem>
</Form> </Form>
); );

Loading…
Cancel
Save