x-next 1.3.1 → 1.4.0
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/AI_USAGE.md +2 -2
- package/CHANGELOG.md +36 -0
- package/dist/_utils/constant.d.ts +1 -1
- package/dist/_utils/palette.d.ts +6 -14
- package/dist/components/alert/Alert.vue.d.ts +9 -9
- package/dist/components/alert/index.d.ts +6 -6
- package/dist/components/button/ButtonGroup.vue.d.ts +22 -18
- package/dist/components/date-picker/DatePanel.vue.d.ts +342 -1
- package/dist/components/date-picker/DatePicker.vue.d.ts +343 -2
- package/dist/components/date-picker/index.d.ts +1765 -1083
- package/dist/components/form-input-tag/index.d.ts +26 -25
- package/dist/components/form-input-tag/interface.d.ts +8 -0
- package/dist/components/link/Link.vue.d.ts +4 -4
- package/dist/components/link/index.d.ts +6 -6
- package/dist/components/message/index.d.ts +3 -3
- package/dist/components/message/message.vue.d.ts +1 -1
- package/dist/components/notification/Notification.d.ts +1 -1
- package/dist/components/notification/index.d.ts +3 -3
- package/dist/components/popconfirm/src/types.d.ts +1 -1
- package/dist/components/progress/Progress.vue.d.ts +3 -3
- package/dist/components/progress/index.d.ts +3 -3
- package/dist/components/tag/Tag.vue.d.ts +14 -0
- package/dist/components/tag/index.d.ts +9 -0
- package/dist/components/tag/interface.d.ts +5 -0
- package/dist/components/trend-chart/components/TrendChart.d.ts +127 -17
- package/dist/components/trend-chart/components/trend-chart-curve.d.ts +27 -7
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +4 -0
- package/dist/components/trend-chart/helpers/getPadding.d.ts +3 -2
- package/dist/components/trend-chart/index.d.ts +223 -28
- package/dist/components/trend-chart/props.d.ts +63 -5
- package/dist/es/_styles/palette-aliases.js +182 -127
- package/dist/es/_utils/palette.js +49 -43
- package/dist/es/components/_components/picker/input-range.vue2.js +10 -10
- package/dist/es/components/_components/picker/input.vue2.js +20 -20
- package/dist/es/components/_components/select-view/select-view.js +2 -2
- package/dist/es/components/alert/Alert.vue.js +2 -2
- package/dist/es/components/alert/Alert.vue2.js +21 -20
- package/dist/es/components/button/Button.js +17 -17
- package/dist/es/components/button/ButtonGroup.vue2.js +11 -9
- package/dist/es/components/date-picker/DatePanel.vue.js +71 -62
- package/dist/es/components/date-picker/DatePanel.vue2.js +50 -40
- package/dist/es/components/date-picker/DatePicker.vue2.js +1 -1
- package/dist/es/components/form/form-item-label.vue.js +25 -22
- package/dist/es/components/form/form-item-label.vue2.js +1 -1
- package/dist/es/components/form-checkbox/icon-check.js +12 -43
- package/dist/es/components/form-input/InputPassword.vue2.js +2 -2
- package/dist/es/components/form-input/InputSearch.js +1 -1
- package/dist/es/components/form-input-number/InputNumber.js +4 -4
- package/dist/es/components/form-input-tag/InputTag.js +168 -147
- package/dist/es/components/form-input-tag/utils.js +21 -19
- package/dist/es/components/form-textarea/Textarea.vue2.js +1 -1
- package/dist/es/components/link/Link.vue2.js +1 -1
- package/dist/es/components/popconfirm/src/popup.vue.js +1 -1
- package/dist/es/components/progress/Progress.vue2.js +1 -1
- package/dist/es/components/table/Table.js +1 -1
- package/dist/es/components/table/table-th.js +2 -2
- package/dist/es/components/tabs/tabs-button.js +2 -2
- package/dist/es/components/tabs/tabs-nav.js +1 -1
- package/dist/es/components/tag/Tag.vue.js +20 -20
- package/dist/es/components/tag/Tag.vue2.js +35 -28
- package/dist/es/components/time-picker/TimePanel.vue.js +30 -29
- package/dist/es/components/time-picker/TimePicker.vue2.js +1 -1
- package/dist/es/components/time-picker/TimeRangePanel.js +26 -23
- package/dist/es/components/trend-chart/components/TrendChart.js +208 -142
- package/dist/es/components/trend-chart/components/trend-chart-curve.js +124 -59
- package/dist/es/components/trend-chart/components/trend-chart-labels.js +43 -41
- package/dist/es/components/trend-chart/helpers/getPadding.js +3 -3
- package/dist/es/components/trend-chart/props.js +101 -33
- package/dist/es/components/trend-chart/themes.js +15 -15
- package/dist/es/components/watermark/controller.js +40 -40
- package/dist/es/icons/default/calendar.js +15 -0
- package/dist/es/icons/default/clock-circle.js +15 -0
- package/dist/es/icons/default/double-left.js +15 -0
- package/dist/es/icons/default/double-right.js +15 -0
- package/dist/es/icons/default/down.js +16 -0
- package/dist/es/icons/default/eye-invisible.js +20 -0
- package/dist/es/icons/default/eye.js +18 -0
- package/dist/es/icons/default/left.js +15 -0
- package/dist/es/icons/default/minus.js +16 -0
- package/dist/es/icons/default/plus.js +16 -0
- package/dist/es/icons/default/question-circle.js +18 -0
- package/dist/es/icons/default/right.js +15 -0
- package/dist/es/icons/default/search.js +16 -0
- package/dist/es/icons/default/up.js +16 -0
- package/dist/es/icons/icon.js +26 -25
- package/dist/es/icons/public/boxicons/basic.js +1893 -0
- package/dist/es/icons/public/boxicons/brands.js +304 -0
- package/dist/es/icons/public/boxicons/filled.js +1893 -0
- package/dist/es/icons/public/boxicons/index.js +24 -0
- package/dist/es/icons/public/boxicons/names.js +4082 -0
- package/dist/es/icons/registry.js +15 -15
- package/dist/es/style.css +1 -1
- package/dist/icons/default/calendar.d.ts +93 -0
- package/dist/icons/default/clock-circle.d.ts +93 -0
- package/dist/icons/{_self/down.d.ts → default/double-left.d.ts} +6 -0
- package/dist/icons/{_self/eye-invisible.d.ts → default/double-right.d.ts} +6 -0
- package/dist/icons/default/down.d.ts +93 -0
- package/dist/icons/default/eye-invisible.d.ts +93 -0
- package/dist/icons/default/eye.d.ts +93 -0
- package/dist/icons/{_self/eye.d.ts → default/left.d.ts} +7 -0
- package/dist/icons/default/minus.d.ts +93 -0
- package/dist/icons/{_self → default}/plus.d.ts +7 -0
- package/dist/icons/default/question-circle.d.ts +93 -0
- package/dist/icons/{_self/minus.d.ts → default/right.d.ts} +7 -0
- package/dist/icons/{_self → default}/search.d.ts +7 -0
- package/dist/icons/{_self → default}/up.d.ts +7 -0
- package/dist/icons/public/boxicons/basic.cjs +1 -0
- package/dist/icons/public/boxicons/basic.d.ts +2 -0
- package/dist/icons/public/boxicons/brands.cjs +1 -0
- package/dist/icons/public/boxicons/brands.d.ts +2 -0
- package/dist/icons/public/boxicons/filled.cjs +1 -0
- package/dist/icons/public/boxicons/filled.d.ts +2 -0
- package/dist/icons/public/boxicons/index.cjs +1 -0
- package/dist/icons/public/boxicons/index.d.ts +10 -0
- package/dist/icons/public/boxicons/names.d.ts +10 -0
- package/dist/icons/registry.d.ts +5 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/style/alert.css +1 -1
- package/dist/style/base.css +1 -1
- package/dist/style/button.css +1 -1
- package/dist/style/date-picker.css +1 -1
- package/dist/style/dialog.css +1 -1
- package/dist/style/drawer.css +1 -1
- package/dist/style/dropdown.css +1 -1
- package/dist/style/form-input-number.css +1 -1
- package/dist/style/form-input-tag.css +1 -1
- package/dist/style/form-input.css +1 -1
- package/dist/style/form-radio.css +1 -1
- package/dist/style/form-select.css +1 -1
- package/dist/style/form-textarea.css +1 -1
- package/dist/style/form.css +1 -1
- package/dist/style/link.css +1 -1
- package/dist/style/menu.css +1 -1
- package/dist/style/message-box.css +1 -1
- package/dist/style/network.css +1 -1
- package/dist/style/popconfirm.css +1 -1
- package/dist/style/popover.css +1 -1
- package/dist/style/popup.css +1 -1
- package/dist/style/progress.css +1 -1
- package/dist/style/rate.css +1 -1
- package/dist/style/spin.css +1 -1
- package/dist/style/steps.css +1 -1
- package/dist/style/table.css +1 -1
- package/dist/style/tag.css +1 -1
- package/dist/style/time-picker.css +1 -1
- package/dist/style/time-range-selector.css +1 -1
- package/dist/style.css +1 -1
- package/package.json +30 -4
- package/dist/es/icons/_self/down.js +0 -16
- package/dist/es/icons/_self/eye-invisible.js +0 -13
- package/dist/es/icons/_self/eye.js +0 -13
- package/dist/es/icons/_self/minus.js +0 -13
- package/dist/es/icons/_self/plus.js +0 -12
- package/dist/es/icons/_self/question-message.js +0 -12
- package/dist/es/icons/_self/search.js +0 -13
- package/dist/es/icons/_self/up.js +0 -16
- package/dist/es/icons/_ui/calendar.js +0 -13
- package/dist/es/icons/_ui/time.js +0 -12
|
@@ -9,6 +9,14 @@ export declare const TrendChart: {
|
|
|
9
9
|
type: import('vue').PropType<import('./props').TrendChartStatus>;
|
|
10
10
|
default: undefined;
|
|
11
11
|
};
|
|
12
|
+
height: {
|
|
13
|
+
type: import('vue').PropType<number | string>;
|
|
14
|
+
default: number;
|
|
15
|
+
};
|
|
16
|
+
width: {
|
|
17
|
+
type: import('vue').PropType<number | string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
12
20
|
grid: {
|
|
13
21
|
default: null;
|
|
14
22
|
type: import('vue').PropType<import('./props').Grid>;
|
|
@@ -25,28 +33,70 @@ export declare const TrendChart: {
|
|
|
25
33
|
};
|
|
26
34
|
padding: {
|
|
27
35
|
default: string;
|
|
28
|
-
type:
|
|
29
|
-
validator(val: string): boolean;
|
|
36
|
+
type: import('vue').PropType<string | number>;
|
|
37
|
+
validator(val: string | number): boolean;
|
|
38
|
+
};
|
|
39
|
+
smooth: {
|
|
40
|
+
default: boolean;
|
|
41
|
+
type: BooleanConstructor;
|
|
42
|
+
};
|
|
43
|
+
stroke: {
|
|
44
|
+
default: boolean;
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
};
|
|
47
|
+
fill: {
|
|
48
|
+
default: boolean;
|
|
49
|
+
type: BooleanConstructor;
|
|
50
|
+
};
|
|
51
|
+
showPoints: {
|
|
52
|
+
default: string;
|
|
53
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
54
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
30
55
|
};
|
|
31
56
|
interactive: {
|
|
32
57
|
default: boolean;
|
|
33
58
|
type: BooleanConstructor;
|
|
34
59
|
};
|
|
60
|
+
tooltip: {
|
|
61
|
+
default: boolean;
|
|
62
|
+
type: BooleanConstructor;
|
|
63
|
+
};
|
|
64
|
+
tooltipFormatter: {
|
|
65
|
+
default: (value: number) => string;
|
|
66
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
67
|
+
};
|
|
68
|
+
ariaLabel: {
|
|
69
|
+
type: StringConstructor;
|
|
70
|
+
};
|
|
35
71
|
theme: {
|
|
36
72
|
type: import('vue').PropType<import('./props').Theme>;
|
|
37
73
|
default: () => {};
|
|
38
74
|
};
|
|
39
75
|
}>> & Readonly<{
|
|
40
|
-
"onMouse-move"?: ((event:
|
|
76
|
+
"onMouse-move"?: ((event: {
|
|
77
|
+
index: number;
|
|
78
|
+
data: number;
|
|
79
|
+
} | null) => any) | undefined;
|
|
41
80
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
42
|
-
'mouse-move': (event:
|
|
81
|
+
'mouse-move': (event: {
|
|
82
|
+
index: number;
|
|
83
|
+
data: number;
|
|
84
|
+
} | null) => boolean;
|
|
43
85
|
}, import('vue').PublicProps, {
|
|
86
|
+
fill: boolean;
|
|
44
87
|
status: import('./props').TrendChartStatus;
|
|
88
|
+
height: string | number;
|
|
89
|
+
width: string | number;
|
|
45
90
|
grid: import('./props').Grid;
|
|
46
|
-
padding: string;
|
|
91
|
+
padding: string | number;
|
|
92
|
+
stroke: boolean;
|
|
93
|
+
smooth: boolean;
|
|
94
|
+
tooltip: boolean;
|
|
47
95
|
dataset: import('./props').DataSet;
|
|
48
96
|
theme: import('./props').Theme;
|
|
49
97
|
interactive: boolean;
|
|
98
|
+
showPoints: import('./props').ShowPoints;
|
|
99
|
+
tooltipFormatter: (value: number) => string;
|
|
50
100
|
labels: import('./props').Labels;
|
|
51
101
|
}, true, {}, {}, {
|
|
52
102
|
TrendChartGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -105,6 +155,8 @@ export declare const TrendChart: {
|
|
|
105
155
|
TrendChartLabels: import('vue').DefineComponent<{
|
|
106
156
|
boundary: import('./props').Boundary;
|
|
107
157
|
yLabelsTextFormatter: Function;
|
|
158
|
+
color?: import('../../_props/css').CSSColor | undefined;
|
|
159
|
+
fontSize?: number | undefined;
|
|
108
160
|
minValue?: number | undefined;
|
|
109
161
|
maxValue?: number | undefined;
|
|
110
162
|
xLabels?: unknown[] | undefined;
|
|
@@ -114,6 +166,8 @@ export declare const TrendChart: {
|
|
|
114
166
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
115
167
|
boundary: import('./props').Boundary;
|
|
116
168
|
yLabelsTextFormatter: Function;
|
|
169
|
+
color?: import('../../_props/css').CSSColor | undefined;
|
|
170
|
+
fontSize?: number | undefined;
|
|
117
171
|
minValue?: number | undefined;
|
|
118
172
|
maxValue?: number | undefined;
|
|
119
173
|
xLabels?: unknown[] | undefined;
|
|
@@ -153,6 +207,9 @@ export declare const TrendChart: {
|
|
|
153
207
|
className: {
|
|
154
208
|
type: import('vue').PropType<string>;
|
|
155
209
|
};
|
|
210
|
+
clipPath: {
|
|
211
|
+
type: StringConstructor;
|
|
212
|
+
};
|
|
156
213
|
smooth: {
|
|
157
214
|
default: boolean;
|
|
158
215
|
type: BooleanConstructor;
|
|
@@ -166,13 +223,19 @@ export declare const TrendChart: {
|
|
|
166
223
|
type: BooleanConstructor;
|
|
167
224
|
};
|
|
168
225
|
showPoints: {
|
|
226
|
+
default: string;
|
|
227
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
228
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
229
|
+
};
|
|
230
|
+
tooltip: {
|
|
169
231
|
default: boolean;
|
|
170
232
|
type: BooleanConstructor;
|
|
171
233
|
};
|
|
172
|
-
|
|
173
|
-
|
|
234
|
+
tooltipFormatter: {
|
|
235
|
+
default: (value: number) => string;
|
|
236
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
174
237
|
};
|
|
175
|
-
|
|
238
|
+
theme: {
|
|
176
239
|
type: import('vue').PropType<import('./props').CurveTheme>;
|
|
177
240
|
};
|
|
178
241
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -206,6 +269,9 @@ export declare const TrendChart: {
|
|
|
206
269
|
className: {
|
|
207
270
|
type: import('vue').PropType<string>;
|
|
208
271
|
};
|
|
272
|
+
clipPath: {
|
|
273
|
+
type: StringConstructor;
|
|
274
|
+
};
|
|
209
275
|
smooth: {
|
|
210
276
|
default: boolean;
|
|
211
277
|
type: BooleanConstructor;
|
|
@@ -219,13 +285,19 @@ export declare const TrendChart: {
|
|
|
219
285
|
type: BooleanConstructor;
|
|
220
286
|
};
|
|
221
287
|
showPoints: {
|
|
288
|
+
default: string;
|
|
289
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
290
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
291
|
+
};
|
|
292
|
+
tooltip: {
|
|
222
293
|
default: boolean;
|
|
223
294
|
type: BooleanConstructor;
|
|
224
295
|
};
|
|
225
|
-
|
|
226
|
-
|
|
296
|
+
tooltipFormatter: {
|
|
297
|
+
default: (value: number) => string;
|
|
298
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
227
299
|
};
|
|
228
|
-
|
|
300
|
+
theme: {
|
|
229
301
|
type: import('vue').PropType<import('./props').CurveTheme>;
|
|
230
302
|
};
|
|
231
303
|
}>> & Readonly<{}>, {
|
|
@@ -233,8 +305,10 @@ export declare const TrendChart: {
|
|
|
233
305
|
data: number[];
|
|
234
306
|
stroke: boolean;
|
|
235
307
|
smooth: boolean;
|
|
308
|
+
tooltip: boolean;
|
|
236
309
|
boundary: import('./props').Boundary;
|
|
237
|
-
showPoints:
|
|
310
|
+
showPoints: import('./props').ShowPoints;
|
|
311
|
+
tooltipFormatter: (value: number) => string;
|
|
238
312
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
239
313
|
} & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
240
314
|
P: {};
|
|
@@ -253,6 +327,14 @@ export declare const TrendChart: {
|
|
|
253
327
|
type: import('vue').PropType<import('./props').TrendChartStatus>;
|
|
254
328
|
default: undefined;
|
|
255
329
|
};
|
|
330
|
+
height: {
|
|
331
|
+
type: import('vue').PropType<number | string>;
|
|
332
|
+
default: number;
|
|
333
|
+
};
|
|
334
|
+
width: {
|
|
335
|
+
type: import('vue').PropType<number | string>;
|
|
336
|
+
default: string;
|
|
337
|
+
};
|
|
256
338
|
grid: {
|
|
257
339
|
default: null;
|
|
258
340
|
type: import('vue').PropType<import('./props').Grid>;
|
|
@@ -269,26 +351,65 @@ export declare const TrendChart: {
|
|
|
269
351
|
};
|
|
270
352
|
padding: {
|
|
271
353
|
default: string;
|
|
272
|
-
type:
|
|
273
|
-
validator(val: string): boolean;
|
|
354
|
+
type: import('vue').PropType<string | number>;
|
|
355
|
+
validator(val: string | number): boolean;
|
|
356
|
+
};
|
|
357
|
+
smooth: {
|
|
358
|
+
default: boolean;
|
|
359
|
+
type: BooleanConstructor;
|
|
360
|
+
};
|
|
361
|
+
stroke: {
|
|
362
|
+
default: boolean;
|
|
363
|
+
type: BooleanConstructor;
|
|
364
|
+
};
|
|
365
|
+
fill: {
|
|
366
|
+
default: boolean;
|
|
367
|
+
type: BooleanConstructor;
|
|
368
|
+
};
|
|
369
|
+
showPoints: {
|
|
370
|
+
default: string;
|
|
371
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
372
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
274
373
|
};
|
|
275
374
|
interactive: {
|
|
276
375
|
default: boolean;
|
|
277
376
|
type: BooleanConstructor;
|
|
278
377
|
};
|
|
378
|
+
tooltip: {
|
|
379
|
+
default: boolean;
|
|
380
|
+
type: BooleanConstructor;
|
|
381
|
+
};
|
|
382
|
+
tooltipFormatter: {
|
|
383
|
+
default: (value: number) => string;
|
|
384
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
385
|
+
};
|
|
386
|
+
ariaLabel: {
|
|
387
|
+
type: StringConstructor;
|
|
388
|
+
};
|
|
279
389
|
theme: {
|
|
280
390
|
type: import('vue').PropType<import('./props').Theme>;
|
|
281
391
|
default: () => {};
|
|
282
392
|
};
|
|
283
393
|
}>> & Readonly<{
|
|
284
|
-
"onMouse-move"?: ((event:
|
|
394
|
+
"onMouse-move"?: ((event: {
|
|
395
|
+
index: number;
|
|
396
|
+
data: number;
|
|
397
|
+
} | null) => any) | undefined;
|
|
285
398
|
}>, () => VNode, {}, {}, {}, {
|
|
399
|
+
fill: boolean;
|
|
286
400
|
status: import('./props').TrendChartStatus;
|
|
401
|
+
height: string | number;
|
|
402
|
+
width: string | number;
|
|
287
403
|
grid: import('./props').Grid;
|
|
288
|
-
padding: string;
|
|
404
|
+
padding: string | number;
|
|
405
|
+
stroke: boolean;
|
|
406
|
+
smooth: boolean;
|
|
407
|
+
tooltip: boolean;
|
|
289
408
|
dataset: import('./props').DataSet;
|
|
290
409
|
theme: import('./props').Theme;
|
|
291
410
|
interactive: boolean;
|
|
411
|
+
showPoints: import('./props').ShowPoints;
|
|
412
|
+
tooltipFormatter: (value: number) => string;
|
|
292
413
|
labels: import('./props').Labels;
|
|
293
414
|
}>;
|
|
294
415
|
__isFragment?: never;
|
|
@@ -304,6 +425,14 @@ export declare const TrendChart: {
|
|
|
304
425
|
type: import('vue').PropType<import('./props').TrendChartStatus>;
|
|
305
426
|
default: undefined;
|
|
306
427
|
};
|
|
428
|
+
height: {
|
|
429
|
+
type: import('vue').PropType<number | string>;
|
|
430
|
+
default: number;
|
|
431
|
+
};
|
|
432
|
+
width: {
|
|
433
|
+
type: import('vue').PropType<number | string>;
|
|
434
|
+
default: string;
|
|
435
|
+
};
|
|
307
436
|
grid: {
|
|
308
437
|
default: null;
|
|
309
438
|
type: import('vue').PropType<import('./props').Grid>;
|
|
@@ -320,28 +449,70 @@ export declare const TrendChart: {
|
|
|
320
449
|
};
|
|
321
450
|
padding: {
|
|
322
451
|
default: string;
|
|
323
|
-
type:
|
|
324
|
-
validator(val: string): boolean;
|
|
452
|
+
type: import('vue').PropType<string | number>;
|
|
453
|
+
validator(val: string | number): boolean;
|
|
454
|
+
};
|
|
455
|
+
smooth: {
|
|
456
|
+
default: boolean;
|
|
457
|
+
type: BooleanConstructor;
|
|
458
|
+
};
|
|
459
|
+
stroke: {
|
|
460
|
+
default: boolean;
|
|
461
|
+
type: BooleanConstructor;
|
|
462
|
+
};
|
|
463
|
+
fill: {
|
|
464
|
+
default: boolean;
|
|
465
|
+
type: BooleanConstructor;
|
|
466
|
+
};
|
|
467
|
+
showPoints: {
|
|
468
|
+
default: string;
|
|
469
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
470
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
325
471
|
};
|
|
326
472
|
interactive: {
|
|
327
473
|
default: boolean;
|
|
328
474
|
type: BooleanConstructor;
|
|
329
475
|
};
|
|
476
|
+
tooltip: {
|
|
477
|
+
default: boolean;
|
|
478
|
+
type: BooleanConstructor;
|
|
479
|
+
};
|
|
480
|
+
tooltipFormatter: {
|
|
481
|
+
default: (value: number) => string;
|
|
482
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
483
|
+
};
|
|
484
|
+
ariaLabel: {
|
|
485
|
+
type: StringConstructor;
|
|
486
|
+
};
|
|
330
487
|
theme: {
|
|
331
488
|
type: import('vue').PropType<import('./props').Theme>;
|
|
332
489
|
default: () => {};
|
|
333
490
|
};
|
|
334
491
|
}>> & Readonly<{
|
|
335
|
-
"onMouse-move"?: ((event:
|
|
492
|
+
"onMouse-move"?: ((event: {
|
|
493
|
+
index: number;
|
|
494
|
+
data: number;
|
|
495
|
+
} | null) => any) | undefined;
|
|
336
496
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
337
|
-
'mouse-move': (event:
|
|
497
|
+
'mouse-move': (event: {
|
|
498
|
+
index: number;
|
|
499
|
+
data: number;
|
|
500
|
+
} | null) => boolean;
|
|
338
501
|
}, string, {
|
|
502
|
+
fill: boolean;
|
|
339
503
|
status: import('./props').TrendChartStatus;
|
|
504
|
+
height: string | number;
|
|
505
|
+
width: string | number;
|
|
340
506
|
grid: import('./props').Grid;
|
|
341
|
-
padding: string;
|
|
507
|
+
padding: string | number;
|
|
508
|
+
stroke: boolean;
|
|
509
|
+
smooth: boolean;
|
|
510
|
+
tooltip: boolean;
|
|
342
511
|
dataset: import('./props').DataSet;
|
|
343
512
|
theme: import('./props').Theme;
|
|
344
513
|
interactive: boolean;
|
|
514
|
+
showPoints: import('./props').ShowPoints;
|
|
515
|
+
tooltipFormatter: (value: number) => string;
|
|
345
516
|
labels: import('./props').Labels;
|
|
346
517
|
}, {}, string, {}, {
|
|
347
518
|
TrendChartGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
@@ -400,6 +571,8 @@ export declare const TrendChart: {
|
|
|
400
571
|
TrendChartLabels: import('vue').DefineComponent<{
|
|
401
572
|
boundary: import('./props').Boundary;
|
|
402
573
|
yLabelsTextFormatter: Function;
|
|
574
|
+
color?: import('../../_props/css').CSSColor | undefined;
|
|
575
|
+
fontSize?: number | undefined;
|
|
403
576
|
minValue?: number | undefined;
|
|
404
577
|
maxValue?: number | undefined;
|
|
405
578
|
xLabels?: unknown[] | undefined;
|
|
@@ -409,6 +582,8 @@ export declare const TrendChart: {
|
|
|
409
582
|
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
410
583
|
boundary: import('./props').Boundary;
|
|
411
584
|
yLabelsTextFormatter: Function;
|
|
585
|
+
color?: import('../../_props/css').CSSColor | undefined;
|
|
586
|
+
fontSize?: number | undefined;
|
|
412
587
|
minValue?: number | undefined;
|
|
413
588
|
maxValue?: number | undefined;
|
|
414
589
|
xLabels?: unknown[] | undefined;
|
|
@@ -448,6 +623,9 @@ export declare const TrendChart: {
|
|
|
448
623
|
className: {
|
|
449
624
|
type: import('vue').PropType<string>;
|
|
450
625
|
};
|
|
626
|
+
clipPath: {
|
|
627
|
+
type: StringConstructor;
|
|
628
|
+
};
|
|
451
629
|
smooth: {
|
|
452
630
|
default: boolean;
|
|
453
631
|
type: BooleanConstructor;
|
|
@@ -461,13 +639,19 @@ export declare const TrendChart: {
|
|
|
461
639
|
type: BooleanConstructor;
|
|
462
640
|
};
|
|
463
641
|
showPoints: {
|
|
642
|
+
default: string;
|
|
643
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
644
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
645
|
+
};
|
|
646
|
+
tooltip: {
|
|
464
647
|
default: boolean;
|
|
465
648
|
type: BooleanConstructor;
|
|
466
649
|
};
|
|
467
|
-
|
|
468
|
-
|
|
650
|
+
tooltipFormatter: {
|
|
651
|
+
default: (value: number) => string;
|
|
652
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
469
653
|
};
|
|
470
|
-
|
|
654
|
+
theme: {
|
|
471
655
|
type: import('vue').PropType<import('./props').CurveTheme>;
|
|
472
656
|
};
|
|
473
657
|
}>, () => VNode, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -501,6 +685,9 @@ export declare const TrendChart: {
|
|
|
501
685
|
className: {
|
|
502
686
|
type: import('vue').PropType<string>;
|
|
503
687
|
};
|
|
688
|
+
clipPath: {
|
|
689
|
+
type: StringConstructor;
|
|
690
|
+
};
|
|
504
691
|
smooth: {
|
|
505
692
|
default: boolean;
|
|
506
693
|
type: BooleanConstructor;
|
|
@@ -514,13 +701,19 @@ export declare const TrendChart: {
|
|
|
514
701
|
type: BooleanConstructor;
|
|
515
702
|
};
|
|
516
703
|
showPoints: {
|
|
704
|
+
default: string;
|
|
705
|
+
type: import('vue').PropType<import('./props').ShowPoints>;
|
|
706
|
+
validator(val: import('./props').ShowPoints): val is boolean | "auto";
|
|
707
|
+
};
|
|
708
|
+
tooltip: {
|
|
517
709
|
default: boolean;
|
|
518
710
|
type: BooleanConstructor;
|
|
519
711
|
};
|
|
520
|
-
|
|
521
|
-
|
|
712
|
+
tooltipFormatter: {
|
|
713
|
+
default: (value: number) => string;
|
|
714
|
+
type: import('vue').PropType<(value: number) => string>;
|
|
522
715
|
};
|
|
523
|
-
|
|
716
|
+
theme: {
|
|
524
717
|
type: import('vue').PropType<import('./props').CurveTheme>;
|
|
525
718
|
};
|
|
526
719
|
}>> & Readonly<{}>, {
|
|
@@ -528,8 +721,10 @@ export declare const TrendChart: {
|
|
|
528
721
|
data: number[];
|
|
529
722
|
stroke: boolean;
|
|
530
723
|
smooth: boolean;
|
|
724
|
+
tooltip: boolean;
|
|
531
725
|
boundary: import('./props').Boundary;
|
|
532
|
-
showPoints:
|
|
726
|
+
showPoints: import('./props').ShowPoints;
|
|
727
|
+
tooltipFormatter: (value: number) => string;
|
|
533
728
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
534
729
|
} & import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
535
730
|
install(app: import('vue').App): void;
|
|
@@ -34,7 +34,13 @@ export type Labels = {
|
|
|
34
34
|
xLabels: string[];
|
|
35
35
|
yLabels: number;
|
|
36
36
|
yLabelsTextFormatter: (value: number) => string;
|
|
37
|
+
fontSize?: number;
|
|
38
|
+
color?: CSSColor;
|
|
37
39
|
};
|
|
40
|
+
/** 数据点显示策略:true 常显,false 不显示,auto 时数据点少时常显、超过两个时仅高亮当前点 */
|
|
41
|
+
export type ShowPoints = boolean | 'auto';
|
|
42
|
+
/** 填充类型:gradient 由描边色向透明渐变,solid 为统一透明度纯色 */
|
|
43
|
+
export type FillType = 'solid' | 'gradient';
|
|
38
44
|
export type CurveTheme = {
|
|
39
45
|
stroke?: {
|
|
40
46
|
width?: number;
|
|
@@ -42,6 +48,7 @@ export type CurveTheme = {
|
|
|
42
48
|
opacity?: number;
|
|
43
49
|
};
|
|
44
50
|
fill?: {
|
|
51
|
+
type?: FillType;
|
|
45
52
|
color?: CSSColor;
|
|
46
53
|
opacity?: number;
|
|
47
54
|
};
|
|
@@ -69,6 +76,14 @@ export declare const trendChartProps: {
|
|
|
69
76
|
type: PropType<TrendChartStatus>;
|
|
70
77
|
default: undefined;
|
|
71
78
|
};
|
|
79
|
+
height: {
|
|
80
|
+
type: PropType<number | string>;
|
|
81
|
+
default: number;
|
|
82
|
+
};
|
|
83
|
+
width: {
|
|
84
|
+
type: PropType<number | string>;
|
|
85
|
+
default: string;
|
|
86
|
+
};
|
|
72
87
|
grid: {
|
|
73
88
|
default: null;
|
|
74
89
|
type: PropType<Grid>;
|
|
@@ -85,13 +100,41 @@ export declare const trendChartProps: {
|
|
|
85
100
|
};
|
|
86
101
|
padding: {
|
|
87
102
|
default: string;
|
|
88
|
-
type:
|
|
89
|
-
validator(val: string): boolean;
|
|
103
|
+
type: PropType<string | number>;
|
|
104
|
+
validator(val: string | number): boolean;
|
|
105
|
+
};
|
|
106
|
+
smooth: {
|
|
107
|
+
default: boolean;
|
|
108
|
+
type: BooleanConstructor;
|
|
109
|
+
};
|
|
110
|
+
stroke: {
|
|
111
|
+
default: boolean;
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
};
|
|
114
|
+
fill: {
|
|
115
|
+
default: boolean;
|
|
116
|
+
type: BooleanConstructor;
|
|
117
|
+
};
|
|
118
|
+
showPoints: {
|
|
119
|
+
default: string;
|
|
120
|
+
type: PropType<ShowPoints>;
|
|
121
|
+
validator(val: ShowPoints): val is boolean | "auto";
|
|
90
122
|
};
|
|
91
123
|
interactive: {
|
|
92
124
|
default: boolean;
|
|
93
125
|
type: BooleanConstructor;
|
|
94
126
|
};
|
|
127
|
+
tooltip: {
|
|
128
|
+
default: boolean;
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
};
|
|
131
|
+
tooltipFormatter: {
|
|
132
|
+
default: (value: number) => string;
|
|
133
|
+
type: PropType<(value: number) => string>;
|
|
134
|
+
};
|
|
135
|
+
ariaLabel: {
|
|
136
|
+
type: StringConstructor;
|
|
137
|
+
};
|
|
95
138
|
theme: {
|
|
96
139
|
type: PropType<Theme>;
|
|
97
140
|
default: () => {};
|
|
@@ -128,6 +171,9 @@ export declare const trendChartCurveProps: {
|
|
|
128
171
|
className: {
|
|
129
172
|
type: PropType<string>;
|
|
130
173
|
};
|
|
174
|
+
clipPath: {
|
|
175
|
+
type: StringConstructor;
|
|
176
|
+
};
|
|
131
177
|
smooth: {
|
|
132
178
|
default: boolean;
|
|
133
179
|
type: BooleanConstructor;
|
|
@@ -141,13 +187,19 @@ export declare const trendChartCurveProps: {
|
|
|
141
187
|
type: BooleanConstructor;
|
|
142
188
|
};
|
|
143
189
|
showPoints: {
|
|
190
|
+
default: string;
|
|
191
|
+
type: PropType<ShowPoints>;
|
|
192
|
+
validator(val: ShowPoints): val is boolean | "auto";
|
|
193
|
+
};
|
|
194
|
+
tooltip: {
|
|
144
195
|
default: boolean;
|
|
145
196
|
type: BooleanConstructor;
|
|
146
197
|
};
|
|
147
|
-
|
|
148
|
-
|
|
198
|
+
tooltipFormatter: {
|
|
199
|
+
default: (value: number) => string;
|
|
200
|
+
type: PropType<(value: number) => string>;
|
|
149
201
|
};
|
|
150
|
-
|
|
202
|
+
theme: {
|
|
151
203
|
type: PropType<CurveTheme>;
|
|
152
204
|
};
|
|
153
205
|
};
|
|
@@ -199,5 +251,11 @@ export declare const trendChartLabelsProps: {
|
|
|
199
251
|
default: (value: any) => any;
|
|
200
252
|
type: FunctionConstructor;
|
|
201
253
|
};
|
|
254
|
+
fontSize: {
|
|
255
|
+
type: NumberConstructor;
|
|
256
|
+
};
|
|
257
|
+
color: {
|
|
258
|
+
type: PropType<CSSColor>;
|
|
259
|
+
};
|
|
202
260
|
};
|
|
203
261
|
export type TrendChartLabelsProps = ExtractPropTypes<typeof trendChartLabelsProps>;
|