first commit
This commit is contained in:
commit
e8ec46d19f
60 changed files with 13652 additions and 0 deletions
19
src/stores/utils/index.ts
Normal file
19
src/stores/utils/index.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import { Dialog } from 'quasar';
|
||||
import GlobalDialog from 'components/GlobalDialog.vue';
|
||||
|
||||
export function dialog(opts: {
|
||||
title: string;
|
||||
message: string;
|
||||
color?: string;
|
||||
icon?: string;
|
||||
persistent?: boolean;
|
||||
actionText?: string;
|
||||
cancelText?: string;
|
||||
action?: (...args: unknown[]) => unknown;
|
||||
cancel?: (...args: unknown[]) => unknown;
|
||||
}) {
|
||||
Dialog.create({
|
||||
component: GlobalDialog,
|
||||
componentProps: opts,
|
||||
});
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue