Table: fix column label not visible in some condition.

pull/1524/head
Furybean 2016-12-02 17:33:03 +08:00 committed by 杨奕
parent 0caa085523
commit e61ff12070
2 changed files with 2 additions and 3 deletions

View File

@ -92,7 +92,7 @@ export default {
}
<thead>
{
this._l(columnRows, (columns) =>
this._l(columnRows, (columns, rowIndex) =>
<tr>
{
this._l(columns, (column, cellIndex) =>
@ -103,7 +103,7 @@ export default {
on-mouseout={ this.handleMouseOut }
on-mousedown={ ($event) => this.handleMouseDown($event, column) }
on-click={ ($event) => this.handleClick($event, column) }
class={ [column.id, column.order, column.align, column.className || '', this.isCellHidden(cellIndex) ? 'is-hidden' : '', !column.children ? 'is-leaf' : ''] }>
class={ [column.id, column.order, column.align, column.className || '', rowIndex === 0 && this.isCellHidden(cellIndex) ? 'is-hidden' : '', !column.children ? 'is-leaf' : ''] }>
<div class={ ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : ''] }>
{
column.renderHeader

View File

@ -12,7 +12,6 @@
width: 100%;
max-width: 100%;
background-color: #fff;
border-collapse: collapse;
border: 1px solid var(--table-border-color);
font-size: 14px;
color: var(--table-text-color);