Skip to content

Commit

Permalink
docs: fix typos (#26598)
Browse files Browse the repository at this point in the history
  • Loading branch information
olragon committed Sep 5, 2020
1 parent 5baa453 commit 7b55f11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/form/demo/complex-form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ title:

## en-US

This demo show how to use `Form.Item` with multiple controls. `<Form.Item name="field" />` will only bind control(Input/Select) which is the only children of it. Image this case, you add some text description after Input, then you have to wrap Input by a extra `<Form.item name="field">`. `style` property of `Form.Item` could be useful to modify the nested form item layout, or `<Form.Item noStyle />` turn it into a pure form bind component(like `getFieldDecorator` in 3.x).
This demo show how to use `Form.Item` with multiple controls. `<Form.Item name="field" />` will only bind control(Input/Select) which is the only children of it. Image this case, you add some text description after Input, then you have to wrap Input by a extra `<Form.Item name="field">`. `style` property of `Form.Item` could be useful to modify the nested form item layout, or `<Form.Item noStyle />` turn it into a pure form bind component(like `getFieldDecorator` in 3.x).

```diff
- <Form.Item label="Field" name="field">
Expand Down

0 comments on commit 7b55f11

Please sign in to comment.