x-next 0.0.0-alpha.2 → 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 +15 -84
- package/dist/index.umd.js +1 -0
- package/package.json +35 -48
- package/LICENSE +0 -21
- package/dist/favicon.ico +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/types/_hooks/use-overflow.d.ts +0 -5
- package/dist/types/_hooks/use-popup-manager.d.ts +0 -11
- package/dist/types/_props/css.d.ts +0 -13
- package/dist/types/_props/global.d.ts +0 -1
- package/dist/types/_utils/config.d.ts +0 -9
- package/dist/types/_utils/convert-case.d.ts +0 -3
- package/dist/types/_utils/dom.d.ts +0 -10
- package/dist/types/_utils/helpers.d.ts +0 -12
- package/dist/types/_utils/icon.d.ts +0 -59
- package/dist/types/_utils/is.d.ts +0 -25
- package/dist/types/_utils/keyboard.d.ts +0 -24
- package/dist/types/_utils/number.d.ts +0 -0
- package/dist/types/_utils/vue-eco.d.ts +0 -32
- package/dist/types/componets/button/index.vue.d.ts +0 -107
- package/dist/types/componets/button/props.d.ts +0 -45
- package/dist/types/componets/dialog/index.vue.d.ts +0 -221
- package/dist/types/componets/dialog/props.d.ts +0 -83
- package/dist/types/componets/dialog/use-props.d.ts +0 -33
- package/dist/types/componets/dialog/use.d.ts +0 -3
- package/dist/types/componets/dialog/warp.d.ts +0 -2
- package/dist/types/componets/message/index.vue.d.ts +0 -116
- package/dist/types/componets/message/props.d.ts +0 -31
- package/dist/types/componets/message/warp.d.ts +0 -3
- package/dist/types/componets/message-box/index.d.ts +0 -3
- package/dist/types/componets/message-box/props.d.ts +0 -52
- package/dist/types/componets/message-box/warp.d.ts +0 -2
- package/dist/types/componets/notification/index.vue.d.ts +0 -160
- package/dist/types/componets/notification/props.d.ts +0 -54
- package/dist/types/componets/notification/warp.d.ts +0 -3
- package/dist/types/componets/space/index.d.ts +0 -42
- package/dist/types/componets/tag-cloud/index.d.ts +0 -0
- package/dist/types/componets/trend-chart/components/trend-chart-curve.d.ts +0 -114
- package/dist/types/componets/trend-chart/components/trend-chart-grid.d.ts +0 -55
- package/dist/types/componets/trend-chart/components/trend-chart-labels.d.ts +0 -22
- package/dist/types/componets/trend-chart/components/trend-chart.d.ts +0 -270
- package/dist/types/componets/trend-chart/helpers/genPath.d.ts +0 -8
- package/dist/types/componets/trend-chart/helpers/genPoints.d.ts +0 -3
- package/dist/types/componets/trend-chart/helpers/getPadding.d.ts +0 -7
- package/dist/types/componets/trend-chart/helpers/validatePadding.d.ts +0 -2
- package/dist/types/componets/trend-chart/index.d.ts +0 -2
- package/dist/types/componets/trend-chart/props.d.ts +0 -206
- package/dist/types/icons/animation/animation-loading.vue.d.ts +0 -55
- package/dist/types/icons/default/check-circle-fill.vue.d.ts +0 -55
- package/dist/types/icons/default/close-circle-fill.vue.d.ts +0 -55
- package/dist/types/icons/default/exclamation-circle-fill.vue.d.ts +0 -55
- package/dist/types/icons/default/info-circle-fill.vue.d.ts +0 -55
- package/dist/types/icons/default/minus-circle-fill.vue.d.ts +0 -55
- package/dist/types/icons/index.d.ts +0 -7
- package/dist/types/ui.d.ts +0 -5
- package/dist/ui.cjs.js +0 -2
- package/dist/ui.es.js +0 -1395
- package/dist/ui.umd.js +0 -3
@@ -1,107 +0,0 @@
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
|
-
disabled: BooleanConstructor;
|
3
|
-
block: BooleanConstructor;
|
4
|
-
loading: BooleanConstructor;
|
5
|
-
loadingFill: {
|
6
|
-
type: BooleanConstructor;
|
7
|
-
default: boolean;
|
8
|
-
};
|
9
|
-
debounce: {
|
10
|
-
type: NumberConstructor;
|
11
|
-
default: number;
|
12
|
-
};
|
13
|
-
shape: {
|
14
|
-
type: import("vue").PropType<import("./props").ButtonShape>;
|
15
|
-
default: undefined;
|
16
|
-
};
|
17
|
-
link: {
|
18
|
-
type: BooleanConstructor;
|
19
|
-
default: boolean;
|
20
|
-
};
|
21
|
-
type: {
|
22
|
-
type: import("vue").PropType<import("./props").ButtonType>;
|
23
|
-
default: undefined;
|
24
|
-
};
|
25
|
-
status: {
|
26
|
-
type: import("vue").PropType<import("./props").ButtonStatus>;
|
27
|
-
default: undefined;
|
28
|
-
};
|
29
|
-
plain: {
|
30
|
-
type: BooleanConstructor;
|
31
|
-
default: boolean;
|
32
|
-
};
|
33
|
-
size: {
|
34
|
-
type: import("vue").PropType<import("./props").ButtonSize>;
|
35
|
-
default: string;
|
36
|
-
};
|
37
|
-
border: {
|
38
|
-
type: BooleanConstructor;
|
39
|
-
default: boolean;
|
40
|
-
};
|
41
|
-
}>, {
|
42
|
-
cn: {
|
43
|
-
block: string;
|
44
|
-
element: (className: string) => string;
|
45
|
-
modifier: (className: string) => string;
|
46
|
-
is: (className: string) => string;
|
47
|
-
};
|
48
|
-
cls: import("vue").ComputedRef<(string | false | undefined)[]>;
|
49
|
-
handleClick: (event: MouseEvent) => Promise<void>;
|
50
|
-
isLoading: import("vue").ComputedRef<boolean>;
|
51
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click"[], "click", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
52
|
-
disabled: BooleanConstructor;
|
53
|
-
block: BooleanConstructor;
|
54
|
-
loading: BooleanConstructor;
|
55
|
-
loadingFill: {
|
56
|
-
type: BooleanConstructor;
|
57
|
-
default: boolean;
|
58
|
-
};
|
59
|
-
debounce: {
|
60
|
-
type: NumberConstructor;
|
61
|
-
default: number;
|
62
|
-
};
|
63
|
-
shape: {
|
64
|
-
type: import("vue").PropType<import("./props").ButtonShape>;
|
65
|
-
default: undefined;
|
66
|
-
};
|
67
|
-
link: {
|
68
|
-
type: BooleanConstructor;
|
69
|
-
default: boolean;
|
70
|
-
};
|
71
|
-
type: {
|
72
|
-
type: import("vue").PropType<import("./props").ButtonType>;
|
73
|
-
default: undefined;
|
74
|
-
};
|
75
|
-
status: {
|
76
|
-
type: import("vue").PropType<import("./props").ButtonStatus>;
|
77
|
-
default: undefined;
|
78
|
-
};
|
79
|
-
plain: {
|
80
|
-
type: BooleanConstructor;
|
81
|
-
default: boolean;
|
82
|
-
};
|
83
|
-
size: {
|
84
|
-
type: import("vue").PropType<import("./props").ButtonSize>;
|
85
|
-
default: string;
|
86
|
-
};
|
87
|
-
border: {
|
88
|
-
type: BooleanConstructor;
|
89
|
-
default: boolean;
|
90
|
-
};
|
91
|
-
}>> & Readonly<{
|
92
|
-
onClick?: ((...args: any[]) => any) | undefined;
|
93
|
-
}>, {
|
94
|
-
size: import("./props").ButtonSize;
|
95
|
-
border: boolean;
|
96
|
-
link: boolean;
|
97
|
-
block: boolean;
|
98
|
-
disabled: boolean;
|
99
|
-
type: import("./props").ButtonType;
|
100
|
-
loading: boolean;
|
101
|
-
loadingFill: boolean;
|
102
|
-
debounce: number;
|
103
|
-
shape: import("./props").ButtonShape;
|
104
|
-
status: import("./props").ButtonStatus;
|
105
|
-
plain: boolean;
|
106
|
-
}, {}, Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
107
|
-
export default _sfc_main;
|
@@ -1,45 +0,0 @@
|
|
1
|
-
export type ButtonSize = 'mini' | 'small' | 'medium' | 'large' | 'huge';
|
2
|
-
export type ButtonStatus = 'success' | 'warning' | 'strong' | 'danger' | 'info';
|
3
|
-
export type ButtonType = 'primary' | 'secondary' | 'dashed' | 'outline' | 'text';
|
4
|
-
export type ButtonShape = 'round' | 'circle' | 'square';
|
5
|
-
export declare const buttonProps: {
|
6
|
-
disabled: BooleanConstructor;
|
7
|
-
block: BooleanConstructor;
|
8
|
-
loading: BooleanConstructor;
|
9
|
-
loadingFill: {
|
10
|
-
type: BooleanConstructor;
|
11
|
-
default: boolean;
|
12
|
-
};
|
13
|
-
debounce: {
|
14
|
-
type: NumberConstructor;
|
15
|
-
default: number;
|
16
|
-
};
|
17
|
-
shape: {
|
18
|
-
type: import("vue").PropType<ButtonShape>;
|
19
|
-
default: undefined;
|
20
|
-
};
|
21
|
-
link: {
|
22
|
-
type: BooleanConstructor;
|
23
|
-
default: boolean;
|
24
|
-
};
|
25
|
-
type: {
|
26
|
-
type: import("vue").PropType<ButtonType>;
|
27
|
-
default: undefined;
|
28
|
-
};
|
29
|
-
status: {
|
30
|
-
type: import("vue").PropType<ButtonStatus>;
|
31
|
-
default: undefined;
|
32
|
-
};
|
33
|
-
plain: {
|
34
|
-
type: BooleanConstructor;
|
35
|
-
default: boolean;
|
36
|
-
};
|
37
|
-
size: {
|
38
|
-
type: import("vue").PropType<ButtonSize>;
|
39
|
-
default: string;
|
40
|
-
};
|
41
|
-
border: {
|
42
|
-
type: BooleanConstructor;
|
43
|
-
default: boolean;
|
44
|
-
};
|
45
|
-
};
|
@@ -1,221 +0,0 @@
|
|
1
|
-
declare const _sfc_main: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
2
|
-
renderTo: {
|
3
|
-
type: import("vue").PropType<string | HTMLElement>;
|
4
|
-
default: string;
|
5
|
-
};
|
6
|
-
disabled: {
|
7
|
-
type: BooleanConstructor;
|
8
|
-
default: boolean;
|
9
|
-
};
|
10
|
-
modelValue: {
|
11
|
-
type: BooleanConstructor;
|
12
|
-
default: boolean;
|
13
|
-
};
|
14
|
-
top: {
|
15
|
-
type: (NumberConstructor | StringConstructor)[];
|
16
|
-
default: string;
|
17
|
-
};
|
18
|
-
center: {
|
19
|
-
type: BooleanConstructor;
|
20
|
-
default: boolean;
|
21
|
-
};
|
22
|
-
width: {
|
23
|
-
type: (NumberConstructor | StringConstructor)[];
|
24
|
-
default: number;
|
25
|
-
};
|
26
|
-
height: {
|
27
|
-
type: (NumberConstructor | StringConstructor)[];
|
28
|
-
default: number;
|
29
|
-
};
|
30
|
-
minWidth: {
|
31
|
-
type: (NumberConstructor | StringConstructor)[];
|
32
|
-
default: number;
|
33
|
-
};
|
34
|
-
minHeight: {
|
35
|
-
type: (NumberConstructor | StringConstructor)[];
|
36
|
-
default: number;
|
37
|
-
};
|
38
|
-
title: {
|
39
|
-
type: StringConstructor;
|
40
|
-
default: string;
|
41
|
-
};
|
42
|
-
mask: {
|
43
|
-
type: BooleanConstructor;
|
44
|
-
default: boolean;
|
45
|
-
};
|
46
|
-
destroyOnClosed: {
|
47
|
-
type: BooleanConstructor;
|
48
|
-
default: boolean;
|
49
|
-
};
|
50
|
-
onBeforeCancel: {
|
51
|
-
type: FunctionConstructor;
|
52
|
-
};
|
53
|
-
maskToClose: {
|
54
|
-
type: BooleanConstructor;
|
55
|
-
default: boolean;
|
56
|
-
};
|
57
|
-
escToClose: {
|
58
|
-
type: BooleanConstructor;
|
59
|
-
default: boolean;
|
60
|
-
};
|
61
|
-
fullscreen: {
|
62
|
-
type: BooleanConstructor;
|
63
|
-
default: boolean;
|
64
|
-
};
|
65
|
-
messageBox: {
|
66
|
-
type: BooleanConstructor;
|
67
|
-
default: boolean;
|
68
|
-
};
|
69
|
-
popupClass: {
|
70
|
-
type: StringConstructor;
|
71
|
-
default: undefined;
|
72
|
-
};
|
73
|
-
showClose: {
|
74
|
-
type: BooleanConstructor;
|
75
|
-
default: boolean;
|
76
|
-
};
|
77
|
-
showHeaderBottomLine: {
|
78
|
-
type: BooleanConstructor;
|
79
|
-
default: boolean;
|
80
|
-
};
|
81
|
-
}>, {
|
82
|
-
cls: import("vue").ComputedRef<(string | false | undefined)[]>;
|
83
|
-
ns: string;
|
84
|
-
cn: {
|
85
|
-
block: string;
|
86
|
-
element: (className: string) => string;
|
87
|
-
modifier: (className: string) => string;
|
88
|
-
is: (className: string) => string;
|
89
|
-
};
|
90
|
-
cnOMB: {
|
91
|
-
block: string;
|
92
|
-
element: (className: string) => string;
|
93
|
-
modifier: (className: string) => string;
|
94
|
-
is: (className: string) => string;
|
95
|
-
};
|
96
|
-
messageBoxNs: string;
|
97
|
-
containerStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
98
|
-
dialogStyle: import("vue").ComputedRef<import("vue").CSSProperties>;
|
99
|
-
dialogRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
100
|
-
teleportContainer: import("vue").ComputedRef<HTMLElement | undefined>;
|
101
|
-
teleportDisabled: import("vue").ComputedRef<boolean>;
|
102
|
-
modelVisible: import("vue").ComputedRef<boolean>;
|
103
|
-
mergeVisible: import("vue").ComputedRef<boolean>;
|
104
|
-
interceptClose: (action: 'cancel' | 'ok', e?: Event) => void;
|
105
|
-
afterLeave: () => void;
|
106
|
-
afterEnter: () => void;
|
107
|
-
handleMaskClick: () => void;
|
108
|
-
handleCancel: (e: Event) => void;
|
109
|
-
handleOk: (e: Event) => void;
|
110
|
-
loadingObj: {
|
111
|
-
ok: boolean;
|
112
|
-
cancel: boolean;
|
113
|
-
};
|
114
|
-
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("open" | "close" | "closed" | "opened" | "update:modelValue")[], "open" | "close" | "closed" | "opened" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
115
|
-
renderTo: {
|
116
|
-
type: import("vue").PropType<string | HTMLElement>;
|
117
|
-
default: string;
|
118
|
-
};
|
119
|
-
disabled: {
|
120
|
-
type: BooleanConstructor;
|
121
|
-
default: boolean;
|
122
|
-
};
|
123
|
-
modelValue: {
|
124
|
-
type: BooleanConstructor;
|
125
|
-
default: boolean;
|
126
|
-
};
|
127
|
-
top: {
|
128
|
-
type: (NumberConstructor | StringConstructor)[];
|
129
|
-
default: string;
|
130
|
-
};
|
131
|
-
center: {
|
132
|
-
type: BooleanConstructor;
|
133
|
-
default: boolean;
|
134
|
-
};
|
135
|
-
width: {
|
136
|
-
type: (NumberConstructor | StringConstructor)[];
|
137
|
-
default: number;
|
138
|
-
};
|
139
|
-
height: {
|
140
|
-
type: (NumberConstructor | StringConstructor)[];
|
141
|
-
default: number;
|
142
|
-
};
|
143
|
-
minWidth: {
|
144
|
-
type: (NumberConstructor | StringConstructor)[];
|
145
|
-
default: number;
|
146
|
-
};
|
147
|
-
minHeight: {
|
148
|
-
type: (NumberConstructor | StringConstructor)[];
|
149
|
-
default: number;
|
150
|
-
};
|
151
|
-
title: {
|
152
|
-
type: StringConstructor;
|
153
|
-
default: string;
|
154
|
-
};
|
155
|
-
mask: {
|
156
|
-
type: BooleanConstructor;
|
157
|
-
default: boolean;
|
158
|
-
};
|
159
|
-
destroyOnClosed: {
|
160
|
-
type: BooleanConstructor;
|
161
|
-
default: boolean;
|
162
|
-
};
|
163
|
-
onBeforeCancel: {
|
164
|
-
type: FunctionConstructor;
|
165
|
-
};
|
166
|
-
maskToClose: {
|
167
|
-
type: BooleanConstructor;
|
168
|
-
default: boolean;
|
169
|
-
};
|
170
|
-
escToClose: {
|
171
|
-
type: BooleanConstructor;
|
172
|
-
default: boolean;
|
173
|
-
};
|
174
|
-
fullscreen: {
|
175
|
-
type: BooleanConstructor;
|
176
|
-
default: boolean;
|
177
|
-
};
|
178
|
-
messageBox: {
|
179
|
-
type: BooleanConstructor;
|
180
|
-
default: boolean;
|
181
|
-
};
|
182
|
-
popupClass: {
|
183
|
-
type: StringConstructor;
|
184
|
-
default: undefined;
|
185
|
-
};
|
186
|
-
showClose: {
|
187
|
-
type: BooleanConstructor;
|
188
|
-
default: boolean;
|
189
|
-
};
|
190
|
-
showHeaderBottomLine: {
|
191
|
-
type: BooleanConstructor;
|
192
|
-
default: boolean;
|
193
|
-
};
|
194
|
-
}>> & Readonly<{
|
195
|
-
onOpen?: ((...args: any[]) => any) | undefined;
|
196
|
-
onClose?: ((...args: any[]) => any) | undefined;
|
197
|
-
onClosed?: ((...args: any[]) => any) | undefined;
|
198
|
-
onOpened?: ((...args: any[]) => any) | undefined;
|
199
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
200
|
-
}>, {
|
201
|
-
height: string | number;
|
202
|
-
minHeight: string | number;
|
203
|
-
minWidth: string | number;
|
204
|
-
top: string | number;
|
205
|
-
width: string | number;
|
206
|
-
mask: boolean;
|
207
|
-
center: boolean;
|
208
|
-
disabled: boolean;
|
209
|
-
title: string;
|
210
|
-
renderTo: string | HTMLElement;
|
211
|
-
modelValue: boolean;
|
212
|
-
destroyOnClosed: boolean;
|
213
|
-
maskToClose: boolean;
|
214
|
-
escToClose: boolean;
|
215
|
-
fullscreen: boolean;
|
216
|
-
messageBox: boolean;
|
217
|
-
popupClass: string;
|
218
|
-
showClose: boolean;
|
219
|
-
showHeaderBottomLine: boolean;
|
220
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
221
|
-
export default _sfc_main;
|
@@ -1,83 +0,0 @@
|
|
1
|
-
import type { ExtractPropTypes } from 'vue';
|
2
|
-
export declare const dialogProps: {
|
3
|
-
renderTo: {
|
4
|
-
type: import("vue").PropType<string | HTMLElement>;
|
5
|
-
default: string;
|
6
|
-
};
|
7
|
-
disabled: {
|
8
|
-
type: BooleanConstructor;
|
9
|
-
default: boolean;
|
10
|
-
};
|
11
|
-
modelValue: {
|
12
|
-
type: BooleanConstructor;
|
13
|
-
default: boolean;
|
14
|
-
};
|
15
|
-
top: {
|
16
|
-
type: (StringConstructor | NumberConstructor)[];
|
17
|
-
default: string;
|
18
|
-
};
|
19
|
-
center: {
|
20
|
-
type: BooleanConstructor;
|
21
|
-
default: boolean;
|
22
|
-
};
|
23
|
-
width: {
|
24
|
-
type: (StringConstructor | NumberConstructor)[];
|
25
|
-
default: number;
|
26
|
-
};
|
27
|
-
height: {
|
28
|
-
type: (StringConstructor | NumberConstructor)[];
|
29
|
-
default: number;
|
30
|
-
};
|
31
|
-
minWidth: {
|
32
|
-
type: (StringConstructor | NumberConstructor)[];
|
33
|
-
default: number;
|
34
|
-
};
|
35
|
-
minHeight: {
|
36
|
-
type: (StringConstructor | NumberConstructor)[];
|
37
|
-
default: number;
|
38
|
-
};
|
39
|
-
title: {
|
40
|
-
type: StringConstructor;
|
41
|
-
default: string;
|
42
|
-
};
|
43
|
-
mask: {
|
44
|
-
type: BooleanConstructor;
|
45
|
-
default: boolean;
|
46
|
-
};
|
47
|
-
destroyOnClosed: {
|
48
|
-
type: BooleanConstructor;
|
49
|
-
default: boolean;
|
50
|
-
};
|
51
|
-
onBeforeCancel: {
|
52
|
-
type: FunctionConstructor;
|
53
|
-
};
|
54
|
-
maskToClose: {
|
55
|
-
type: BooleanConstructor;
|
56
|
-
default: boolean;
|
57
|
-
};
|
58
|
-
escToClose: {
|
59
|
-
type: BooleanConstructor;
|
60
|
-
default: boolean;
|
61
|
-
};
|
62
|
-
fullscreen: {
|
63
|
-
type: BooleanConstructor;
|
64
|
-
default: boolean;
|
65
|
-
};
|
66
|
-
messageBox: {
|
67
|
-
type: BooleanConstructor;
|
68
|
-
default: boolean;
|
69
|
-
};
|
70
|
-
popupClass: {
|
71
|
-
type: StringConstructor;
|
72
|
-
default: undefined;
|
73
|
-
};
|
74
|
-
showClose: {
|
75
|
-
type: BooleanConstructor;
|
76
|
-
default: boolean;
|
77
|
-
};
|
78
|
-
showHeaderBottomLine: {
|
79
|
-
type: BooleanConstructor;
|
80
|
-
default: boolean;
|
81
|
-
};
|
82
|
-
};
|
83
|
-
export type DialogProps = ExtractPropTypes<typeof dialogProps>;
|
@@ -1,33 +0,0 @@
|
|
1
|
-
import type { RenderFunction, VNode } from 'vue';
|
2
|
-
export type DialogBeforeAction = () => boolean | Promise<boolean>;
|
3
|
-
export type DialogContent = string | number | VNode | RenderFunction;
|
4
|
-
export interface DialogOptions {
|
5
|
-
title?: DialogContent;
|
6
|
-
content?: DialogContent;
|
7
|
-
footer?: boolean | ((scoped: DialogFooterScoped) => VNode);
|
8
|
-
okText?: string;
|
9
|
-
cancelText?: string;
|
10
|
-
mask?: boolean;
|
11
|
-
maskToClose?: boolean;
|
12
|
-
onOk?: (e: Event) => void;
|
13
|
-
beforeOnOk?: DialogBeforeAction;
|
14
|
-
onCancel?: (e: Event) => void;
|
15
|
-
beforeOnCancel?: DialogBeforeAction;
|
16
|
-
width?: number | string;
|
17
|
-
height?: number | string;
|
18
|
-
top?: number | string;
|
19
|
-
center?: boolean;
|
20
|
-
renderTo?: string | HTMLElement;
|
21
|
-
hideCancel?: boolean;
|
22
|
-
hideOk?: boolean;
|
23
|
-
popupClass?: string;
|
24
|
-
}
|
25
|
-
export type DialogFooterAction = 'cancel' | 'ok';
|
26
|
-
export interface DialogFooterScoped {
|
27
|
-
cancel(): void;
|
28
|
-
ok(): void;
|
29
|
-
loadingObj?: {
|
30
|
-
ok: boolean;
|
31
|
-
cancel: boolean;
|
32
|
-
};
|
33
|
-
}
|
@@ -1,116 +0,0 @@
|
|
1
|
-
import type { PropType } from 'vue';
|
2
|
-
import type { IMessage } from './props';
|
3
|
-
declare const _sfc_main: 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<"success" | "error" | "warning" | "strong" | "info">;
|
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<"success" | "error" | "warning" | "strong" | "info">;
|
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
|
-
zIndex: number;
|
105
|
-
offset: number;
|
106
|
-
center: boolean;
|
107
|
-
message: IMessage;
|
108
|
-
type: "success" | "error" | "warning" | "strong" | "info";
|
109
|
-
popupClass: string;
|
110
|
-
showClose: boolean;
|
111
|
-
onClose: () => void;
|
112
|
-
useHTML: boolean;
|
113
|
-
id: string;
|
114
|
-
duration: number;
|
115
|
-
}, {}, Record<string, import("vue").Component<any, any, any, import("vue").ComputedOptions, import("vue").MethodOptions, {}, any>>, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
116
|
-
export default _sfc_main;
|
@@ -1,31 +0,0 @@
|
|
1
|
-
import type { 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;
|