UNPKG

6.36 kBTypeScriptView Raw
1import { type PropType, type ExtractPropTypes } from 'vue';
2import type { DialogTheme, DialogAction, DialogMessage, DialogMessageAlign } from './types';
3export declare const dialogProps: {
4 show: BooleanConstructor;
5 zIndex: (NumberConstructor | StringConstructor)[];
6 overlay: {
7 type: BooleanConstructor;
8 default: true;
9 };
10 duration: (NumberConstructor | StringConstructor)[];
11 teleport: PropType<import("vue").TeleportProps["to"]>;
12 lockScroll: {
13 type: BooleanConstructor;
14 default: true;
15 };
16 lazyRender: {
17 type: BooleanConstructor;
18 default: true;
19 };
20 beforeClose: PropType<import("../utils").Interceptor>;
21 overlayStyle: PropType<import("vue").CSSProperties>;
22 overlayClass: PropType<unknown>;
23 transitionAppear: BooleanConstructor;
24 closeOnClickOverlay: {
25 type: BooleanConstructor;
26 default: true;
27 };
28} & {
29 title: StringConstructor;
30 theme: PropType<DialogTheme>;
31 width: (NumberConstructor | StringConstructor)[];
32 message: PropType<DialogMessage>;
33 callback: PropType<(action?: DialogAction) => void>;
34 allowHtml: BooleanConstructor;
35 className: PropType<unknown>;
36 transition: {
37 type: PropType<string>;
38 default: string;
39 };
40 messageAlign: PropType<DialogMessageAlign>;
41 closeOnPopstate: {
42 type: BooleanConstructor;
43 default: true;
44 };
45 showCancelButton: BooleanConstructor;
46 cancelButtonText: StringConstructor;
47 cancelButtonColor: StringConstructor;
48 cancelButtonDisabled: BooleanConstructor;
49 confirmButtonText: StringConstructor;
50 confirmButtonColor: StringConstructor;
51 confirmButtonDisabled: BooleanConstructor;
52 showConfirmButton: {
53 type: BooleanConstructor;
54 default: true;
55 };
56 closeOnClickOverlay: BooleanConstructor;
57};
58export type DialogProps = ExtractPropTypes<typeof dialogProps>;
59declare const _default: import("vue").DefineComponent<ExtractPropTypes<{
60 show: BooleanConstructor;
61 zIndex: (NumberConstructor | StringConstructor)[];
62 overlay: {
63 type: BooleanConstructor;
64 default: true;
65 };
66 duration: (NumberConstructor | StringConstructor)[];
67 teleport: PropType<import("vue").TeleportProps["to"]>;
68 lockScroll: {
69 type: BooleanConstructor;
70 default: true;
71 };
72 lazyRender: {
73 type: BooleanConstructor;
74 default: true;
75 };
76 beforeClose: PropType<import("../utils").Interceptor>;
77 overlayStyle: PropType<import("vue").CSSProperties>;
78 overlayClass: PropType<unknown>;
79 transitionAppear: BooleanConstructor;
80 closeOnClickOverlay: {
81 type: BooleanConstructor;
82 default: true;
83 };
84} & {
85 title: StringConstructor;
86 theme: PropType<DialogTheme>;
87 width: (NumberConstructor | StringConstructor)[];
88 message: PropType<DialogMessage>;
89 callback: PropType<(action?: DialogAction) => void>;
90 allowHtml: BooleanConstructor;
91 className: PropType<unknown>;
92 transition: {
93 type: PropType<string>;
94 default: string;
95 };
96 messageAlign: PropType<DialogMessageAlign>;
97 closeOnPopstate: {
98 type: BooleanConstructor;
99 default: true;
100 };
101 showCancelButton: BooleanConstructor;
102 cancelButtonText: StringConstructor;
103 cancelButtonColor: StringConstructor;
104 cancelButtonDisabled: BooleanConstructor;
105 confirmButtonText: StringConstructor;
106 confirmButtonColor: StringConstructor;
107 confirmButtonDisabled: BooleanConstructor;
108 showConfirmButton: {
109 type: BooleanConstructor;
110 default: true;
111 };
112 closeOnClickOverlay: BooleanConstructor;
113}>, () => 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<ExtractPropTypes<{
114 show: BooleanConstructor;
115 zIndex: (NumberConstructor | StringConstructor)[];
116 overlay: {
117 type: BooleanConstructor;
118 default: true;
119 };
120 duration: (NumberConstructor | StringConstructor)[];
121 teleport: PropType<import("vue").TeleportProps["to"]>;
122 lockScroll: {
123 type: BooleanConstructor;
124 default: true;
125 };
126 lazyRender: {
127 type: BooleanConstructor;
128 default: true;
129 };
130 beforeClose: PropType<import("../utils").Interceptor>;
131 overlayStyle: PropType<import("vue").CSSProperties>;
132 overlayClass: PropType<unknown>;
133 transitionAppear: BooleanConstructor;
134 closeOnClickOverlay: {
135 type: BooleanConstructor;
136 default: true;
137 };
138} & {
139 title: StringConstructor;
140 theme: PropType<DialogTheme>;
141 width: (NumberConstructor | StringConstructor)[];
142 message: PropType<DialogMessage>;
143 callback: PropType<(action?: DialogAction) => void>;
144 allowHtml: BooleanConstructor;
145 className: PropType<unknown>;
146 transition: {
147 type: PropType<string>;
148 default: string;
149 };
150 messageAlign: PropType<DialogMessageAlign>;
151 closeOnPopstate: {
152 type: BooleanConstructor;
153 default: true;
154 };
155 showCancelButton: BooleanConstructor;
156 cancelButtonText: StringConstructor;
157 cancelButtonColor: StringConstructor;
158 cancelButtonDisabled: BooleanConstructor;
159 confirmButtonText: StringConstructor;
160 confirmButtonColor: StringConstructor;
161 confirmButtonDisabled: BooleanConstructor;
162 showConfirmButton: {
163 type: BooleanConstructor;
164 default: true;
165 };
166 closeOnClickOverlay: BooleanConstructor;
167}>> & Readonly<{
168 onKeydown?: ((...args: any[]) => any) | undefined;
169 "onUpdate:show"?: ((...args: any[]) => any) | undefined;
170 onCancel?: ((...args: any[]) => any) | undefined;
171 onConfirm?: ((...args: any[]) => any) | undefined;
172}>, {
173 overlay: boolean;
174 show: boolean;
175 lockScroll: boolean;
176 lazyRender: boolean;
177 transitionAppear: boolean;
178 closeOnClickOverlay: boolean;
179 transition: string;
180 closeOnPopstate: boolean;
181 allowHtml: boolean;
182 showCancelButton: boolean;
183 cancelButtonDisabled: boolean;
184 confirmButtonDisabled: boolean;
185 showConfirmButton: boolean;
186}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
187export default _default;
188
\No newline at end of file