feat: Table support expandable.columnWidth (#28249)

close https://github.com/ant-design/ant-design/issues/28147
This commit is contained in:
偏右 2020-12-09 14:35:41 +08:00 committed by GitHub
parent 5c9ec6c2d9
commit 50e8e7d9e1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 1 deletions

View File

@ -167,6 +167,7 @@ Properties for expandable.
| Property | Description | Type | Default |
| --- | --- | --- | --- |
| columnWidth | Set the width of the expand column | string \| number | - | |
| childrenColumnName | The column contains children to display | string | children |
| defaultExpandAllRows | Expand all rows initially | boolean | false |
| defaultExpandedRowKeys | Initial expanded row keys | string\[] | - |

View File

@ -174,6 +174,7 @@ const columns = [
| 参数 | 说明 | 类型 | 默认值 |
| --- | --- | --- | --- |
| columnWidth | 自定义展开列宽度 | string \| number | - | |
| childrenColumnName | 指定树形结构的列名 | string | children |
| defaultExpandAllRows | 初始时,是否展开所有行 | boolean | false |
| defaultExpandedRowKeys | 默认展开的行 | string\[] | - |

View File

@ -138,7 +138,7 @@
"rc-slider": "~9.6.1",
"rc-steps": "~4.1.0",
"rc-switch": "~3.2.0",
"rc-table": "~7.11.0",
"rc-table": "~7.12.0",
"rc-tabs": "~11.7.0",
"rc-textarea": "~0.3.0",
"rc-tooltip": "~5.0.0",