Skip to content

Commit

Permalink
Fix Documentation for Form API (ant-design#20830)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixjichao authored and afc163 committed Jan 11, 2020
1 parent 3a1c510 commit b60eb4d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions components/form/demo/complex-form-control.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ title:
- <Input />
- </Form.Item>
+ <Form.Item label="Field">
+ <Form.Item name="field" onStyle><Input /></Form.Item> // 直接包裹才会绑定表单
+ <Form.Item name="field" noStyle><Input /></Form.Item> // 直接包裹才会绑定表单
+ <span>description</span>
+ </Form.Item>
```
Expand All @@ -38,7 +38,7 @@ This demo show how to use `Form.Item` with multiple controls. `<Form.Item name="
- <Input />
- </Form.Item>
+ <Form.Item label="Field">
+ <Form.Item name="field" onStyle><Input /></Form.Item> // that will bind input
+ <Form.Item name="field" noStyle><Input /></Form.Item> // that will bind input
+ <span>description</span>
+ </Form.Item>
```
Expand Down

0 comments on commit b60eb4d

Please sign in to comment.