feat: add reject cancel option to QuotationCard and KebabAction components
This commit is contained in:
parent
ab51d7a8db
commit
f850511173
2 changed files with 39 additions and 3 deletions
|
|
@ -24,6 +24,7 @@ defineProps<{
|
|||
hideAction?: boolean;
|
||||
useCancel?: boolean;
|
||||
disableCancel?: boolean;
|
||||
useRejectCancel?: boolean;
|
||||
|
||||
customData?: {
|
||||
label: string;
|
||||
|
|
@ -41,6 +42,7 @@ defineEmits<{
|
|||
(e: 'example'): void;
|
||||
(e: 'preview'): void;
|
||||
(e: 'cancel'): void;
|
||||
(e: 'rejectCancel'): void;
|
||||
}>();
|
||||
|
||||
const rand = Math.random();
|
||||
|
|
@ -62,15 +64,16 @@ const rand = Math.random();
|
|||
solid
|
||||
/>
|
||||
</div>
|
||||
<div class="q-mr-sm" style="font-size: 90%">
|
||||
<div class="q-mr-sm col row q-gutter-xs" style="font-size: 90%">
|
||||
<BadgeComponent
|
||||
:title="status"
|
||||
:hsla-color="badgeColor || '--blue-6-hsl'"
|
||||
:border="urgent"
|
||||
/>
|
||||
<slot name="badge"></slot>
|
||||
</div>
|
||||
|
||||
<nav class="col text-right no-wrap">
|
||||
<nav class="text-right no-wrap">
|
||||
<q-btn
|
||||
v-if="!hidePreview"
|
||||
flat
|
||||
|
|
@ -97,6 +100,7 @@ const rand = Math.random();
|
|||
hide-toggle
|
||||
:use-cancel
|
||||
:disable-cancel
|
||||
:use-reject-cancel
|
||||
:hide-delete="hideKebabDelete"
|
||||
:hide-view="hideKebabView"
|
||||
:hide-edit="hideKebabEdit"
|
||||
|
|
@ -106,6 +110,7 @@ const rand = Math.random();
|
|||
@upload="$emit('upload')"
|
||||
@delete="$emit('delete')"
|
||||
@cancel="$emit('cancel')"
|
||||
@reject-cancel="$emit('rejectCancel')"
|
||||
/>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue