From 0a31a8e3d59693734137f4619c333b129001127e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Fri, 14 Apr 2023 16:40:21 +0300 Subject: [PATCH] Refactor #3832 - DataTable & TreeTable sort icon bug fixes --- components/lib/datatable/HeaderCell.vue | 2 +- components/lib/treetable/HeaderCell.vue | 12 +++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/components/lib/datatable/HeaderCell.vue b/components/lib/datatable/HeaderCell.vue index 3a91c8258..268a6dce5 100644 --- a/components/lib/datatable/HeaderCell.vue +++ b/components/lib/datatable/HeaderCell.vue @@ -20,7 +20,7 @@ {{ columnProp('header') }} - + {{ getBadgeValue() }} diff --git a/components/lib/treetable/HeaderCell.vue b/components/lib/treetable/HeaderCell.vue index 1bce0d475..cb9b2d084 100644 --- a/components/lib/treetable/HeaderCell.vue +++ b/components/lib/treetable/HeaderCell.vue @@ -4,7 +4,7 @@ {{ columnProp('header') }} - + {{ getMultiSortMetaIndex() + 1 }} @@ -167,12 +167,10 @@ export default { } } - return [ - { - sorted, - sortOrder - } - ]; + return { + sorted, + sortOrder + }; }, sortableColumnIcon() { const { sorted, sortOrder } = this.sortState;