fix: missing component commit

This commit is contained in:
Methapon2001 2023-11-29 15:27:08 +07:00
parent fff9d62d80
commit 6d8b8600ac
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -0,0 +1,49 @@
<script lang="ts" setup>
defineProps<{
notification: boolean
}>()
defineEmits(['update:notification', 'confirm', 'cancel'])
</script>
<template>
<q-dialog
:model-value="notification"
@update:model-value="(v) => $emit('update:notification', v)"
transition-show="scale"
transition-hide="scale"
>
<q-card style="width: 400px">
<q-card-section>
<div class="text-h6">
<q-icon
name="error"
color="warning"
size="2.5rem"
/>
</div>
</q-card-section>
<q-card-section class="q-pt-none">
หากดำเนนการตอขอมลจะถกเขยนท
</q-card-section>
<q-card-actions align="right" class="bg-white text-primary">
<q-space />
<q-btn
flat
label="ยกเลิก"
v-close-popup
@click="() => $emit('cancel')"
/>
<q-btn
flat
label="ดำเนินการต่อ"
v-close-popup
class="text-red"
@click="() => $emit('confirm')"
/>
</q-card-actions>
</q-card>
</q-dialog>
</template>