Skip to content

Commit 35083c7

Browse files
author
黄书伟
committed
update api
1 parent 4ad881c commit 35083c7

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

examples/doc/table/api.md

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,14 @@
77
| height | table 高度 | number |||
88
| min-height | table最小高度(当表格自适应时生效`resize()`| - |||
99
| title-row-height | 表头行高 | number || 38px |
10+
| row-height | 表格体行高 | string || 40px |
11+
| footer-row-height | footer 每一行的高度 | number || 40 |
1012
| is-horizontal-resize | 是否开启横向自适应(开启后会随着窗口改变而改变、根据表格宽度自动填充),注意需要设置`style="width:100%"` | boolean || false |
1113
| is-vertical-resize | 是否开启纵向自适应(开启后会随着窗口改变而改变、根据表格高度自动填充)| boolean || false |
1214
| vertical-resize-offset | 垂直自适应的偏移量,一般是表格下方有分页时会用到,使其成为自适应的一部分 | number || - |
1315
| title-bg-color | 表头背景颜色 | string || #fff |
1416
| odd-bg-color | 表格体奇数行颜色 | string || #fff |
1517
| even-bg-color |表格体偶数行颜色 | string || #fff |
16-
| row-height | 表格体行高 | string || 40px |
1718
| multiple-sort | 是否开启多列排序| boolean || true |
1819
| table-data | 表格数据集合 | - || array |
1920
| columns | 列的集合。具体参考columns | array |||
@@ -29,6 +30,9 @@
2930
| show-horizontal-border | 是否显示横向border | boolean || true |
3031

3132

33+
34+
35+
3236
### columns(Table props)
3337
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
3438
|---------- |-------------- |---------- |-------------------------------- |-------- |
@@ -57,7 +61,20 @@
5761
| rowspan | 合并行的数目 | number |||
5862
| colspan | 合并列的数目 | number |||
5963
| orderBy | 排序规则,`columns` 中不用配置 | string | asc/desc ||
60-
| titleCellClassName | 表头单元格设置className | string |||
64+
65+
### footer(Table props)
66+
表格footer
67+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
68+
|---------- |-------------- |---------- |-------------------------------- |-------- |
69+
| - | 数组集合,每一个子数组为一行代表当前的汇总信息 | array |||
70+
71+
72+
### table-data(Table props)
73+
table 表格数据,通过设置一些特殊属性实现某些功能,如 checkbox 多选功能
74+
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
75+
|---------- |-------------- |---------- |-------------------------------- |-------- |
76+
| _checked | 是否选中(当开启多选时有效) | boolean || false |
77+
| _disabled | 是否禁用选中\未选中(当开启多选时有效) | boolean || false |
6178

6279

6380
### Table Event
@@ -73,6 +90,8 @@
7390
| select-all| 全选时触发 | selection 当前选中的项集合 |
7491
| select-change| 某一项 checkbox 触发 | selection(当前选中的项集合),rowData(当前选中的项)|
7592
| select-group-change| 选中项发生变化触发 | selection(当前选中的项集合) |
93+
| column-cell-class-name| 表体单元格设置className | rowIndex,columnName,rowData |
94+
7695

7796

7897

0 commit comments

Comments
 (0)