From 4fa311120dc4d9e799deacc6a8a9b6a72a5d45a1 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 8 Apr 2024 10:11:50 +0200 Subject: [PATCH 01/23] feat: refs #6480 hide if no content --- src/components/CrudModel.vue | 75 ++++++++++++++++-------------- src/components/common/VnCard.vue | 20 ++++++++ src/components/ui/VnSubToolbar.vue | 5 +- 3 files changed, 62 insertions(+), 38 deletions(-) create mode 100644 src/components/common/VnCard.vue diff --git a/src/components/CrudModel.vue b/src/components/CrudModel.vue index c8fa5809c..cb4011c4f 100644 --- a/src/components/CrudModel.vue +++ b/src/components/CrudModel.vue @@ -9,6 +9,7 @@ import VnPaginate from 'components/ui/VnPaginate.vue'; import VnConfirm from 'components/ui/VnConfirm.vue'; import SkeletonTable from 'components/ui/SkeletonTable.vue'; import { tMobile } from 'src/composables/tMobile'; +import VnSubToolbar from './ui/VnSubToolbar.vue'; const quasar = useQuasar(); const stateStore = useStateStore(); @@ -258,6 +259,44 @@ watch(formUrl, async () => { }); - - - - - - - - - +import useCardSize from 'src/composables/useCardSize'; +import VnSubToolbar from 'src/components/common/VnSubToolbar.vue'; +defineProps({ + component: { + type: String, + required: true, + }, +}); + + diff --git a/src/components/ui/VnSubToolbar.vue b/src/components/ui/VnSubToolbar.vue index 22eebdf36..617c3a9d6 100644 --- a/src/components/ui/VnSubToolbar.vue +++ b/src/components/ui/VnSubToolbar.vue @@ -1,7 +1,7 @@