diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index b9c6edf50..47323da95 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="{ 'last-row-sticky': $props.footer }" :columns="splittedColumns.columns" :rows="rows" v-model:selected="selected" @@ -855,6 +856,9 @@ es: table tbody th { position: relative; } +} + +.last-row-sticky { tbody:nth-last-child(1) { @extend .bg-header; position: sticky;