refactor: no footer (from dialog)

This commit is contained in:
puriphatt 2024-04-22 14:16:20 +07:00
parent f2168a9e59
commit 2c8e42aaa5

View file

@ -11,6 +11,7 @@ defineProps<{
branchStatus?: string; branchStatus?: string;
badgeLabel?: string; badgeLabel?: string;
badgeClass?: string; badgeClass?: string;
noFooter?: boolean;
submit?: (...args: unknown[]) => void; submit?: (...args: unknown[]) => void;
close?: (...args: unknown[]) => void; close?: (...args: unknown[]) => void;
}>(); }>();
@ -92,7 +93,7 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
> >
<slot name="information"></slot> <slot name="information"></slot>
<slot name="person"></slot> <slot name="person"></slot>
<slot name="address"> <slot v-if="!noFooter" name="address">
<FormAddress <FormAddress
dense dense
outlined outlined
@ -125,7 +126,10 @@ const zipCode = defineModel<string>('zipCode', { default: '' });
</div> </div>
<!-- footer --> <!-- footer -->
<div class="form-footer q-py-sm q-pr-lg text-right q-gutter-x-lg"> <div
v-if="!noFooter"
class="form-footer q-py-sm q-pr-lg text-right q-gutter-x-lg"
>
<q-btn <q-btn
dense dense
outline outline