mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-26 12:10:06 +08:00
Merge branch 'master' of github.com:ant-design/ant-design
This commit is contained in:
commit
7a6b21d02b
@ -103,8 +103,9 @@ export default class Form extends React.Component<FormProps, any> {
|
||||
static Item = FormItem;
|
||||
|
||||
static create = (options?: FormCreateOption): ComponentDecorator => {
|
||||
const formWrapper = createDOMForm(assign({}, options, {
|
||||
const formWrapper = createDOMForm(assign({
|
||||
fieldNameProp: 'id',
|
||||
}, options, {
|
||||
fieldMetaProp: FIELD_META_PROP,
|
||||
}));
|
||||
|
||||
|
@ -10,9 +10,7 @@ title:
|
||||
使用受控属性对筛选和排序状态进行控制。
|
||||
|
||||
> 1. columns 中定义了 fileredValue 和 sortOrder 属性即视为受控模式。
|
||||
|
||||
> 2. 只支持同时对一列进行排序,请保证只有一列的 sortOrder 属性是生效的。
|
||||
|
||||
> 3. 务必指定 `column.key`。
|
||||
|
||||
## en-US
|
||||
@ -20,9 +18,7 @@ title:
|
||||
Control filters and sorters by `fileredValue` and `sortOrder`.
|
||||
|
||||
> 1. Defining `fileredValue` or `sortOrder` means that it is in the controlled mode.
|
||||
|
||||
> 2. Make sure `sortOrder` is assigned for only one column.
|
||||
|
||||
> 3. `column.key` is required.
|
||||
|
||||
````jsx
|
||||
|
Loading…
Reference in New Issue
Block a user