From 216f12a7cc70424aaa1507cf227dc47b5de74754 Mon Sep 17 00:00:00 2001 From: miguelrk Date: Tue, 6 May 2025 22:54:03 +0200 Subject: [PATCH] feat(UTable): add `#default, `#head` and `#body` slots Exposing a `#default` slot allows rendering custom non-table views (e.g. cards, gallery, calendar, list) while being able to utilize the `tableApi` and `tableRef` functionality. `#head` and `#body` added for completeness, in case overriding only one or the other is preffered. --- src/runtime/components/Table.vue | 144 ++++++++++++++++--------------- 1 file changed, 75 insertions(+), 69 deletions(-) diff --git a/src/runtime/components/Table.vue b/src/runtime/components/Table.vue index 076baf1b24..3725ebbe38 100644 --- a/src/runtime/components/Table.vue +++ b/src/runtime/components/Table.vue @@ -346,84 +346,90 @@ defineExpose({ - - - - - - - - - - - - - - - - - - - - - - {{ empty || t('table.noData') }} - - - - + + + + {{ empty || t('table.noData') }} + + + + + +