You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>Low-level table primitives for React, maintained in the Ant Design ecosystem.</p>
3
+
<p><sub><imgalt="Ant Design"height="14"src="https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg"style="vertical-align: -0.125em;" /> Part of the Ant Design ecosystem.</sub></p>
4
+
<p>📋 Low-level table primitives for React, maintained in the Ant Design ecosystem.</p>
| tableLayout |`auto`\|`fixed`|`auto`\|`fixed`for any columns is fixed or ellipsis or header is fixed|https://developer.mozilla.org/en-US/docs/Web/CSS/table-layout|
| useFixedHeader | Boolean | false |whether use separator table for header. better set width for columns|
72
-
|scroll| Object | {x: false, y: false} |whether table can be scroll in x/y direction, `x` or `y` can be a number that indicated the width and height of table body|
| expandable.indentSize | Number | 15 |indentSize for every level of data.i.children, better using with column.width specified|
83
-
| expandable.rowExpandable | (record) => boolean ||Config row support expandable|
84
-
| expandable.onExpand | Function(expanded, record) ||function to call when click expand icon|
85
-
| expandable.onExpandedRowsChange | Function(expandedRows) ||function to call when the expanded rows change|
86
-
| expandable.fixed | String \| Boolean | - |this expand icon will be fixed when table scroll horizontally: true or`left`or`right`and`expandIconColumnIndex`need to stay first or last|
87
-
| rowKey |string or Function(record, index):string| 'key' |If rowKey is string, `record[rowKey]`will be used as key. If rowKey is function, the return value of `rowKey(record, index)`will be use as key.|
88
-
| rowClassName |string or Function(record, index, indent):string||get row's className|
89
-
| rowRef |Function(record, index, indent):string|| get row's ref key |
90
-
|data| Object[]||data record array to be rendered|
91
-
| onRow | Function(record, index) ||Set custom props per each row.|
92
-
| onHeaderRow | Function(record, index) ||Set custom props per each header row.|
93
-
| showHeader | Boolean | true |whether table head is shown|
| top | number | - | Scroll to specific top position (in px) |
119
-
| key | string | - | Scroll to row by row key |
120
-
| offset | number | - | Additional offset from target position |
121
-
| align | `start`\|`center`\|`end`\|`nearest` | `nearest` | Alignment of the target element within the scroll container. `start`aligns to top, `center`to middle, `end`to bottom, `nearest`automatically chooses the closest alignment. Note: Virtual table does not support `center`. |
| rowScope | 'row' \| 'rowgroup' | | Set scope attribute for all cells in this column |
138
-
| onCell | Function(record, index) | | Set custom props per each cell. |
139
-
| onHeaderCell | Function(record) | | Set custom props per each header cell. |
140
-
| render | Function(value, row, index) | | The render function of cell, has three params: the text of this cell, the record of this row, the index of this row, it's return an object:{ children: value, props: { colSpan: 1, rowSpan:1 } } ==> 'children' is the text of this cell, props is some setting of this cell, eg: 'colspan' set td colspan, 'rowspan' set td rowspan |
126
+
| key | String | | 本栏目关键 |
127
+
| className | String | | 该列的className |
128
+
| colSpan | Number | | 该列的 head colSpan |
129
+
| title | React节点 | | 本栏目标题 |
130
+
| dataIndex | String | | 数据记录的显示字段 |
131
+
| 宽度 | String \| Number | | 宽度具体比例根据柱子的宽度计算 |
132
+
| minWidth | Number | | 列的最小宽度,仅当 tableLayout 为 auto 时有效 |
| fixed | boolean \| 'top' \| 'bottom' | - | `true`fixes the summary row at the bottom of the table. `top`fixes the summary row at the top of the table, while `bottom`fixes it at the bottom. `undefined`or`false`makes the summary row scrollable along with the table. |
| className | String | - | className of this summary row |
157
-
| style | React.CSSProperties | - | style of this summary row |
158
-
| onClick | (e?: React.MouseEvent\<HTMLElement>) => void | - | The `onClick` attribute in `Table.Summary.Row`component can be used to set a click event handler for the summary row. |
0 commit comments