From 91a5947ef204e3fe0020c209601a9aacd0054926 Mon Sep 17 00:00:00 2001 From: zhangj Date: Thu, 20 Feb 2020 22:43:31 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=F0=9F=93=9D=20Added=20expandIconColumn?= =?UTF-8?q?Index=20property=20description=20of=20Table.=20(#21495)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 添加Table表格的expandIconColumnIndex属性说明。 * Update components/table/index.en-US.md Co-Authored-By: 偏右 * Update components/table/index.zh-CN.md Co-Authored-By: 偏右 Co-authored-by: 偏右 --- components/table/index.en-US.md | 1 + components/table/index.zh-CN.md | 1 + 2 files changed, 2 insertions(+) diff --git a/components/table/index.en-US.md b/components/table/index.en-US.md index a8854c8632..3e9610b303 100644 --- a/components/table/index.en-US.md +++ b/components/table/index.en-US.md @@ -71,6 +71,7 @@ const columns = [ | expandedRowRender | Expanded container render for each row | Function(record, index, indent, expanded):ReactNode | - | | | expandIcon | Customize row expand Icon. Ref [example](http://react-component.github.io/table/examples/expandIcon.html) | Function(props):ReactNode | - | 3.11.3 | | expandRowByClick | Whether to expand row by clicking anywhere in the whole row | boolean | `false` | 3.0.1 | +| expandIconColumnIndex | The index of `expandIcon` which column will be inserted when `expandIconAsCell` is false | 0 | | | footer | Table footer renderer | Function(currentPageData) | | | | indentSize | Indent size in pixels of tree data | number | 15 | | | loading | Loading status of table | boolean\|[object](https://ant.design/components/spin-cn/#API) ([more](https://github.com/ant-design/ant-design/issues/4544#issuecomment-271533135)) | `false` | | diff --git a/components/table/index.zh-CN.md b/components/table/index.zh-CN.md index fe4c314d66..fc676b8997 100644 --- a/components/table/index.zh-CN.md +++ b/components/table/index.zh-CN.md @@ -76,6 +76,7 @@ const columns = [ | expandedRowRender | 额外的展开行 | Function(record, index, indent, expanded):ReactNode | - | | | expandIcon | 自定义展开图标,参考[示例](http://react-component.github.io/table/examples/expandIcon.html) | Function(props):ReactNode | - | 3.11.3 | | expandRowByClick | 通过点击行来展开子行 | boolean | `false` | 3.0.1 | +| expandIconColumnIndex | 展开的图标显示在哪一列,如果没有 `rowSelection`,默认显示在第一列,否则显示在选择框后面 | `number` | | | footer | 表格尾部 | Function(currentPageData) | | | | indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 | | | loading | 页面是否加载中 | boolean\|[object](https://ant.design/components/spin-cn/#API) ([更多](https://github.com/ant-design/ant-design/issues/4544#issuecomment-271533135)) | false | |