Add foot and showHeader for Table

This commit is contained in:
afc163 2016-03-06 00:08:53 +08:00
parent ef8718eb18
commit f4995b7f67
2 changed files with 16 additions and 0 deletions

View File

@ -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

View File

@ -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;
}