mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 07:09:55 +08:00
14 lines
365 B
Markdown
14 lines
365 B
Markdown
|
## zh-CN
|
||
|
|
||
|
我们推荐使用 `Form.useForm` 创建表单数据域进行控制。如果是在 class component 下,你也可以通过 `ref` 获取数据域。
|
||
|
|
||
|
## en-US
|
||
|
|
||
|
We recommend use `Form.useForm` to create data control. If you are using class component, you can get it by `ref`.
|
||
|
|
||
|
```css
|
||
|
#components-form-demo-control-ref .ant-btn {
|
||
|
margin-right: 8px;
|
||
|
}
|
||
|
```
|