x-next 0.0.0-alpha.3 → 0.0.0-alpha.4
Sign up to get free protection for your applications and to get access to all the features.
- package/README.md +1 -1
- package/dist/index.umd.js +1 -0
- package/package.json +5 -4
- package/x-next/_hooks/use-overflow.d.ts +0 -5
- package/x-next/_hooks/use-popup-manager.d.ts +0 -11
- package/x-next/_props/css.d.ts +0 -13
- package/x-next/_props/global.d.ts +0 -1
- package/x-next/_utils/config.d.ts +0 -9
- package/x-next/_utils/convert-case.d.ts +0 -3
- package/x-next/_utils/dom.d.ts +0 -10
- package/x-next/_utils/helpers.d.ts +0 -12
- package/x-next/_utils/icon.d.ts +0 -59
- package/x-next/_utils/is.d.ts +0 -22
- package/x-next/_utils/keyboard.d.ts +0 -24
- package/x-next/_utils/number.d.ts +0 -0
- package/x-next/_utils/vue-eco.d.ts +0 -28
- package/x-next/componets/button/index.vue.d.ts +0 -162
- package/x-next/componets/button/props.d.ts +0 -45
- package/x-next/componets/dialog/index.vue.d.ts +0 -221
- package/x-next/componets/dialog/props.d.ts +0 -83
- package/x-next/componets/dialog/use-props.d.ts +0 -33
- package/x-next/componets/dialog/use.d.ts +0 -3
- package/x-next/componets/dialog/warp.d.ts +0 -2
- package/x-next/componets/message/index.vue.d.ts +0 -387
- package/x-next/componets/message/props.d.ts +0 -31
- package/x-next/componets/message/warp.d.ts +0 -3
- package/x-next/componets/message-box/index.d.ts +0 -3
- package/x-next/componets/message-box/props.d.ts +0 -52
- package/x-next/componets/message-box/warp.d.ts +0 -2
- package/x-next/componets/notification/index.vue.d.ts +0 -160
- package/x-next/componets/notification/props.d.ts +0 -54
- package/x-next/componets/notification/warp.d.ts +0 -3
- package/x-next/componets/space/index.d.ts +0 -42
- package/x-next/componets/tag-cloud/index.d.ts +0 -0
- package/x-next/componets/trend-chart/components/trend-chart-curve.d.ts +0 -114
- package/x-next/componets/trend-chart/components/trend-chart-grid.d.ts +0 -55
- package/x-next/componets/trend-chart/components/trend-chart-labels.d.ts +0 -22
- package/x-next/componets/trend-chart/components/trend-chart.d.ts +0 -270
- package/x-next/componets/trend-chart/helpers/genPath.d.ts +0 -8
- package/x-next/componets/trend-chart/helpers/genPoints.d.ts +0 -3
- package/x-next/componets/trend-chart/helpers/getPadding.d.ts +0 -7
- package/x-next/componets/trend-chart/helpers/validatePadding.d.ts +0 -2
- package/x-next/componets/trend-chart/index.d.ts +0 -2
- package/x-next/componets/trend-chart/props.d.ts +0 -206
- package/x-next/icons/animation/animation-loading.vue.d.ts +0 -55
- package/x-next/icons/default/check-circle-fill.vue.d.ts +0 -55
- package/x-next/icons/default/close-circle-fill.vue.d.ts +0 -55
- package/x-next/icons/default/exclamation-circle-fill.vue.d.ts +0 -55
- package/x-next/icons/default/info-circle-fill.vue.d.ts +0 -55
- package/x-next/icons/default/minus-circle-fill.vue.d.ts +0 -55
- package/x-next/icons/index.d.ts +0 -7
- package/x-next/style.css +0 -1
- package/x-next/ui.d.ts +0 -5
- package/x-next/ui.js +0 -1357
- package/x-next/ui.umd.cjs +0 -1
@@ -1,387 +0,0 @@
|
|
1
|
-
import { PropType } from 'vue';
|
2
|
-
import { IMessageType, IMessage } from './props';
|
3
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
4
|
-
id: {
|
5
|
-
type: StringConstructor;
|
6
|
-
default: string;
|
7
|
-
};
|
8
|
-
message: {
|
9
|
-
type: PropType<IMessage>;
|
10
|
-
default: string;
|
11
|
-
};
|
12
|
-
type: {
|
13
|
-
type: PropType<IMessageType>;
|
14
|
-
default: string;
|
15
|
-
};
|
16
|
-
duration: {
|
17
|
-
type: NumberConstructor;
|
18
|
-
default: number;
|
19
|
-
};
|
20
|
-
center: {
|
21
|
-
type: BooleanConstructor;
|
22
|
-
default: boolean;
|
23
|
-
};
|
24
|
-
onClose: {
|
25
|
-
type: PropType<() => void>;
|
26
|
-
default: () => void;
|
27
|
-
};
|
28
|
-
offset: {
|
29
|
-
type: NumberConstructor;
|
30
|
-
default: number;
|
31
|
-
};
|
32
|
-
zIndex: {
|
33
|
-
type: NumberConstructor;
|
34
|
-
default: number;
|
35
|
-
};
|
36
|
-
showClose: {
|
37
|
-
type: BooleanConstructor;
|
38
|
-
default: boolean;
|
39
|
-
};
|
40
|
-
useHTML: BooleanConstructor;
|
41
|
-
popupClass: {
|
42
|
-
type: StringConstructor;
|
43
|
-
default: undefined;
|
44
|
-
};
|
45
|
-
}>, {
|
46
|
-
cn: {
|
47
|
-
block: string;
|
48
|
-
element: (className: string) => string;
|
49
|
-
modifier: (className: string) => string;
|
50
|
-
is: (className: string) => string;
|
51
|
-
};
|
52
|
-
cls: import('vue').ComputedRef<(string | false | undefined)[]>;
|
53
|
-
styles: import('vue').ComputedRef<{
|
54
|
-
top: string;
|
55
|
-
zIndex: number;
|
56
|
-
}>;
|
57
|
-
visible: import('vue').Ref<boolean, boolean>;
|
58
|
-
handleClose: () => void;
|
59
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "destroy"[], "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
60
|
-
id: {
|
61
|
-
type: StringConstructor;
|
62
|
-
default: string;
|
63
|
-
};
|
64
|
-
message: {
|
65
|
-
type: PropType<IMessage>;
|
66
|
-
default: string;
|
67
|
-
};
|
68
|
-
type: {
|
69
|
-
type: PropType<IMessageType>;
|
70
|
-
default: string;
|
71
|
-
};
|
72
|
-
duration: {
|
73
|
-
type: NumberConstructor;
|
74
|
-
default: number;
|
75
|
-
};
|
76
|
-
center: {
|
77
|
-
type: BooleanConstructor;
|
78
|
-
default: boolean;
|
79
|
-
};
|
80
|
-
onClose: {
|
81
|
-
type: PropType<() => void>;
|
82
|
-
default: () => void;
|
83
|
-
};
|
84
|
-
offset: {
|
85
|
-
type: NumberConstructor;
|
86
|
-
default: number;
|
87
|
-
};
|
88
|
-
zIndex: {
|
89
|
-
type: NumberConstructor;
|
90
|
-
default: number;
|
91
|
-
};
|
92
|
-
showClose: {
|
93
|
-
type: BooleanConstructor;
|
94
|
-
default: boolean;
|
95
|
-
};
|
96
|
-
useHTML: BooleanConstructor;
|
97
|
-
popupClass: {
|
98
|
-
type: StringConstructor;
|
99
|
-
default: undefined;
|
100
|
-
};
|
101
|
-
}>> & Readonly<{
|
102
|
-
onDestroy?: ((...args: any[]) => any) | undefined;
|
103
|
-
}>, {
|
104
|
-
message: IMessage;
|
105
|
-
zIndex: number;
|
106
|
-
offset: number;
|
107
|
-
center: boolean;
|
108
|
-
popupClass: string;
|
109
|
-
showClose: boolean;
|
110
|
-
type: "error" | "strong" | "success" | "warning" | "info";
|
111
|
-
onClose: () => void;
|
112
|
-
useHTML: boolean;
|
113
|
-
id: string;
|
114
|
-
duration: number;
|
115
|
-
}, {}, {
|
116
|
-
CloseCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
117
|
-
size: {
|
118
|
-
type: (StringConstructor | NumberConstructor)[];
|
119
|
-
default: undefined;
|
120
|
-
};
|
121
|
-
rotate: {
|
122
|
-
type: NumberConstructor;
|
123
|
-
default: undefined;
|
124
|
-
};
|
125
|
-
spin: {
|
126
|
-
type: BooleanConstructor;
|
127
|
-
default: boolean;
|
128
|
-
};
|
129
|
-
color: {
|
130
|
-
type: StringConstructor;
|
131
|
-
default: undefined;
|
132
|
-
};
|
133
|
-
fillColor: {
|
134
|
-
type: ArrayConstructor;
|
135
|
-
default: undefined;
|
136
|
-
};
|
137
|
-
}>, {
|
138
|
-
cls: import('vue').ComputedRef<(string | {
|
139
|
-
"x-icon-loading": boolean;
|
140
|
-
})[]>;
|
141
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
142
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
143
|
-
size: {
|
144
|
-
type: (StringConstructor | NumberConstructor)[];
|
145
|
-
default: undefined;
|
146
|
-
};
|
147
|
-
rotate: {
|
148
|
-
type: NumberConstructor;
|
149
|
-
default: undefined;
|
150
|
-
};
|
151
|
-
spin: {
|
152
|
-
type: BooleanConstructor;
|
153
|
-
default: boolean;
|
154
|
-
};
|
155
|
-
color: {
|
156
|
-
type: StringConstructor;
|
157
|
-
default: undefined;
|
158
|
-
};
|
159
|
-
fillColor: {
|
160
|
-
type: ArrayConstructor;
|
161
|
-
default: undefined;
|
162
|
-
};
|
163
|
-
}>> & Readonly<{}>, {
|
164
|
-
size: string | number;
|
165
|
-
color: string;
|
166
|
-
rotate: number;
|
167
|
-
spin: boolean;
|
168
|
-
fillColor: unknown[];
|
169
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
170
|
-
CheckCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
171
|
-
size: {
|
172
|
-
type: (StringConstructor | NumberConstructor)[];
|
173
|
-
default: undefined;
|
174
|
-
};
|
175
|
-
rotate: {
|
176
|
-
type: NumberConstructor;
|
177
|
-
default: undefined;
|
178
|
-
};
|
179
|
-
spin: {
|
180
|
-
type: BooleanConstructor;
|
181
|
-
default: boolean;
|
182
|
-
};
|
183
|
-
color: {
|
184
|
-
type: StringConstructor;
|
185
|
-
default: undefined;
|
186
|
-
};
|
187
|
-
fillColor: {
|
188
|
-
type: ArrayConstructor;
|
189
|
-
default: undefined;
|
190
|
-
};
|
191
|
-
}>, {
|
192
|
-
cls: import('vue').ComputedRef<(string | {
|
193
|
-
"x-icon-loading": boolean;
|
194
|
-
})[]>;
|
195
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
196
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
197
|
-
size: {
|
198
|
-
type: (StringConstructor | NumberConstructor)[];
|
199
|
-
default: undefined;
|
200
|
-
};
|
201
|
-
rotate: {
|
202
|
-
type: NumberConstructor;
|
203
|
-
default: undefined;
|
204
|
-
};
|
205
|
-
spin: {
|
206
|
-
type: BooleanConstructor;
|
207
|
-
default: boolean;
|
208
|
-
};
|
209
|
-
color: {
|
210
|
-
type: StringConstructor;
|
211
|
-
default: undefined;
|
212
|
-
};
|
213
|
-
fillColor: {
|
214
|
-
type: ArrayConstructor;
|
215
|
-
default: undefined;
|
216
|
-
};
|
217
|
-
}>> & Readonly<{}>, {
|
218
|
-
size: string | number;
|
219
|
-
color: string;
|
220
|
-
rotate: number;
|
221
|
-
spin: boolean;
|
222
|
-
fillColor: unknown[];
|
223
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
224
|
-
ExclamationCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
225
|
-
size: {
|
226
|
-
type: (StringConstructor | NumberConstructor)[];
|
227
|
-
default: undefined;
|
228
|
-
};
|
229
|
-
rotate: {
|
230
|
-
type: NumberConstructor;
|
231
|
-
default: undefined;
|
232
|
-
};
|
233
|
-
spin: {
|
234
|
-
type: BooleanConstructor;
|
235
|
-
default: boolean;
|
236
|
-
};
|
237
|
-
color: {
|
238
|
-
type: StringConstructor;
|
239
|
-
default: undefined;
|
240
|
-
};
|
241
|
-
fillColor: {
|
242
|
-
type: ArrayConstructor;
|
243
|
-
default: undefined;
|
244
|
-
};
|
245
|
-
}>, {
|
246
|
-
cls: import('vue').ComputedRef<(string | {
|
247
|
-
"x-icon-loading": boolean;
|
248
|
-
})[]>;
|
249
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
250
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
251
|
-
size: {
|
252
|
-
type: (StringConstructor | NumberConstructor)[];
|
253
|
-
default: undefined;
|
254
|
-
};
|
255
|
-
rotate: {
|
256
|
-
type: NumberConstructor;
|
257
|
-
default: undefined;
|
258
|
-
};
|
259
|
-
spin: {
|
260
|
-
type: BooleanConstructor;
|
261
|
-
default: boolean;
|
262
|
-
};
|
263
|
-
color: {
|
264
|
-
type: StringConstructor;
|
265
|
-
default: undefined;
|
266
|
-
};
|
267
|
-
fillColor: {
|
268
|
-
type: ArrayConstructor;
|
269
|
-
default: undefined;
|
270
|
-
};
|
271
|
-
}>> & Readonly<{}>, {
|
272
|
-
size: string | number;
|
273
|
-
color: string;
|
274
|
-
rotate: number;
|
275
|
-
spin: boolean;
|
276
|
-
fillColor: unknown[];
|
277
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
278
|
-
InfoCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
279
|
-
size: {
|
280
|
-
type: (StringConstructor | NumberConstructor)[];
|
281
|
-
default: undefined;
|
282
|
-
};
|
283
|
-
rotate: {
|
284
|
-
type: NumberConstructor;
|
285
|
-
default: undefined;
|
286
|
-
};
|
287
|
-
spin: {
|
288
|
-
type: BooleanConstructor;
|
289
|
-
default: boolean;
|
290
|
-
};
|
291
|
-
color: {
|
292
|
-
type: StringConstructor;
|
293
|
-
default: undefined;
|
294
|
-
};
|
295
|
-
fillColor: {
|
296
|
-
type: ArrayConstructor;
|
297
|
-
default: undefined;
|
298
|
-
};
|
299
|
-
}>, {
|
300
|
-
cls: import('vue').ComputedRef<(string | {
|
301
|
-
"x-icon-loading": boolean;
|
302
|
-
})[]>;
|
303
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
304
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
305
|
-
size: {
|
306
|
-
type: (StringConstructor | NumberConstructor)[];
|
307
|
-
default: undefined;
|
308
|
-
};
|
309
|
-
rotate: {
|
310
|
-
type: NumberConstructor;
|
311
|
-
default: undefined;
|
312
|
-
};
|
313
|
-
spin: {
|
314
|
-
type: BooleanConstructor;
|
315
|
-
default: boolean;
|
316
|
-
};
|
317
|
-
color: {
|
318
|
-
type: StringConstructor;
|
319
|
-
default: undefined;
|
320
|
-
};
|
321
|
-
fillColor: {
|
322
|
-
type: ArrayConstructor;
|
323
|
-
default: undefined;
|
324
|
-
};
|
325
|
-
}>> & Readonly<{}>, {
|
326
|
-
size: string | number;
|
327
|
-
color: string;
|
328
|
-
rotate: number;
|
329
|
-
spin: boolean;
|
330
|
-
fillColor: unknown[];
|
331
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
332
|
-
MinusCircleFill: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
333
|
-
size: {
|
334
|
-
type: (StringConstructor | NumberConstructor)[];
|
335
|
-
default: undefined;
|
336
|
-
};
|
337
|
-
rotate: {
|
338
|
-
type: NumberConstructor;
|
339
|
-
default: undefined;
|
340
|
-
};
|
341
|
-
spin: {
|
342
|
-
type: BooleanConstructor;
|
343
|
-
default: boolean;
|
344
|
-
};
|
345
|
-
color: {
|
346
|
-
type: StringConstructor;
|
347
|
-
default: undefined;
|
348
|
-
};
|
349
|
-
fillColor: {
|
350
|
-
type: ArrayConstructor;
|
351
|
-
default: undefined;
|
352
|
-
};
|
353
|
-
}>, {
|
354
|
-
cls: import('vue').ComputedRef<(string | {
|
355
|
-
"x-icon-loading": boolean;
|
356
|
-
})[]>;
|
357
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
358
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
359
|
-
size: {
|
360
|
-
type: (StringConstructor | NumberConstructor)[];
|
361
|
-
default: undefined;
|
362
|
-
};
|
363
|
-
rotate: {
|
364
|
-
type: NumberConstructor;
|
365
|
-
default: undefined;
|
366
|
-
};
|
367
|
-
spin: {
|
368
|
-
type: BooleanConstructor;
|
369
|
-
default: boolean;
|
370
|
-
};
|
371
|
-
color: {
|
372
|
-
type: StringConstructor;
|
373
|
-
default: undefined;
|
374
|
-
};
|
375
|
-
fillColor: {
|
376
|
-
type: ArrayConstructor;
|
377
|
-
default: undefined;
|
378
|
-
};
|
379
|
-
}>> & Readonly<{}>, {
|
380
|
-
size: string | number;
|
381
|
-
color: string;
|
382
|
-
rotate: number;
|
383
|
-
spin: boolean;
|
384
|
-
fillColor: unknown[];
|
385
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
386
|
-
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
387
|
-
export default _default;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import { RenderFunction, VNode } from 'vue';
|
2
|
-
export declare const messageTypes: readonly ["success", "warning", "error", "strong", "info"];
|
3
|
-
export type IMessageType = (typeof messageTypes)[number];
|
4
|
-
export type IMessage = string | number | VNode | RenderFunction;
|
5
|
-
export interface IMessageOptions {
|
6
|
-
id?: string;
|
7
|
-
message?: IMessage;
|
8
|
-
type?: IMessageType;
|
9
|
-
duration?: number;
|
10
|
-
center?: boolean;
|
11
|
-
onClose?: (vm?: VNode) => void;
|
12
|
-
offset?: number;
|
13
|
-
renderTo?: string | HTMLElement;
|
14
|
-
showClose?: Boolean;
|
15
|
-
useHTML?: Boolean;
|
16
|
-
popupClass?: string;
|
17
|
-
}
|
18
|
-
export interface IMessageHandler {
|
19
|
-
close: () => void;
|
20
|
-
}
|
21
|
-
export interface IMessageCaller {
|
22
|
-
(options: IMessageParams): IMessageHandler;
|
23
|
-
}
|
24
|
-
export interface IMessageMethods extends IMessageCaller {
|
25
|
-
success(message: IMessage | IMessageOptions): IMessageHandler;
|
26
|
-
error(message: IMessage | IMessageOptions): IMessageHandler;
|
27
|
-
warning(message: IMessage | IMessageOptions): IMessageHandler;
|
28
|
-
strong(message: IMessage | IMessageOptions): IMessageHandler;
|
29
|
-
info(message: IMessage | IMessageOptions): IMessageHandler;
|
30
|
-
}
|
31
|
-
export type IMessageParams = IMessageOptions | string;
|
@@ -1,52 +0,0 @@
|
|
1
|
-
import { RenderFunction, VNode } from 'vue';
|
2
|
-
export declare const messageBoxStaticMethods: readonly ["info", "success", "warning", "strong", "error"];
|
3
|
-
export type MessageBoxStaticMethod = (typeof messageBoxStaticMethods)[number];
|
4
|
-
export type MessageBoxBeforeAction = () => boolean | Promise<boolean>;
|
5
|
-
export type MessageBoxContent = string | number | VNode | RenderFunction;
|
6
|
-
export interface MessageBoxOptions {
|
7
|
-
title?: MessageBoxContent;
|
8
|
-
type?: MessageBoxStaticMethod;
|
9
|
-
content?: MessageBoxContent;
|
10
|
-
footer?: boolean | ((scoped: MessageBoxFooterScoped) => VNode);
|
11
|
-
okText?: string;
|
12
|
-
cancelText?: string;
|
13
|
-
mask?: boolean;
|
14
|
-
maskToClose?: boolean;
|
15
|
-
onOk?: (e: Event) => void;
|
16
|
-
beforeOnOk?: MessageBoxBeforeAction;
|
17
|
-
onCancel?: (e: Event) => void;
|
18
|
-
beforeOnCancel?: MessageBoxBeforeAction;
|
19
|
-
width?: number | string;
|
20
|
-
height?: number | string;
|
21
|
-
top?: number | string;
|
22
|
-
center?: boolean;
|
23
|
-
renderTo?: string | HTMLElement;
|
24
|
-
hideCancel?: boolean;
|
25
|
-
hideOk?: boolean;
|
26
|
-
popupClass?: string;
|
27
|
-
}
|
28
|
-
export type MessageBoxFooterAction = 'cancel' | 'ok';
|
29
|
-
export interface MessageBoxFooterScoped {
|
30
|
-
cancel(): void;
|
31
|
-
ok(): void;
|
32
|
-
loadingObj?: {
|
33
|
-
ok: boolean;
|
34
|
-
cancel: boolean;
|
35
|
-
};
|
36
|
-
}
|
37
|
-
export interface MessageBoxCaller {
|
38
|
-
(options: MessageBoxOptions): void;
|
39
|
-
}
|
40
|
-
export type MessageBoxChainArgs = [() => boolean | Promise<boolean>, () => void] | [() => void];
|
41
|
-
export interface MessageBoxMethodReturn {
|
42
|
-
ok(...args: MessageBoxChainArgs): any;
|
43
|
-
cancel(...args: MessageBoxChainArgs): any;
|
44
|
-
}
|
45
|
-
export interface MessageBoxMethods extends MessageBoxCaller {
|
46
|
-
info(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
|
47
|
-
success(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
|
48
|
-
warning(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
|
49
|
-
strong(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
|
50
|
-
error(title: MessageBoxContent, content?: MessageBoxContent): MessageBoxMethodReturn;
|
51
|
-
}
|
52
|
-
export type MessageBoxMethodOption = string | MessageBoxOptions;
|
@@ -1,160 +0,0 @@
|
|
1
|
-
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
2
|
-
position: {
|
3
|
-
type: import('vue').PropType<import('./props').NotificationPosition>;
|
4
|
-
default: string;
|
5
|
-
};
|
6
|
-
offset: {
|
7
|
-
type: NumberConstructor;
|
8
|
-
default: number;
|
9
|
-
};
|
10
|
-
title: {
|
11
|
-
type: StringConstructor;
|
12
|
-
default: string;
|
13
|
-
};
|
14
|
-
type: {
|
15
|
-
type: import('vue').PropType<import('./props').NotificationType>;
|
16
|
-
default: string;
|
17
|
-
};
|
18
|
-
message: {
|
19
|
-
type: StringConstructor;
|
20
|
-
default: undefined;
|
21
|
-
};
|
22
|
-
duration: {
|
23
|
-
type: NumberConstructor;
|
24
|
-
default: number;
|
25
|
-
};
|
26
|
-
showClose: {
|
27
|
-
type: BooleanConstructor;
|
28
|
-
default: boolean;
|
29
|
-
};
|
30
|
-
onClose: {
|
31
|
-
type: import('vue').PropType<() => void>;
|
32
|
-
default: () => void;
|
33
|
-
};
|
34
|
-
renderToBody: {
|
35
|
-
type: BooleanConstructor;
|
36
|
-
default: boolean;
|
37
|
-
};
|
38
|
-
}>, {
|
39
|
-
ns: string;
|
40
|
-
cn: {
|
41
|
-
block: string;
|
42
|
-
element: (className: string) => string;
|
43
|
-
modifier: (className: string) => string;
|
44
|
-
is: (className: string) => string;
|
45
|
-
};
|
46
|
-
cls: import('vue').ComputedRef<string[]>;
|
47
|
-
animationClsName: import('vue').ComputedRef<string>;
|
48
|
-
positionStyle: import('vue').ComputedRef<import('vue').CSSProperties>;
|
49
|
-
visible: import('vue').Ref<boolean, boolean>;
|
50
|
-
positionPropMap: import('vue').ComputedRef<{
|
51
|
-
hor: string;
|
52
|
-
ver: string;
|
53
|
-
}>;
|
54
|
-
currentIcon: import('vue').ComputedRef<"" | import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
55
|
-
size: {
|
56
|
-
type: (StringConstructor | NumberConstructor)[];
|
57
|
-
default: undefined;
|
58
|
-
};
|
59
|
-
rotate: {
|
60
|
-
type: NumberConstructor;
|
61
|
-
default: undefined;
|
62
|
-
};
|
63
|
-
spin: {
|
64
|
-
type: BooleanConstructor;
|
65
|
-
default: boolean;
|
66
|
-
};
|
67
|
-
color: {
|
68
|
-
type: StringConstructor;
|
69
|
-
default: undefined;
|
70
|
-
};
|
71
|
-
fillColor: {
|
72
|
-
type: ArrayConstructor;
|
73
|
-
default: undefined;
|
74
|
-
};
|
75
|
-
}>, {
|
76
|
-
cls: import('vue').ComputedRef<(string | {
|
77
|
-
"x-icon-loading": boolean;
|
78
|
-
})[]>;
|
79
|
-
styles: import('vue').ComputedRef<import('vue').CSSProperties>;
|
80
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
81
|
-
size: {
|
82
|
-
type: (StringConstructor | NumberConstructor)[];
|
83
|
-
default: undefined;
|
84
|
-
};
|
85
|
-
rotate: {
|
86
|
-
type: NumberConstructor;
|
87
|
-
default: undefined;
|
88
|
-
};
|
89
|
-
spin: {
|
90
|
-
type: BooleanConstructor;
|
91
|
-
default: boolean;
|
92
|
-
};
|
93
|
-
color: {
|
94
|
-
type: StringConstructor;
|
95
|
-
default: undefined;
|
96
|
-
};
|
97
|
-
fillColor: {
|
98
|
-
type: ArrayConstructor;
|
99
|
-
default: undefined;
|
100
|
-
};
|
101
|
-
}>> & Readonly<{}>, {
|
102
|
-
size: string | number;
|
103
|
-
color: string;
|
104
|
-
rotate: number;
|
105
|
-
spin: boolean;
|
106
|
-
fillColor: unknown[];
|
107
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>>;
|
108
|
-
handleClose: () => void;
|
109
|
-
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("close" | "destroy")[], "close" | "destroy", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
110
|
-
position: {
|
111
|
-
type: import('vue').PropType<import('./props').NotificationPosition>;
|
112
|
-
default: string;
|
113
|
-
};
|
114
|
-
offset: {
|
115
|
-
type: NumberConstructor;
|
116
|
-
default: number;
|
117
|
-
};
|
118
|
-
title: {
|
119
|
-
type: StringConstructor;
|
120
|
-
default: string;
|
121
|
-
};
|
122
|
-
type: {
|
123
|
-
type: import('vue').PropType<import('./props').NotificationType>;
|
124
|
-
default: string;
|
125
|
-
};
|
126
|
-
message: {
|
127
|
-
type: StringConstructor;
|
128
|
-
default: undefined;
|
129
|
-
};
|
130
|
-
duration: {
|
131
|
-
type: NumberConstructor;
|
132
|
-
default: number;
|
133
|
-
};
|
134
|
-
showClose: {
|
135
|
-
type: BooleanConstructor;
|
136
|
-
default: boolean;
|
137
|
-
};
|
138
|
-
onClose: {
|
139
|
-
type: import('vue').PropType<() => void>;
|
140
|
-
default: () => void;
|
141
|
-
};
|
142
|
-
renderToBody: {
|
143
|
-
type: BooleanConstructor;
|
144
|
-
default: boolean;
|
145
|
-
};
|
146
|
-
}>> & Readonly<{
|
147
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
148
|
-
onDestroy?: ((...args: any[]) => any) | undefined;
|
149
|
-
}>, {
|
150
|
-
message: string;
|
151
|
-
position: import('./props').NotificationPosition;
|
152
|
-
offset: number;
|
153
|
-
title: string;
|
154
|
-
showClose: boolean;
|
155
|
-
type: "error" | "strong" | "success" | "warning" | "info";
|
156
|
-
onClose: () => void;
|
157
|
-
duration: number;
|
158
|
-
renderToBody: boolean;
|
159
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
160
|
-
export default _default;
|
@@ -1,54 +0,0 @@
|
|
1
|
-
import { ExtractPropTypes, PropType, RenderFunction, VNode } from 'vue';
|
2
|
-
export declare const types: readonly ["success", "strong", "warning", "error", "info"];
|
3
|
-
export type NotificationType = (typeof types)[number];
|
4
|
-
export interface NotificationOptions {
|
5
|
-
title?: string;
|
6
|
-
message: string | number | RenderFunction | VNode;
|
7
|
-
type?: NotificationType;
|
8
|
-
duration?: number;
|
9
|
-
position?: NotificationPosition;
|
10
|
-
offset?: number;
|
11
|
-
renderTo?: string | HTMLElement;
|
12
|
-
showClose?: boolean;
|
13
|
-
onClose?: (vm?: VNode) => void;
|
14
|
-
}
|
15
|
-
export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
16
|
-
export declare const notificationProps: {
|
17
|
-
position: {
|
18
|
-
type: PropType<NotificationPosition>;
|
19
|
-
default: string;
|
20
|
-
};
|
21
|
-
offset: {
|
22
|
-
type: NumberConstructor;
|
23
|
-
default: number;
|
24
|
-
};
|
25
|
-
title: {
|
26
|
-
type: StringConstructor;
|
27
|
-
default: string;
|
28
|
-
};
|
29
|
-
type: {
|
30
|
-
type: PropType<NotificationType>;
|
31
|
-
default: string;
|
32
|
-
};
|
33
|
-
message: {
|
34
|
-
type: StringConstructor;
|
35
|
-
default: undefined;
|
36
|
-
};
|
37
|
-
duration: {
|
38
|
-
type: NumberConstructor;
|
39
|
-
default: number;
|
40
|
-
};
|
41
|
-
showClose: {
|
42
|
-
type: BooleanConstructor;
|
43
|
-
default: boolean;
|
44
|
-
};
|
45
|
-
onClose: {
|
46
|
-
type: PropType<() => void>;
|
47
|
-
default: () => void;
|
48
|
-
};
|
49
|
-
renderToBody: {
|
50
|
-
type: BooleanConstructor;
|
51
|
-
default: boolean;
|
52
|
-
};
|
53
|
-
};
|
54
|
-
export type NotificationProps = ExtractPropTypes<typeof notificationProps>;
|