From 595fc64515613fe82c3a56fc5518f2e3fcce6e19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Est=C3=A9ban?= Date: Wed, 25 Jun 2025 11:17:02 +0200 Subject: [PATCH] feat(Table): add `body-top` / `body-bottom` slots (#4354) Co-authored-by: Benjamin Canac --- src/runtime/components/Table.vue | 14 ++- test/components/Table.spec.ts | 4 +- .../__snapshots__/Table-vue.spec.ts.snap | 107 ++++++++++++++++++ .../__snapshots__/Table.spec.ts.snap | 107 ++++++++++++++++++ 4 files changed, 227 insertions(+), 5 deletions(-) diff --git a/src/runtime/components/Table.vue b/src/runtime/components/Table.vue index 422c2b59..1c7d6081 100644 --- a/src/runtime/components/Table.vue +++ b/src/runtime/components/Table.vue @@ -173,10 +173,12 @@ type DynamicHeaderSlots = Record = Record) => any> & Record<`${K extends string ? K : never}-cell`, (props: CellContext) => any> export type TableSlots = { - expanded: (props: { row: Row }) => any - empty: (props?: {}) => any - loading: (props?: {}) => any - caption: (props?: {}) => any + 'expanded': (props: { row: Row }) => any + 'empty': (props?: {}) => any + 'loading': (props?: {}) => any + 'caption': (props?: {}) => any + 'body-top': (props?: {}) => any + 'body-bottom': (props?: {}) => any } & DynamicHeaderSlots & DynamicCellSlots @@ -371,6 +373,8 @@ defineExpose({ + +