统一模型库确认框调用方式
This commit is contained in:
23
web/src/vendor/w2ui.ts
vendored
23
web/src/vendor/w2ui.ts
vendored
@@ -28,6 +28,29 @@ type W2Utils = {
|
||||
title?: string;
|
||||
text?: string;
|
||||
}): unknown;
|
||||
confirm(options: {
|
||||
box?: string | HTMLElement;
|
||||
title?: string;
|
||||
text?: string;
|
||||
btn_yes?: {
|
||||
text?: string;
|
||||
class?: string;
|
||||
style?: string;
|
||||
attrs?: string;
|
||||
};
|
||||
btn_no?: {
|
||||
text?: string;
|
||||
class?: string;
|
||||
style?: string;
|
||||
attrs?: string;
|
||||
};
|
||||
}): W2ConfirmPromise;
|
||||
};
|
||||
|
||||
type W2ConfirmPromise = {
|
||||
yes(callback: (event: unknown) => void): W2ConfirmPromise;
|
||||
no(callback: (event: unknown) => void): W2ConfirmPromise;
|
||||
close(callback: (event: unknown) => void): W2ConfirmPromise;
|
||||
};
|
||||
|
||||
type W2LayoutOptions = {
|
||||
|
||||
Reference in New Issue
Block a user