mirror of
https://github.com/ant-design/ant-design.git
synced 2025-06-12 20:43:11 +08:00
update form demo format
This commit is contained in:
parent
d39da4bfb7
commit
026d720aaf
@ -1,11 +1,10 @@
|
|||||||
# 与 Modal 配合使用
|
---
|
||||||
|
order: 14
|
||||||
- order: 14
|
title: 与 Modal 配合使用
|
||||||
|
---
|
||||||
|
|
||||||
在 Modal 中使用 Form,当点击 Modal 的确定时,调用 `this.props.form.getFieldsValue` 获取表单内的值。
|
在 Modal 中使用 Form,当点击 Modal 的确定时,调用 `this.props.form.getFieldsValue` 获取表单内的值。
|
||||||
|
|
||||||
---
|
|
||||||
|
|
||||||
````jsx
|
````jsx
|
||||||
import { Button, Form, Input, Modal } from 'antd';
|
import { Button, Form, Input, Modal } from 'antd';
|
||||||
const createForm = Form.create;
|
const createForm = Form.create;
|
||||||
|
Loading…
Reference in New Issue
Block a user