mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 03:29:59 +08:00
Fix Documentation for Form API (#20830)
This commit is contained in:
parent
3a1c51010f
commit
b60eb4d20d
@ -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>
|
||||
```
|
||||
@ -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>
|
||||
```
|
||||
|
Loading…
Reference in New Issue
Block a user