รวมไฟล์mixin

This commit is contained in:
Kittapath 2023-07-10 10:26:45 +07:00
parent 15572be220
commit b22880e5cb

View file

@ -452,36 +452,6 @@ export const useCounterMixin = defineStore("mixin", () => {
.onDismiss(() => {});
}
function modalWarning(q: any, title: string, message: string, ok?: Function) {
// q.dialog({
// title: `<span class="text-red">${title}</span>`,
// message: `<span class="text-black">${message}</span>`,
// ok: {
// push: true,
// color: "primary",
// },
// focus: "none",
// persistent: true,
// html: true,
// })
// .onOk(() => {
// if (ok != undefined) ok();
// })
// .onCancel(() => {})
// .onDismiss(() => {});
q.dialog({
component: CustomComponent,
componentProps: {
title: title,
message: message,
icon: "warning",
color: "warning",
onlycancel: true,
},
});
}
function modalConfirm(
q: any,
title: string,
@ -512,6 +482,36 @@ export const useCounterMixin = defineStore("mixin", () => {
.onDismiss(() => {});
}
function modalWarning(q: any, title: string, message: string, ok?: Function) {
// q.dialog({
// title: `<span class="text-red">${title}</span>`,
// message: `<span class="text-black">${message}</span>`,
// ok: {
// push: true,
// color: "primary",
// },
// focus: "none",
// persistent: true,
// html: true,
// })
// .onOk(() => {
// if (ok != undefined) ok();
// })
// .onCancel(() => {})
// .onDismiss(() => {});
q.dialog({
component: CustomComponent,
componentProps: {
title: title,
message: message,
icon: "warning",
color: "warning",
onlycancel: true,
},
});
}
function modalError(q: any, title: string, message: string, ok?: Function) {
// q.dialog({
// title: `<span class="text-red">${title}</span>`,