Skip to content

Commit 3b3c71b

Browse files
committed
doc: update table
1 parent 74038a0 commit 3b3c71b

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

components/table/index.en-US.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ Specify `dataSource` of Table as an array of data.
9898
| size | Size of table | `default` \| `middle` \| `small` \| `large` | `default` |
9999
| sticky | Set sticky header and scroll bar | boolean \| `{offsetHeader?: number, offsetScroll?: number, getContainer?: () => HTMLElement}` | - | 3.0 |
100100
| title | Table title renderer | Function(currentPageData)\| v-slot:title="currentPageData" | | |
101-
| customHeaderRow | Set props on per header row | Function(column, index) | - | |
101+
| customHeaderRow | Set props on per header row | Function(columns, index) | - | |
102102
| customRow | Set props on per row | Function(record, index) | - | |
103103
| getPopupContainer | the render container of dropdowns in table | (triggerNode) => HTMLElement | `() => TableHtmlElement` | 1.5.0 |
104104
| 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
138138
onMouseleave: (event) => {} // mouse leave row
139139
};
140140
}}
141-
customHeaderRow={(column) => {
141+
customHeaderRow={(columns, index) => {
142142
return {
143143
onClick: () => {}, // click header row
144144
};

components/table/index.zh-CN.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ cover: https://gw.alipayobjects.com/zos/alicdn/f-SbcX2Lx/Table.svg
105105
| title | 表格标题 | Function(currentPageData)\|v-slot:title="currentPageData" | | |
106106
| indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | number | 15 | |
107107
| rowExpandable | 设置是否允许行展开 | (record) => boolean | - | 3.0 |
108-
| customHeaderRow | 设置头部行属性 | Function(column, index) | - | |
108+
| customHeaderRow | 设置头部行属性 | Function(columns, index) | - | |
109109
| customRow | 设置行属性 | Function(record, index) | - | |
110110
| headerCell | 个性化头部单元格 | v-slot:headerCell="{title, column}" | - | 3.0 |
111111
| 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
144144
onMouseleave: (event) => {}
145145
};
146146
}}
147-
customHeaderRow={(column) => {
147+
customHeaderRow={(columns, index) => {
148148
return {
149149
onClick: () => {}, // 点击表头行
150150
};

0 commit comments

Comments
 (0)