From 2cb0710ec45120aefe2dde07f6221d716421f37f Mon Sep 17 00:00:00 2001 From: zx6658 Date: Wed, 31 Jul 2019 13:43:02 +0900 Subject: [PATCH] doc: :book: update table component's selectedRowKeys type --- components/table/index.en-US.md | 2 +- components/table/index.zh-CN.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index e2109ee13b..7adb40184c 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -169,7 +169,7 @@ Properties for row selection. | fixed | Fixed selection column on the left | boolean | - | | | getCheckboxProps | Get Checkbox or Radio props | Function(record) | - | | | hideDefaultSelections | Remove the default `Select All` and `Select Invert` selections when [custom selection](#components-table-demo-row-selection-custom) | boolean | `false` | | -| selectedRowKeys | Controlled selected row keys | string\[] | \[] | | +| selectedRowKeys | Controlled selected row keys | string\[]\|number[] | \[] | | | selections | Custom selection [config](#rowSelection), only displays default selections when set to `true` | object\[]\|boolean | - | | | type | `checkbox` or `radio` | `checkbox` \| `radio` | `checkbox` | | | onChange | Callback executed when selected rows change | Function(selectedRowKeys, selectedRows) | - | | diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index 7e3895cfd7..97826e0777 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -174,7 +174,7 @@ const columns = [ | fixed | 把选择框列固定在左边 | boolean | - | | | getCheckboxProps | 选择框的默认属性配置 | Function(record) | - | | | hideDefaultSelections | [自定义选择项](#components-table-demo-row-selection-custom)时去掉『全选』『反选』两个默认选项 | boolean | false | | -| selectedRowKeys | 指定选中项的 key 数组,需要和 onChange 进行配合 | string\[] | \[] | | +| selectedRowKeys | 指定选中项的 key 数组,需要和 onChange 进行配合 | string\[]\|number[] | \[] | | | selections | 自定义选择项 [配置项](#selection), 设为 `true` 时使用默认选择项 | object\[]\|boolean | true | | | type | 多选/单选,`checkbox` or `radio` | string | `checkbox` | | | onChange | 选中项发生变化时的回调 | Function(selectedRowKeys, selectedRows) | - | |