From 22f42ca7f926e546a6ddb670d9d47fbaecaa829a Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 2 Jul 2024 14:55:32 +0200 Subject: [PATCH] feat(VnTable): add slots for columns --- src/components/VnTable/VnTable.vue | 38 ++++++++++++++++++------------ 1 file changed, 23 insertions(+), 15 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 493f1480e..9ddc858fb 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -175,7 +175,7 @@ function columnName(col) { } function getColAlign(col) { - return 'text-' + (col.align ?? 'left') + return 'text-' + (col.align ?? 'left'); } defineExpose({ reload, @@ -310,13 +310,15 @@ defineExpose({ class="no-margin q-px-xs" :class="getColAlign(col)" > - + + +