Skip to content

Commit

Permalink
fix(VaDataTable): fix slot about footer doesn't work as expected(#4160)…
Browse files Browse the repository at this point in the history
… (#4201)
  • Loading branch information
gweesin authored Apr 8, 2024
1 parent ec2f463 commit ad20fb8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ui/src/components/va-data-table/VaDataTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@
</tbody>

<tfoot
v-if="$slots.footer || (footerClone && !$props.grid)"
v-if="['footer', 'footerPrepend', 'footerAppend'].some(field => $slots[field]) || (footerClone && !$props.grid)"
class="va-data-table__table-tfoot"
:class="{ 'va-data-table__table-tfoot--sticky': $props.stickyFooter }"
:style="{ bottom: isVirtualScroll && $props.stickyFooter ? `${currentListOffset}px` : undefined }"
Expand Down

0 comments on commit ad20fb8

Please sign in to comment.