item handling

This commit is contained in:
2025-06-16 22:06:15 +02:00
parent 0b8f2c5532
commit 2972bb9e91
63 changed files with 3975 additions and 979 deletions

View File

@ -1,7 +1,8 @@
<template>
<UiDialog
v-model:open="open"
:title
@close="onAbort"
v-model:open="open"
>
<template #trigger>
<slot name="trigger" />
@ -33,19 +34,19 @@
</template>
<script setup lang="ts">
defineProps<{ confirmLabel?: string; abortLabel?: string }>()
defineProps<{ confirmLabel?: string; abortLabel?: string; title?: string }>()
const open = defineModel<boolean>('open', { default: false })
const { t } = useI18n()
const emit = defineEmits(['confirm', 'abort'])
const onAbort = () => {
emit('abort')
open.value = false
}
const onConfirm = () => {
emit('confirm')
open.value = false
}
</script>