doc: update table

pull/4882/head
tangjinzhou 2021-11-20 13:46:59 +08:00
parent 74038a0f61
commit 3b3c71b3a0
2 changed files with 4 additions and 4 deletions

View File

@ -98,7 +98,7 @@ Specify `dataSource` of Table as an array of data.
| size | Size of table | `default` \| `middle` \| `small` \| `large` | `default` | | size | Size of table | `default` \| `middle` \| `small` \| `large` | `default` |
| sticky | Set sticky header and scroll bar | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 3.0 | | sticky | Set sticky header and scroll bar | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 3.0 |
| title | Table title renderer | Function(currentPageData)\| v-slot:title="currentPageData" | | | | title | Table title renderer | Function(currentPageData)\| v-slot:title="currentPageData" | | |
| customHeaderRow | Set props on per header row | Function(column, index) | - | | | customHeaderRow | Set props on per header row | Function(columns, index) | - | |
| customRow | Set props on per row | Function(record, index) | - | | | customRow | Set props on per row | Function(record, index) | - | |
| getPopupContainer | the render container of dropdowns in table | (triggerNode) => HTMLElement | `() => TableHtmlElement` | 1.5.0 | | getPopupContainer | the render container of dropdowns in table | (triggerNode) => HTMLElement | `() => TableHtmlElement` | 1.5.0 |
| headerCell | custom head cell by slot | v-slot:headerCell="{title, column}" | - | 3.0 | | headerCell | custom head cell by slot | v-slot:headerCell="{title, column}" | - | 3.0 |
@ -138,7 +138,7 @@ Same as `customRow` `customHeaderRow` `customCell` `customHeaderCell`. Follow [V
onMouseleave: (event) => {} // mouse leave row onMouseleave: (event) => {} // mouse leave row
}; };
}} }}
customHeaderRow={(column) => { customHeaderRow={(columns, index) => {
return { return {
onClick: () => {}, // click header row onClick: () => {}, // click header row
}; };

View File

@ -105,7 +105,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg
| title | 表格标题 | Function(currentPageData)\|v-slot:title="currentPageData" | | | | title | 表格标题 | Function(currentPageData)\|v-slot:title="currentPageData" | | |
| indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 | | | indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 | |
| rowExpandable | 设置是否允许行展开 | (record) => boolean | - | 3.0 | | rowExpandable | 设置是否允许行展开 | (record) => boolean | - | 3.0 |
| customHeaderRow | 设置头部行属性 | Function(column, index) | - | | | customHeaderRow | 设置头部行属性 | Function(columns, index) | - | |
| customRow | 设置行属性 | Function(record, index) | - | | | customRow | 设置行属性 | Function(record, index) | - | |
| headerCell | 个性化头部单元格 | v-slot:headerCell="{title, column}" | - | 3.0 | | headerCell | 个性化头部单元格 | v-slot:headerCell="{title, column}" | - | 3.0 |
| bodyCell | 个性化单元格 | v-slot:bodyCell="{text, record, index, column}" | - | 3.0 | | bodyCell | 个性化单元格 | v-slot:bodyCell="{text, record, index, column}" | - | 3.0 |
@ -144,7 +144,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg
onMouseleave: (event) => {} onMouseleave: (event) => {}
}; };
}} }}
customHeaderRow={(column) => { customHeaderRow={(columns, index) => {
return { return {
onClick: () => {}, // 点击表头行 onClick: () => {}, // 点击表头行
}; };