refactor: add DialogDuplicateDate
This commit is contained in:
parent
a9b323cf33
commit
c5e7e477be
2 changed files with 151 additions and 0 deletions
|
|
@ -1,5 +1,6 @@
|
|||
import { Dialog, QSelect, Notify, QNotifyCreateOptions } from 'quasar';
|
||||
import GlobalDialog from 'components/GlobalDialog.vue';
|
||||
import DialogDuplicateData from 'components/DialogDuplicateData.vue';
|
||||
import { ComposerTranslation, useI18n } from 'vue-i18n';
|
||||
import { defineStore } from 'pinia';
|
||||
import { Ref, ref } from 'vue';
|
||||
|
|
@ -26,6 +27,20 @@ export function dialog(opts: {
|
|||
});
|
||||
}
|
||||
|
||||
export function dialogCheckData(opts: {
|
||||
checkData: (...args: unknown[]) => {
|
||||
oldData: { filName: string; value: string }[];
|
||||
newData: { filName: string; value: string }[];
|
||||
};
|
||||
action?: (...args: unknown[]) => unknown;
|
||||
cancel?: (...args: unknown[]) => unknown;
|
||||
}) {
|
||||
Dialog.create({
|
||||
component: DialogDuplicateData,
|
||||
componentProps: opts,
|
||||
});
|
||||
}
|
||||
|
||||
export function dialogWarningClose(
|
||||
t: ComposerTranslation,
|
||||
opts: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue