From 3c99097bc8e817b237a5435be1de0f5042c89354 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Thu, 20 Oct 2016 11:28:05 +0800 Subject: [PATCH 1/2] fix: allow override fileNameProp, close: #3497 --- components/form/Form.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/components/form/Form.tsx b/components/form/Form.tsx index d0e9fb7113..92491974cf 100755 --- a/components/form/Form.tsx +++ b/components/form/Form.tsx @@ -103,8 +103,9 @@ export default class Form extends React.Component { static Item = FormItem; static create = (options?: FormCreateOption): ComponentDecorator => { - const formWrapper = createDOMForm(assign({}, options, { + const formWrapper = createDOMForm(assign({ fieldNameProp: 'id', + }, options, { fieldMetaProp: FIELD_META_PROP, })); From dc7831768868219499e63c0e0bb9a0628000c859 Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Thu, 20 Oct 2016 11:32:50 +0800 Subject: [PATCH 2/2] docs: update docs of table, close: #3469 --- components/table/demo/reset-filter.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/components/table/demo/reset-filter.md b/components/table/demo/reset-filter.md index c08f91d370..f9494e7c9f 100644 --- a/components/table/demo/reset-filter.md +++ b/components/table/demo/reset-filter.md @@ -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