Files
eventmaster/software/src/components/basics/actionDialog.vue
2024-10-06 19:30:12 +02:00

31 lines
519 B
Vue

<script setup lang="ts">
import { ModelRef } from 'vue';
const showDialog: ModelRef<boolean> = defineModel()
defineProps({
title: String,
icon: {
type: String
},
subtitle: {
type: String
}
})
</script>
<template>
<v-dialog max-width="1200" v-model="showDialog">
<v-card
:title="title"
:subtitle="subtitle"
:prepend-icon="icon"
>
<slot></slot>
<template #actions>
<slot name="actions"></slot>
</template>
</v-card>
</v-dialog>
</template>