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>
|
<thead>
|
||||||
{
|
{
|
||||||
this._l(columnRows, (columns) =>
|
this._l(columnRows, (columns, rowIndex) =>
|
||||||
<tr>
|
<tr>
|
||||||
{
|
{
|
||||||
this._l(columns, (column, cellIndex) =>
|
this._l(columns, (column, cellIndex) =>
|
||||||
|
@ -103,7 +103,7 @@ export default {
|
||||||
on-mouseout={ this.handleMouseOut }
|
on-mouseout={ this.handleMouseOut }
|
||||||
on-mousedown={ ($event) => this.handleMouseDown($event, column) }
|
on-mousedown={ ($event) => this.handleMouseDown($event, column) }
|
||||||
on-click={ ($event) => this.handleClick($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' : ''] }>
|
<div class={ ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : ''] }>
|
||||||
{
|
{
|
||||||
column.renderHeader
|
column.renderHeader
|
||||||
|
|
|
@ -12,7 +12,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border-collapse: collapse;
|
|
||||||
border: 1px solid var(--table-border-color);
|
border: 1px solid var(--table-border-color);
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: var(--table-text-color);
|
color: var(--table-text-color);
|
||||||
|
|
Loading…
Reference in New Issue