From d51b1712db260f78394d39b66e4cd5a5ab9e52bf Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Tue, 23 Feb 2021 15:17:57 +0300 Subject: [PATCH] Fixed #987 - DataTable Column header slot does not work --- src/components/datatable/HeaderCell.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/datatable/HeaderCell.vue b/src/components/datatable/HeaderCell.vue index 769baf0b5c..320b902975 100644 --- a/src/components/datatable/HeaderCell.vue +++ b/src/components/datatable/HeaderCell.vue @@ -5,7 +5,7 @@ :colspan="columnProp('colspan')" :rowspan="columnProp('rowspan')" :aria-sort="ariaSort">
- + {{columnProp('header')}} {{getMultiSortMetaIndex() + 1}} @@ -172,7 +172,7 @@ export default { }, computed: { containerClass() { - return [this.filterColumn ? this.columnProp('headerClass') : this.columnProp('filterHeaderClass'), this.columnProp('class'), { + return [this.filterColumn ? this.columnProp('filterHeaderClass') : this.columnProp('headerClass'), this.columnProp('class'), { 'p-sortable-column': this.columnProp('sortable'), 'p-resizable-column': this.resizableColumns, 'p-highlight': this.isColumnSorted(),