refactor: dialog

This commit is contained in:
Methapon2001 2023-12-07 09:42:36 +07:00
parent 8193b4f80d
commit 4f9ca4bd17
No known key found for this signature in database
GPG key ID: 849924FEF46BD132

View file

@ -15,19 +15,23 @@ defineEmits(['update:notification', 'confirm', 'cancel'])
>
<q-card style="width: 400px">
<q-card-section>
<div class="text-h6">
<q-icon
name="error"
color="warning"
size="2.5rem"
/>
<div class="flex items-center" style="flex-wrap: nowrap">
<div class="q-pa-sm">
<div style="border-radius: 50%" class="bg-secondary q-pa-sm">
<q-icon name="mdi-alert-outline" color="warning" 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 class="q-pt-none">
หากดำเนนการตอขอมลจะถกเขยนท
</q-card-section>
<q-card-actions align="right" class="bg-white text-primary">
<q-space />
<q-btn
@ -37,10 +41,9 @@ defineEmits(['update:notification', 'confirm', 'cancel'])
@click="() => $emit('cancel')"
/>
<q-btn
flat
label="ดำเนินการต่อ"
v-close-popup
class="text-red"
color="warning"
@click="() => $emit('confirm')"
/>
</q-card-actions>