Fixed #34 - TreeTable highlights unsorted columns
parent
65bce5a63a
commit
efd2ee77ed
|
@ -351,7 +351,7 @@ export default {
|
|||
this.$emit('update:first', this.d_first);
|
||||
},
|
||||
getColumnHeaderClass(column) {
|
||||
const sorted = this.sortMode === 'single' ? (this.d_sortField === (column.field || column.sortField)) : this.getMultiSortMetaIndex(column) > -1;
|
||||
const sorted = this.isColumnSorted(column);
|
||||
|
||||
return [column.headerClass,
|
||||
{'p-sortable-column': column.sortable},
|
||||
|
@ -359,6 +359,12 @@ export default {
|
|||
{'p-highlight': sorted}
|
||||
];
|
||||
},
|
||||
isColumnSorted(column) {
|
||||
if (column.sortable)
|
||||
return this.sortMode === 'single' ? (this.d_sortField === (column.field || column.sortField)) : this.getMultiSortMetaIndex(column) > -1;
|
||||
else
|
||||
return false;
|
||||
},
|
||||
getSortableColumnIcon(column) {
|
||||
let sorted = false;
|
||||
let sortOrder = null;
|
||||
|
|
Loading…
Reference in New Issue