Commit e61ff120 authored by Furybean's avatar Furybean Committed by 杨奕

Table: fix column label not visible in some condition.

parent 0caa0855
......@@ -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
......
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment