2023-11-28 09:24:20 +07:00
|
|
|
<script setup lang="ts">
|
2023-11-28 16:30:48 +07:00
|
|
|
defineEmits(['confirm', 'cancel'])
|
2023-11-28 09:24:20 +07:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
2023-11-28 16:30:48 +07:00
|
|
|
<q-dialog persistent transition-show="scale" transition-hide="scale">
|
2023-11-28 09:24:20 +07:00
|
|
|
<q-card style="width: 400px">
|
|
|
|
|
<q-card-section>
|
2023-11-28 16:30:48 +07:00
|
|
|
<span class="text-h6">
|
|
|
|
|
<q-icon name="error" color="negative" size="2.5rem" />แจ้งเตือนการลบ
|
|
|
|
|
</span>
|
2023-11-28 09:24:20 +07:00
|
|
|
</q-card-section>
|
|
|
|
|
|
|
|
|
|
<q-card-section class="q-pt-none">
|
|
|
|
|
ถ้าดำเนินการต่อจะทำการลบ
|
|
|
|
|
</q-card-section>
|
|
|
|
|
|
2023-11-28 09:24:20 +07:00
|
|
|
<q-card-actions align="right" class="bg-white text-primary">
|
2023-11-28 09:24:20 +07:00
|
|
|
<q-space />
|
|
|
|
|
<q-btn
|
|
|
|
|
label="ยกเลิก"
|
2023-11-28 16:30:48 +07:00
|
|
|
flat
|
2023-11-28 09:24:20 +07:00
|
|
|
v-close-popup
|
2023-11-28 16:30:48 +07:00
|
|
|
@click="() => $emit('cancel')"
|
2023-11-28 09:24:20 +07:00
|
|
|
/>
|
|
|
|
|
|
|
|
|
|
<q-btn
|
|
|
|
|
flat
|
|
|
|
|
v-close-popup
|
2023-11-28 16:30:48 +07:00
|
|
|
label="ลบ"
|
2023-11-28 09:24:20 +07:00
|
|
|
class="text-red"
|
2023-11-28 16:30:48 +07:00
|
|
|
@click="() => $emit('confirm')"
|
2023-11-28 09:24:20 +07:00
|
|
|
/>
|
|
|
|
|
</q-card-actions>
|
|
|
|
|
</q-card>
|
|
|
|
|
</q-dialog>
|
|
|
|
|
</template>
|