From 4fa311120dc4d9e799deacc6a8a9b6a72a5d45a1 Mon Sep 17 00:00:00 2001 From: jorgep Date: Mon, 8 Apr 2024 10:11:50 +0200 Subject: [PATCH 01/61] 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 @@ diff --git a/src/pages/Claim/Card/ClaimLines.vue b/src/pages/Claim/Card/ClaimLines.vue index 06918f6ca..89703c64b 100644 --- a/src/pages/Claim/Card/ClaimLines.vue +++ b/src/pages/Claim/Card/ClaimLines.vue @@ -4,12 +4,12 @@ import { ref, computed } from 'vue'; import { useI18n } from 'vue-i18n'; import { useQuasar } from 'quasar'; import { useRoute } from 'vue-router'; +import { useStateStore } from 'stores/useStateStore'; import { useArrayData } from 'composables/useArrayData'; import { toDate, toCurrency, toPercentage } from 'filters/index'; import CrudModel from 'components/CrudModel.vue'; import FetchData from 'components/FetchData.vue'; import VnDiscount from 'components/common/vnDiscount.vue'; -import VnTeleport from 'components/common/VnTeleport.vue'; import ClaimLinesImport from './ClaimLinesImport.vue'; import ItemDescriptorProxy from 'src/pages/Item/Card/ItemDescriptorProxy.vue'; @@ -17,6 +17,7 @@ const quasar = useQuasar(); const route = useRoute(); const { t } = useI18n(); +const stateStore = useStateStore(); const arrayData = useArrayData('ClaimLines'); const store = arrayData.store; @@ -156,25 +157,24 @@ function showImportDialog() { }