รวมไฟล์mixin
This commit is contained in:
parent
15572be220
commit
b22880e5cb
1 changed files with 30 additions and 30 deletions
|
|
@ -452,36 +452,6 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
.onDismiss(() => {});
|
.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(
|
function modalConfirm(
|
||||||
q: any,
|
q: any,
|
||||||
title: string,
|
title: string,
|
||||||
|
|
@ -512,6 +482,36 @@ export const useCounterMixin = defineStore("mixin", () => {
|
||||||
.onDismiss(() => {});
|
.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) {
|
function modalError(q: any, title: string, message: string, ok?: Function) {
|
||||||
// q.dialog({
|
// q.dialog({
|
||||||
// title: `<span class="text-red">${title}</span>`,
|
// title: `<span class="text-red">${title}</span>`,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue