From 21737900793464787f4ab44add380d73fa245989 Mon Sep 17 00:00:00 2001 From: FlipWarthog Date: Tue, 3 Oct 2023 19:10:18 -0400 Subject: [PATCH] Fix #4543: Column: headercheckboxicon slot not working --- components/lib/datatable/DataTable.vue | 1 - components/lib/datatable/HeaderCell.vue | 6 +----- components/lib/datatable/TableHeader.vue | 6 ------ 3 files changed, 1 insertion(+), 12 deletions(-) diff --git a/components/lib/datatable/DataTable.vue b/components/lib/datatable/DataTable.vue index b6f2ac09a..8ee20b53d 100755 --- a/components/lib/datatable/DataTable.vue +++ b/components/lib/datatable/DataTable.vue @@ -87,7 +87,6 @@ :filtersStore="filters" :filterDisplay="filterDisplay" :filterInputProps="filterInputProps" - :headerCheckboxIconTemplate="$slots.headercheckboxicon" @column-click="onColumnHeaderClick($event)" @column-mousedown="onColumnHeaderMouseDown($event)" @filter-change="onFilterChange" diff --git a/components/lib/datatable/HeaderCell.vue b/components/lib/datatable/HeaderCell.vue index 2718570c7..be4c99744 100644 --- a/components/lib/datatable/HeaderCell.vue +++ b/components/lib/datatable/HeaderCell.vue @@ -35,7 +35,7 @@ :checked="allRowsSelected" @change="onHeaderCheckboxChange" :disabled="empty" - :headerCheckboxIconTemplate="headerCheckboxIconTemplate" + :headerCheckboxIconTemplate="column.children && column.children.headercheckboxicon" :column="column" :pt="pt" /> @@ -181,10 +181,6 @@ export default { filterInputProps: { type: null, default: null - }, - headerCheckboxIconTemplate: { - type: Function, - default: null } }, data() { diff --git a/components/lib/datatable/TableHeader.vue b/components/lib/datatable/TableHeader.vue index d839f94a2..11f049b5f 100755 --- a/components/lib/datatable/TableHeader.vue +++ b/components/lib/datatable/TableHeader.vue @@ -36,7 +36,6 @@ @constraint-add="$emit('constraint-add', $event)" @constraint-remove="$emit('constraint-remove', $event)" @apply-click="$emit('apply-click', $event)" - :headerCheckboxIconTemplate="headerCheckboxIconTemplate" :pt="pt" /> @@ -119,7 +118,6 @@ @constraint-add="$emit('constraint-add', $event)" @constraint-remove="$emit('constraint-remove', $event)" @apply-click="$emit('apply-click', $event)" - :headerCheckboxIconTemplate="headerCheckboxIconTemplate" :pt="pt" /> @@ -226,10 +224,6 @@ export default { filterInputProps: { type: null, default: null - }, - headerCheckboxIconTemplate: { - type: Function, - default: null } }, methods: {