mirror of
https://github.com/ant-design/ant-design.git
synced 2025-08-06 16:06:28 +08:00
Add foot and showHeader for Table
This commit is contained in:
parent
ef8718eb18
commit
f4995b7f67
@ -70,6 +70,9 @@ const columns = [{
|
||||
| indentSize | 展示树形数据时,每层缩进的宽度,以 px 为单位 | Number | | 15 |
|
||||
| onRowClick | 处理行点击事件 | Function(record, index) | | 无 |
|
||||
| useFixedHeader | 是否固定表头 | Boolean | | false |
|
||||
| bordered | 是否展示外边框和列边框 | Boolean | | false |
|
||||
| showHeader | 是否显示表头 | Boolean | | true |
|
||||
| footer | 表格底部自定义渲染函数 | Function(currentPageData) | | |
|
||||
|
||||
### Column
|
||||
|
||||
|
@ -58,6 +58,19 @@
|
||||
background: none;
|
||||
}
|
||||
|
||||
tfoot tr {
|
||||
background: @table-head-background-color;
|
||||
position: relative;
|
||||
top: -1px;
|
||||
&:hover {
|
||||
background: @table-head-background-color;
|
||||
}
|
||||
td {
|
||||
border-radius: 0 0 @border-radius-base @border-radius-base;
|
||||
border: 0;
|
||||
}
|
||||
}
|
||||
|
||||
tr.@{table-prefix-cls}-row-selected {
|
||||
background: #fafafa;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user