@@ -70,32 +70,32 @@ npm start
7070| --- | --- | --- | --- |
7171| tableLayout | ` auto ` \| ` fixed ` | ` auto ` \| 任何列的 ` fixed ` 都是固定的,或者省略号或标题是固定的 | https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout |
7272| prefixCls | String | ` rc-table ` | |
73- | className | String | | additional className |
73+ | className | String | | 附加 className |
7474| id | String | | 容器div的标识符 |
7575| useFixedHeader | Boolean | false | 是否对标题使用分隔符表。更好地设置列宽度 |
7676| scroll | Object | {x: false, y: false} | 表格是否可以在x/y方向滚动,` x ` 或` y ` 可以是一个数字,表示表格主体的宽度和高度 |
7777| expandable | Object | | 配置展开道具 |
78- | expandable.defaultExpandAllRows | Boolean | false | Expand All Rows initially |
78+ | expandable.defaultExpandAllRows | Boolean | false | 初始展开所有行 |
7979| expandable.defaultExpandedRowKeys | String[ ] | [ ] | 初始扩展行键 |
8080| expandable.expandedRowKeys | String[ ] | | 当前扩展行键 |
8181| expandable.expandedRowRender | Function(recode, index, indent, expanded): ReactNode | | 内容渲染到扩展行 |
8282| expandable.expandedRowClassName | ` string ` \| ` (recode, index, indent) => string ` | | 获取扩展行的className |
8383| expandable.expandRowByClick | boolean | | 支持点击行展开 |
8484| expandable.expandIconColumnIndex | Number | 0 | ExpandIconAsCell 为 false 时将插入哪一列的 ExpandIcon 索引 |
85- | expandable.expandIcon | props => ReactNode | | Customize expand icon |
85+ | expandable.expandIcon | props => ReactNode | | 自定义展开图标 |
8686| expandable.indentSize | Number | 15 | 每一级 ` data[i].children ` 的缩进尺寸,建议配合指定的 ` column.width ` 使用 |
8787| expandable.rowExpandable | (record) => boolean | | 配置行支持可扩展 |
8888| expandable.onExpand | Function(expanded, record) | | 单击展开图标时调用的函数 |
8989| expandable.onExpandedRowsChange | Function(expandedRows) | | 扩展行更改时调用的函数 |
9090| expandable.fixed | String \| Boolean | - | 当表格水平滚动时,此展开图标将被修复: true 或 ` left ` 或 ` right ` 和 ` expandIconColumnIndex ` 需要保留在第一个或最后一个 |
9191| rowKey | string or Function(record, index): string | 'key' | 如果 rowKey 是字符串,则 ` record[rowKey] ` 将用作键。如果 rowKey 是函数,则 ` rowKey(record, index) ` 的返回值将用作 key。 |
9292| rowClassName | string or Function(record, index, indent): string | | 获取行的className |
93- | rowRef | Function(record, index, indent): string | | get row's ref key |
93+ | rowRef | Function(record, index, indent): string | | 获取行 ref key |
9494| data | Object[ ] | | 要呈现的数据记录数组 |
9595| onRow | Function(record, index) | | 每行设置自定义道具。 |
9696| onHeaderRow | Function(record, index) | | 为每个标题行设置自定义道具。 |
9797| showHeader | Boolean | true | 是否显示表头 |
98- | hidden | Boolean | ` false ` | Hidden column. |
98+ | hidden | Boolean | ` false ` | 隐藏列。 |
9999| title | Function(currentData) | | 表格标题渲染函数 |
100100| footer | Function(currentData) | | 表页脚渲染函数 |
101101| emptyText | React.Node or Function | ` No Data ` | 数据为空时显示文本 |
0 commit comments