This commit is contained in:
Warunee Tamkoo 2025-03-20 16:22:01 +07:00
parent 06c7083eff
commit 640bfefe13
2 changed files with 27 additions and 10 deletions

View file

@ -106,7 +106,9 @@ export const useCounterMixin = defineStore('mixin', () => {
ok?: OkCallback,
title?: string, // ถ้ามี cancel action ใส่เป็น null
desc?: string, // ถ้ามี cancel action ใส่เป็น null
cancel?: CancelCallback
cancel?: CancelCallback,
color?: string,
okText?: string
) {
q.dialog({
component: CustomComponent,
@ -117,8 +119,8 @@ export const useCounterMixin = defineStore('mixin', () => {
? desc
: 'ต้องการยืนยันการบันทึกข้อมูลนี้ใช่หรือไม่?',
icon: 'info',
color: 'public',
textOk: 'ตกลง',
color: color ? color : 'public',
textOk: okText ? okText : 'ตกลง',
onlycancel: false,
},
})