Skip to content

Commit

Permalink
Merge pull request #90 from NSFI/refactor/form
Browse files Browse the repository at this point in the history
formHook 文档修改
  • Loading branch information
hangaoke1 authored Apr 1, 2022
2 parents aabdc2a + 4c754b0 commit 393baa3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions site/docs/zh-CN/formHook.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
# FormHook 表单 【交互:叶婧婕 |视觉:徐剑杰 |开发:张煜| 维护:张煜】

> 此组件于 2.1.0 版本新增, 使用时注意版本支持
**此组件于 2.1.0 版本新增, 使用时注意版本支持**


高性能表单控件,自带数据域管理。包含数据录入、校验以及对应样式。

tips:
本组件中的例子 可以使用 `const Form = FormHook` 替代 `FormHook` , 方便后期转换


## 基本使用

:::demo 基本的表单数据域控制展示,包含布局、初始化、验证、提交。
Expand Down Expand Up @@ -798,7 +803,7 @@ ReactDOM.render(<Demo/>, mountNode);

## 复杂一点的控件

`style` 进行内联布局,或者添加 `noStyle` 作为纯粹的无样式绑定组件(类似 3.x 中的 `getFieldDecorator`)。
`style` 进行内联布局,或者添加 `noStyle` 作为纯粹的无样式绑定组件(类似 1.x 中的 `getFieldDecorator`)。

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

0 comments on commit 393baa3

Please sign in to comment.