element-ui使用过程中遇到的问题
实现el-table排序图标高亮
在el-table上添加:header-cell-style=“headerCellStyle”
headerCellStyle ({ row, column, rowIndex, columnIndex }) {
// 排序图标高亮
if (this.sortData) {
if (column.property === this.sortData.sortField) {
column.order = this.sortData.sortOrder ? `${this.sortData.sortOrder}ending` : ''
} else {
column.order = ''
}
}
}