refactor: delete dialog
This commit is contained in:
parent
b73b47eb74
commit
534be038f6
1 changed files with 16 additions and 10 deletions
|
|
@ -21,15 +21,22 @@ const props = withDefaults(
|
||||||
>
|
>
|
||||||
<q-card style="width: 400px">
|
<q-card style="width: 400px">
|
||||||
<q-card-section>
|
<q-card-section>
|
||||||
<span class="text-h6">
|
<div class="flex items-center">
|
||||||
<q-icon name="error" color="negative" size="2.5rem" />แจ้งเตือนการลบ
|
<div class="q-pa-sm">
|
||||||
</span>
|
<div style="border-radius: 50%" class="bg-secondary q-pa-sm">
|
||||||
|
<q-icon
|
||||||
|
name="mdi-trash-can-outline"
|
||||||
|
color="negative"
|
||||||
|
size="2.5rem"
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div>
|
||||||
|
<h6 class="q-my-none">ยืนยันการลบข้อมูล</h6>
|
||||||
|
<p class="q-my-none">ต้องการยืนยันการลบข้อมูลนี้หรือไม่</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
</q-card-section>
|
</q-card-section>
|
||||||
|
|
||||||
<q-card-section class="q-pt-none">
|
|
||||||
ถ้าดำเนินการต่อจะทำการลบ
|
|
||||||
</q-card-section>
|
|
||||||
|
|
||||||
<q-card-actions align="right" class="bg-white text-primary">
|
<q-card-actions align="right" class="bg-white text-primary">
|
||||||
<q-space />
|
<q-space />
|
||||||
<q-btn
|
<q-btn
|
||||||
|
|
@ -41,10 +48,9 @@ const props = withDefaults(
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<q-btn
|
<q-btn
|
||||||
flat
|
color="negative"
|
||||||
v-close-popup
|
v-close-popup
|
||||||
label="ลบ"
|
label="ลบ"
|
||||||
class="text-red"
|
|
||||||
@click="() => $emit('confirm')"
|
@click="() => $emit('confirm')"
|
||||||
id="dialogDeleteConfirm"
|
id="dialogDeleteConfirm"
|
||||||
/>
|
/>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue