mirror of https://github.com/ElemeFE/element
Table: fix column label not visible in some condition.
parent
0caa085523
commit
e61ff12070
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue