feat: history dialog

This commit is contained in:
puriphatt 2024-06-27 10:23:54 +00:00
parent 259d7e224d
commit 2d8b9ebb92
5 changed files with 233 additions and 9 deletions

View file

@ -22,10 +22,12 @@ defineProps<{
noBg?: boolean;
detailColumnCount?: number;
canEditProfile?: boolean;
history?: boolean;
}>();
defineEmits<{
(e: 'editProfile'): void;
(e: 'history', id: string): void;
(e: 'deleteCard', id: string): void;
(
e: 'updateCard',
@ -68,12 +70,24 @@ defineEmits<{
<!-- kebab menu -->
<div class="full-width text-right" v-if="!noAction">
<q-btn
v-if="history"
flat
round
padding="sm"
class="app-text-muted-2"
padding="xs"
icon="mdi-history"
size="sm"
@click.stop="$emit('history', v.id)"
/>
<q-btn
flat
round
padding="xs"
class="app-text-muted-2"
icon="mdi-dots-vertical"
size="sm"
@click.stop=""
@click.stop
>
<q-menu class="bordered">
<q-list v-close-popup>