mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-25 16:25:13 +00:00
refactor
This commit is contained in:
parent
8785e1c3a4
commit
98f1d93628
1 changed files with 5 additions and 1 deletions
|
@ -214,7 +214,11 @@ export function modalPageWindow(path: string) {
|
||||||
}, {}, 'closed');
|
}, {}, 'closed');
|
||||||
}
|
}
|
||||||
|
|
||||||
export function dialog(props: Record<string, any>) {
|
export function dialog(props: {
|
||||||
|
type: 'error' | 'info' | 'success' | 'warning' | 'waiting' | 'help';
|
||||||
|
title?: string | null;
|
||||||
|
text?: string | null;
|
||||||
|
}) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
popup(import('@client/components/dialog.vue'), props, {
|
popup(import('@client/components/dialog.vue'), props, {
|
||||||
done: result => {
|
done: result => {
|
||||||
|
|
Loading…
Reference in a new issue