Browse Source

feat: Table support expandable.columnWidth (#28249)

close https://github.com/ant-design/ant-design/issues/28147
pull/28301/head
偏右 4 years ago
committed by GitHub
parent
commit
50e8e7d9e1
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      components/table/index.en-US.md
  2. 1
      components/table/index.zh-CN.md
  3. 2
      package.json

1
components/table/index.en-US.md

@ -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\[] | - |

1
components/table/index.zh-CN.md

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

2
package.json

@ -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",

Loading…
Cancel
Save