From 6d12c0f00c8347f47e01a5c4db52dbca724c756c Mon Sep 17 00:00:00 2001 From: alexm Date: Tue, 2 Jul 2024 15:01:43 +0200 Subject: [PATCH] feat(VnTable): add selected funcitionality --- src/components/VnTable/VnTable.vue | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/components/VnTable/VnTable.vue b/src/components/VnTable/VnTable.vue index 9ddc858fb..56d1cbe8f 100644 --- a/src/components/VnTable/VnTable.vue +++ b/src/components/VnTable/VnTable.vue @@ -59,6 +59,10 @@ const $props = defineProps({ type: Boolean, default: false, }, + hasSubtoolbar: { + type: Boolean, + default: true, + }, }); const { t } = useI18n(); const stateStore = useStateStore(); @@ -177,9 +181,12 @@ function columnName(col) { function getColAlign(col) { return 'text-' + (col.align ?? 'left'); } + +const emit = defineEmits(['onFetch', 'update:selected', 'saveChanges']); defineExpose({ reload, redirect: redirectFn, + selected, });