feat: add emit event

This commit is contained in:
Methapon2001 2024-04-18 16:42:23 +07:00
parent 05a6bed15b
commit a47ba20aef

View file

@ -25,6 +25,7 @@ defineEmits<{
(e: 'deleteCard', id: string): void;
(e: 'updateCard', id: string): void;
(e: 'enterCard', id: string): void;
(e: 'toggleStatus', id: string): void;
}>();
</script>
@ -106,6 +107,7 @@ defineEmits<{
dense
color="primary"
size="xs"
@click="$emit('toggleStatus', v.id)"
:model-value="!v.disabled"
val="xs"
padding="none"