From 2c607ef8d9ff9b0f29173692d67ce1e5e5d038c0 Mon Sep 17 00:00:00 2001 From: Jon Date: Fri, 17 Jan 2025 13:16:04 +0100 Subject: [PATCH] refactor: refs #8120 change prop and classes' names --- src/components/common/VnSummaryDialog.vue | 12 ++++++------ src/components/ui/CardDescriptor.vue | 8 +++----- src/composables/useSummaryDialog.js | 4 ++-- src/pages/Customer/Card/CustomerDescriptor.vue | 2 +- src/pages/Entry/Card/EntryDescriptor.vue | 2 +- src/pages/InvoiceIn/Card/InvoiceInDescriptor.vue | 7 +++++-- src/pages/InvoiceOut/Card/InvoiceOutDescriptor.vue | 2 +- src/pages/Route/Card/RouteDescriptor.vue | 2 +- src/pages/Ticket/Card/TicketDescriptor.vue | 6 +++++- 9 files changed, 25 insertions(+), 20 deletions(-) diff --git a/src/components/common/VnSummaryDialog.vue b/src/components/common/VnSummaryDialog.vue index bbca1bd98..5da941a27 100644 --- a/src/components/common/VnSummaryDialog.vue +++ b/src/components/common/VnSummaryDialog.vue @@ -10,9 +10,9 @@ defineProps({ type: Object, required: true, }, - moduleClass: { + width: { type: String, - default: 'defaultSummary', + default: 'md-width', }, }); @@ -22,18 +22,18 @@ const { dialogRef, onDialogHide } = useDialogPluginComponent(); diff --git a/src/components/ui/CardDescriptor.vue b/src/components/ui/CardDescriptor.vue index 31fd13803..43dc15e9b 100644 --- a/src/components/ui/CardDescriptor.vue +++ b/src/components/ui/CardDescriptor.vue @@ -37,9 +37,9 @@ const $props = defineProps({ type: Object, default: null, }, - moduleClass: { + width: { type: String, - default: 'defaultSummary', + default: 'md-width', }, }); @@ -133,9 +133,7 @@ const toModule = computed(() => { @on-fetch="setData" :summary="$props.summary" data-key="customer" - :module-class="'largeSummary'" + width="lg-width" >