mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
[doc]remove misleading content
This commit is contained in:
parent
2b8b46d3a3
commit
fdc8a1b458
@ -162,8 +162,7 @@ After wrapped by `getFieldDecorator`, `value`(or other property defined by `valu
|
||||
|
||||
#### Special attention
|
||||
|
||||
1. `getFieldDecorator` can not be used to decorate stateless component.
|
||||
2. If you use `react@<15.3.0`, then, you can't use `getFieldDecorator` in stateless component: <https://github.com/facebook/react/pull/6534>
|
||||
If you use `react@<15.3.0`, then, you can't use `getFieldDecorator` in stateless component: <https://github.com/facebook/react/pull/6534>
|
||||
|
||||
#### getFieldDecorator(id, options) parameters
|
||||
|
||||
|
@ -165,8 +165,7 @@ validateFields(['field1', 'field2'], options, (errors, values) => {
|
||||
|
||||
#### 特别注意
|
||||
|
||||
1. `getFieldDecorator` 不能用于装饰纯函数组件。
|
||||
2. 如果使用的是 `react@<15.3.0`,则 `getFieldDecorator` 调用不能位于纯函数组件中: <https://github.com/facebook/react/pull/6534>
|
||||
如果使用的是 `react@<15.3.0`,则 `getFieldDecorator` 调用不能位于纯函数组件中: <https://github.com/facebook/react/pull/6534>
|
||||
|
||||
#### getFieldDecorator(id, options) 参数
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user