@haoyulong1112/jh-ui 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +26 -26
- package/dist/components/notification/src/notification.vue.d.ts +2 -2
- package/dist/components/notification/src/types.d.ts +2 -1
- package/dist/es/components/notification/style/style.css +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.mjs +11 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -36,7 +36,7 @@ export * from './tooltip';
|
|
|
36
36
|
export * from './tree';
|
|
37
37
|
export * from './upload';
|
|
38
38
|
export * from './waterfall';
|
|
39
|
-
declare const _default: (({
|
|
39
|
+
declare const _default: (import("./notification").NotificationFn | ({
|
|
40
40
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
41
41
|
readonly name: import("vue").PropType<import("./icon").IconName>;
|
|
42
42
|
readonly size: {
|
|
@@ -164,8 +164,8 @@ declare const _default: (({
|
|
|
164
164
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
165
165
|
close: () => void;
|
|
166
166
|
}, import("vue").PublicProps, {
|
|
167
|
-
readonly type: import("./alert").AlertType;
|
|
168
167
|
readonly title: string;
|
|
168
|
+
readonly type: import("./alert").AlertType;
|
|
169
169
|
readonly description: string;
|
|
170
170
|
readonly effect: import("./alert").AlertEffect;
|
|
171
171
|
readonly closable: boolean;
|
|
@@ -204,8 +204,8 @@ declare const _default: (({
|
|
|
204
204
|
}>> & Readonly<{
|
|
205
205
|
onClose?: (() => any) | undefined;
|
|
206
206
|
}>, {}, {}, {}, {}, {
|
|
207
|
-
readonly type: import("./alert").AlertType;
|
|
208
207
|
readonly title: string;
|
|
208
|
+
readonly type: import("./alert").AlertType;
|
|
209
209
|
readonly description: string;
|
|
210
210
|
readonly effect: import("./alert").AlertEffect;
|
|
211
211
|
readonly closable: boolean;
|
|
@@ -243,8 +243,8 @@ declare const _default: (({
|
|
|
243
243
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
244
244
|
close: () => void;
|
|
245
245
|
}, string, {
|
|
246
|
-
readonly type: import("./alert").AlertType;
|
|
247
246
|
readonly title: string;
|
|
247
|
+
readonly type: import("./alert").AlertType;
|
|
248
248
|
readonly description: string;
|
|
249
249
|
readonly effect: import("./alert").AlertEffect;
|
|
250
250
|
readonly closable: boolean;
|
|
@@ -285,8 +285,8 @@ declare const _default: (({
|
|
|
285
285
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
286
286
|
close: () => void;
|
|
287
287
|
}, import("vue").PublicProps, {
|
|
288
|
-
readonly type: import("./alert").AlertType;
|
|
289
288
|
readonly title: string;
|
|
289
|
+
readonly type: import("./alert").AlertType;
|
|
290
290
|
readonly description: string;
|
|
291
291
|
readonly effect: import("./alert").AlertEffect;
|
|
292
292
|
readonly closable: boolean;
|
|
@@ -325,8 +325,8 @@ declare const _default: (({
|
|
|
325
325
|
}>> & Readonly<{
|
|
326
326
|
onClose?: (() => any) | undefined;
|
|
327
327
|
}>, {}, {}, {}, {}, {
|
|
328
|
-
readonly type: import("./alert").AlertType;
|
|
329
328
|
readonly title: string;
|
|
329
|
+
readonly type: import("./alert").AlertType;
|
|
330
330
|
readonly description: string;
|
|
331
331
|
readonly effect: import("./alert").AlertEffect;
|
|
332
332
|
readonly closable: boolean;
|
|
@@ -364,8 +364,8 @@ declare const _default: (({
|
|
|
364
364
|
}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
365
365
|
close: () => void;
|
|
366
366
|
}, string, {
|
|
367
|
-
readonly type: import("./alert").AlertType;
|
|
368
367
|
readonly title: string;
|
|
368
|
+
readonly type: import("./alert").AlertType;
|
|
369
369
|
readonly description: string;
|
|
370
370
|
readonly effect: import("./alert").AlertEffect;
|
|
371
371
|
readonly closable: boolean;
|
|
@@ -401,10 +401,10 @@ declare const _default: (({
|
|
|
401
401
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
402
402
|
click: (payload: import("./backtop").BacktopClickPayload) => void;
|
|
403
403
|
}, import("vue").PublicProps, {
|
|
404
|
-
readonly target: string;
|
|
405
|
-
readonly visibilityHeight: number;
|
|
406
404
|
readonly right: number;
|
|
407
405
|
readonly bottom: number;
|
|
406
|
+
readonly target: string;
|
|
407
|
+
readonly visibilityHeight: number;
|
|
408
408
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
409
409
|
P: {};
|
|
410
410
|
B: {};
|
|
@@ -434,10 +434,10 @@ declare const _default: (({
|
|
|
434
434
|
}>, {
|
|
435
435
|
handleScroll: () => void;
|
|
436
436
|
}, {}, {}, {}, {
|
|
437
|
-
readonly target: string;
|
|
438
|
-
readonly visibilityHeight: number;
|
|
439
437
|
readonly right: number;
|
|
440
438
|
readonly bottom: number;
|
|
439
|
+
readonly target: string;
|
|
440
|
+
readonly visibilityHeight: number;
|
|
441
441
|
}>;
|
|
442
442
|
__isFragment?: never;
|
|
443
443
|
__isTeleport?: never;
|
|
@@ -466,10 +466,10 @@ declare const _default: (({
|
|
|
466
466
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
467
467
|
click: (payload: import("./backtop").BacktopClickPayload) => void;
|
|
468
468
|
}, string, {
|
|
469
|
-
readonly target: string;
|
|
470
|
-
readonly visibilityHeight: number;
|
|
471
469
|
readonly right: number;
|
|
472
470
|
readonly bottom: number;
|
|
471
|
+
readonly target: string;
|
|
472
|
+
readonly visibilityHeight: number;
|
|
473
473
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
474
474
|
$slots: {
|
|
475
475
|
default?: (props: {}) => any;
|
|
@@ -499,10 +499,10 @@ declare const _default: (({
|
|
|
499
499
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
500
500
|
click: (payload: import("./backtop").BacktopClickPayload) => void;
|
|
501
501
|
}, import("vue").PublicProps, {
|
|
502
|
-
readonly target: string;
|
|
503
|
-
readonly visibilityHeight: number;
|
|
504
502
|
readonly right: number;
|
|
505
503
|
readonly bottom: number;
|
|
504
|
+
readonly target: string;
|
|
505
|
+
readonly visibilityHeight: number;
|
|
506
506
|
}, true, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
507
507
|
P: {};
|
|
508
508
|
B: {};
|
|
@@ -532,10 +532,10 @@ declare const _default: (({
|
|
|
532
532
|
}>, {
|
|
533
533
|
handleScroll: () => void;
|
|
534
534
|
}, {}, {}, {}, {
|
|
535
|
-
readonly target: string;
|
|
536
|
-
readonly visibilityHeight: number;
|
|
537
535
|
readonly right: number;
|
|
538
536
|
readonly bottom: number;
|
|
537
|
+
readonly target: string;
|
|
538
|
+
readonly visibilityHeight: number;
|
|
539
539
|
}>;
|
|
540
540
|
__isFragment?: never;
|
|
541
541
|
__isTeleport?: never;
|
|
@@ -564,10 +564,10 @@ declare const _default: (({
|
|
|
564
564
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
565
565
|
click: (payload: import("./backtop").BacktopClickPayload) => void;
|
|
566
566
|
}, string, {
|
|
567
|
-
readonly target: string;
|
|
568
|
-
readonly visibilityHeight: number;
|
|
569
567
|
readonly right: number;
|
|
570
568
|
readonly bottom: number;
|
|
569
|
+
readonly target: string;
|
|
570
|
+
readonly visibilityHeight: number;
|
|
571
571
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
572
572
|
$slots: {
|
|
573
573
|
default?: (props: {}) => any;
|
|
@@ -2483,8 +2483,8 @@ declare const _default: (({
|
|
|
2483
2483
|
open: () => void;
|
|
2484
2484
|
closed: () => void;
|
|
2485
2485
|
}, import("vue").PublicProps, {
|
|
2486
|
-
readonly size: string;
|
|
2487
2486
|
readonly title: string;
|
|
2487
|
+
readonly size: string;
|
|
2488
2488
|
readonly modelValue: boolean;
|
|
2489
2489
|
readonly closeOnClickModal: boolean;
|
|
2490
2490
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -2525,8 +2525,8 @@ declare const _default: (({
|
|
|
2525
2525
|
onOpen?: (() => any) | undefined;
|
|
2526
2526
|
onClosed?: (() => any) | undefined;
|
|
2527
2527
|
}>, {}, {}, {}, {}, {
|
|
2528
|
-
readonly size: string;
|
|
2529
2528
|
readonly title: string;
|
|
2529
|
+
readonly size: string;
|
|
2530
2530
|
readonly modelValue: boolean;
|
|
2531
2531
|
readonly closeOnClickModal: boolean;
|
|
2532
2532
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -2569,8 +2569,8 @@ declare const _default: (({
|
|
|
2569
2569
|
open: () => void;
|
|
2570
2570
|
closed: () => void;
|
|
2571
2571
|
}, string, {
|
|
2572
|
-
readonly size: string;
|
|
2573
2572
|
readonly title: string;
|
|
2573
|
+
readonly size: string;
|
|
2574
2574
|
readonly modelValue: boolean;
|
|
2575
2575
|
readonly closeOnClickModal: boolean;
|
|
2576
2576
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -2618,8 +2618,8 @@ declare const _default: (({
|
|
|
2618
2618
|
open: () => void;
|
|
2619
2619
|
closed: () => void;
|
|
2620
2620
|
}, import("vue").PublicProps, {
|
|
2621
|
-
readonly size: string;
|
|
2622
2621
|
readonly title: string;
|
|
2622
|
+
readonly size: string;
|
|
2623
2623
|
readonly modelValue: boolean;
|
|
2624
2624
|
readonly closeOnClickModal: boolean;
|
|
2625
2625
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -2660,8 +2660,8 @@ declare const _default: (({
|
|
|
2660
2660
|
onOpen?: (() => any) | undefined;
|
|
2661
2661
|
onClosed?: (() => any) | undefined;
|
|
2662
2662
|
}>, {}, {}, {}, {}, {
|
|
2663
|
-
readonly size: string;
|
|
2664
2663
|
readonly title: string;
|
|
2664
|
+
readonly size: string;
|
|
2665
2665
|
readonly modelValue: boolean;
|
|
2666
2666
|
readonly closeOnClickModal: boolean;
|
|
2667
2667
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -2704,8 +2704,8 @@ declare const _default: (({
|
|
|
2704
2704
|
open: () => void;
|
|
2705
2705
|
closed: () => void;
|
|
2706
2706
|
}, string, {
|
|
2707
|
-
readonly size: string;
|
|
2708
2707
|
readonly title: string;
|
|
2708
|
+
readonly size: string;
|
|
2709
2709
|
readonly modelValue: boolean;
|
|
2710
2710
|
readonly closeOnClickModal: boolean;
|
|
2711
2711
|
readonly beforeClose: import("./drawer").DrawerBeforeClose;
|
|
@@ -3792,7 +3792,7 @@ declare const _default: (({
|
|
|
3792
3792
|
$slots: {
|
|
3793
3793
|
default?: (props: {}) => any;
|
|
3794
3794
|
};
|
|
3795
|
-
}) & ((app: import("vue").App, ...options: any[]) => any) & Partial<import("vue").ObjectPlugin<any[]>>) | import("./message-box").MessageBoxFn |
|
|
3795
|
+
}) & ((app: import("vue").App, ...options: any[]) => any) & Partial<import("vue").ObjectPlugin<any[]>>) | import("./message-box").MessageBoxFn | ({
|
|
3796
3796
|
new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("vue").ExtractPropTypes<{
|
|
3797
3797
|
readonly currentPage: {
|
|
3798
3798
|
readonly type: NumberConstructor;
|
|
@@ -84,12 +84,12 @@ declare const _default: import("vue").DefineComponent<import("vue").ExtractPropT
|
|
|
84
84
|
readonly onDestroy: import("vue").PropType<() => void>;
|
|
85
85
|
}>> & Readonly<{}>, {
|
|
86
86
|
readonly title: string;
|
|
87
|
-
readonly type: import("./types").NotificationType;
|
|
88
87
|
readonly message: string;
|
|
88
|
+
readonly type: import("./types").NotificationType;
|
|
89
89
|
readonly duration: number;
|
|
90
90
|
readonly showClose: boolean;
|
|
91
|
+
readonly position: import("./types").NotificationPosition;
|
|
91
92
|
readonly offset: number;
|
|
92
93
|
readonly zIndex: number;
|
|
93
|
-
readonly position: import("./types").NotificationPosition;
|
|
94
94
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
95
95
|
export default _default;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { App } from 'vue';
|
|
2
|
-
export type NotificationType = 'success' | 'warning' | 'info' | 'danger';
|
|
2
|
+
export type NotificationType = 'success' | 'warning' | 'info' | 'danger' | 'error';
|
|
3
3
|
export type NotificationPosition = 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left';
|
|
4
4
|
export interface NotificationOptions {
|
|
5
5
|
title?: string;
|
|
@@ -31,6 +31,7 @@ export type NotificationFn = {
|
|
|
31
31
|
warning: (options?: string | Omit<NotificationOptions, 'type'>) => NotificationHandler;
|
|
32
32
|
info: (options?: string | Omit<NotificationOptions, 'type'>) => NotificationHandler;
|
|
33
33
|
danger: (options?: string | Omit<NotificationOptions, 'type'>) => NotificationHandler;
|
|
34
|
+
error: (options?: string | Omit<NotificationOptions, 'type'>) => NotificationHandler;
|
|
34
35
|
closeAll: () => void;
|
|
35
36
|
install: (app: App) => void;
|
|
36
37
|
};
|