mirror of https://github.com/ElemeFE/element
Table: rename hidden class to is-hidden.
parent
78277e2226
commit
ad193c0c80
|
@ -36,7 +36,7 @@ export default {
|
|||
{
|
||||
this._l(this.columns, (column, cellIndex) =>
|
||||
<td
|
||||
class={ [column.id, column.align, this.isCellHidden(cellIndex) ? 'hidden' : '' ] }
|
||||
class={ [column.id, column.align, this.isCellHidden(cellIndex) ? 'is-hidden' : '' ] }
|
||||
on-mouseenter={ ($event) => this.handleCellMouseEnter($event, row) }
|
||||
on-mouseleave={ this.handleCellMouseLeave }>
|
||||
{
|
||||
|
|
|
@ -33,7 +33,7 @@ export default {
|
|||
on-mousemove={ ($event) => this.handleMouseMove($event, column) }
|
||||
on-mouseout={ this.handleMouseOut }
|
||||
on-mousedown={ ($event) => this.handleMouseDown($event, column) }
|
||||
class={ [column.id, column.order, column.align, this.isCellHidden(cellIndex) ? 'hidden' : ''] }>
|
||||
class={ [column.id, column.order, column.align, this.isCellHidden(cellIndex) ? 'is-hidden' : ''] }>
|
||||
<div class={ ['cell', column.filteredValue && column.filteredValue.length > 0 ? 'highlight' : ''] }>
|
||||
{
|
||||
column.headerTemplate
|
||||
|
|
|
@ -408,11 +408,11 @@ describe('Table', () => {
|
|||
'fixed="right" label="test2"',
|
||||
'fixed="left" label="test3"');
|
||||
setTimeout(_ => {
|
||||
expect(toArray(vm.$el.querySelectorAll('.el-table__fixed th:not(.hidden)'))
|
||||
expect(toArray(vm.$el.querySelectorAll('.el-table__fixed th:not(.is-hidden)'))
|
||||
.map(node => node.textContent))
|
||||
.to.eql(['test1', 'test3']);
|
||||
|
||||
expect(toArray(vm.$el.querySelectorAll('.el-table__fixed-right th:not(.hidden)'))
|
||||
expect(toArray(vm.$el.querySelectorAll('.el-table__fixed-right th:not(.is-hidden)'))
|
||||
.map(node => node.textContent))
|
||||
.to.eql(['test2']);
|
||||
destroyVM(vm);
|
||||
|
|
Loading…
Reference in New Issue