From e7acdfd4f7844c5f4696d9caaaf767463aad27b7 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 23 Oct 2024 10:48:30 +0200 Subject: [PATCH 1/2] fix: refs #8010 footer class --- src/components/VnTable/VnTable.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index b9c6edf50..42d6b82a6 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -417,6 +417,7 @@ function handleScroll() { ref="tableRef" v-bind="table" class="vnTable" + :class="{ lastRowSticky: $props.footer }" :columns="splittedColumns.columns" :rows="rows" v-model:selected="selected" @@ -855,6 +856,9 @@ es: table tbody th { position: relative; } +} + +.lastRowSticky { tbody:nth-last-child(1) { @extend .bg-header; position: sticky; From 0528474250fdbbad7a6137467f532ac7ebcee710 Mon Sep 17 00:00:00 2001 From: alexm Date: Wed, 23 Oct 2024 13:13:00 +0200 Subject: [PATCH 2/2] chore: refs #8010 kebab-case --- src/components/VnTable/VnTable.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 42d6b82a6..47323da95 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -417,7 +417,7 @@ function handleScroll() { ref="tableRef" v-bind="table" class="vnTable" - :class="{ lastRowSticky: $props.footer }" + :class="{ 'last-row-sticky': $props.footer }" :columns="splittedColumns.columns" :rows="rows" v-model:selected="selected" @@ -858,7 +858,7 @@ es: } } -.lastRowSticky { +.last-row-sticky { tbody:nth-last-child(1) { @extend .bg-header; position: sticky;