UNPKG

5.34 kBTypeScriptView Raw
1export declare const Dialog: import("../utils").WithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2 show: BooleanConstructor;
3 zIndex: (NumberConstructor | StringConstructor)[];
4 overlay: {
5 type: BooleanConstructor;
6 default: true;
7 };
8 duration: (NumberConstructor | StringConstructor)[];
9 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
10 lockScroll: {
11 type: BooleanConstructor;
12 default: true;
13 };
14 lazyRender: {
15 type: BooleanConstructor;
16 default: true;
17 };
18 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
19 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
20 overlayClass: import("vue").PropType<unknown>;
21 transitionAppear: BooleanConstructor;
22 closeOnClickOverlay: {
23 type: BooleanConstructor;
24 default: true;
25 };
26} & {
27 title: StringConstructor;
28 theme: import("vue").PropType<import("./types").DialogTheme>;
29 width: (NumberConstructor | StringConstructor)[];
30 message: import("vue").PropType<import("./types").DialogMessage>;
31 callback: import("vue").PropType<(action?: import("./types").DialogAction) => void>;
32 allowHtml: BooleanConstructor;
33 className: import("vue").PropType<unknown>;
34 transition: {
35 type: import("vue").PropType<string>;
36 default: string;
37 };
38 messageAlign: import("vue").PropType<import("./types").DialogMessageAlign>;
39 closeOnPopstate: {
40 type: BooleanConstructor;
41 default: true;
42 };
43 showCancelButton: BooleanConstructor;
44 cancelButtonText: StringConstructor;
45 cancelButtonColor: StringConstructor;
46 cancelButtonDisabled: BooleanConstructor;
47 confirmButtonText: StringConstructor;
48 confirmButtonColor: StringConstructor;
49 confirmButtonDisabled: BooleanConstructor;
50 showConfirmButton: {
51 type: BooleanConstructor;
52 default: true;
53 };
54 closeOnClickOverlay: BooleanConstructor;
55}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("cancel" | "keydown" | "update:show" | "confirm")[], "cancel" | "keydown" | "update:show" | "confirm", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
56 show: BooleanConstructor;
57 zIndex: (NumberConstructor | StringConstructor)[];
58 overlay: {
59 type: BooleanConstructor;
60 default: true;
61 };
62 duration: (NumberConstructor | StringConstructor)[];
63 teleport: import("vue").PropType<import("vue").TeleportProps["to"]>;
64 lockScroll: {
65 type: BooleanConstructor;
66 default: true;
67 };
68 lazyRender: {
69 type: BooleanConstructor;
70 default: true;
71 };
72 beforeClose: import("vue").PropType<import("../utils").Interceptor>;
73 overlayStyle: import("vue").PropType<import("vue").CSSProperties>;
74 overlayClass: import("vue").PropType<unknown>;
75 transitionAppear: BooleanConstructor;
76 closeOnClickOverlay: {
77 type: BooleanConstructor;
78 default: true;
79 };
80} & {
81 title: StringConstructor;
82 theme: import("vue").PropType<import("./types").DialogTheme>;
83 width: (NumberConstructor | StringConstructor)[];
84 message: import("vue").PropType<import("./types").DialogMessage>;
85 callback: import("vue").PropType<(action?: import("./types").DialogAction) => void>;
86 allowHtml: BooleanConstructor;
87 className: import("vue").PropType<unknown>;
88 transition: {
89 type: import("vue").PropType<string>;
90 default: string;
91 };
92 messageAlign: import("vue").PropType<import("./types").DialogMessageAlign>;
93 closeOnPopstate: {
94 type: BooleanConstructor;
95 default: true;
96 };
97 showCancelButton: BooleanConstructor;
98 cancelButtonText: StringConstructor;
99 cancelButtonColor: StringConstructor;
100 cancelButtonDisabled: BooleanConstructor;
101 confirmButtonText: StringConstructor;
102 confirmButtonColor: StringConstructor;
103 confirmButtonDisabled: BooleanConstructor;
104 showConfirmButton: {
105 type: BooleanConstructor;
106 default: true;
107 };
108 closeOnClickOverlay: BooleanConstructor;
109}>> & Readonly<{
110 onKeydown?: ((...args: any[]) => any) | undefined;
111 "onUpdate:show"?: ((...args: any[]) => any) | undefined;
112 onCancel?: ((...args: any[]) => any) | undefined;
113 onConfirm?: ((...args: any[]) => any) | undefined;
114}>, {
115 overlay: boolean;
116 show: boolean;
117 lockScroll: boolean;
118 lazyRender: boolean;
119 transitionAppear: boolean;
120 closeOnClickOverlay: boolean;
121 transition: string;
122 closeOnPopstate: boolean;
123 allowHtml: boolean;
124 showCancelButton: boolean;
125 cancelButtonDisabled: boolean;
126 confirmButtonDisabled: boolean;
127 showConfirmButton: boolean;
128}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
129export default Dialog;
130export { dialogProps } from './Dialog';
131export { showDialog, closeDialog, showConfirmDialog, setDialogDefaultOptions, resetDialogDefaultOptions, } from './function-call';
132export type { DialogProps } from './Dialog';
133export type { DialogTheme, DialogMessage, DialogOptions, DialogThemeVars, DialogMessageAlign, } from './types';
134declare module 'vue' {
135 interface GlobalComponents {
136 VanDialog: typeof Dialog;
137 }
138}
139
\No newline at end of file