Browse Source

Add foot and showHeader for Table

pull/1146/head
afc163 9 years ago
parent
commit
f4995b7f67
  1. 3
      components/table/index.md
  2. 13
      style/components/table.less

3
components/table/index.md

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

13
style/components/table.less

@ -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…
Cancel
Save