x-next 1.6.0 → 1.8.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 +182 -4
- package/CHANGELOG.md +74 -0
- package/dist/_hooks/use-chart-size.d.ts +25 -0
- package/dist/_utils/chart/index.d.ts +6 -0
- package/dist/_utils/chart/padding.d.ts +15 -0
- package/dist/_utils/chart/path.d.ts +34 -0
- package/dist/_utils/chart/scale.d.ts +55 -0
- package/dist/components/_components/chart/ChartAxis.d.ts +85 -0
- package/dist/components/_components/chart/ChartLegend.d.ts +26 -0
- package/dist/components/_components/chart/ChartTooltip.d.ts +76 -0
- package/dist/components/_components/chart/colors.d.ts +10 -0
- package/dist/components/_components/chart/interface.d.ts +38 -0
- package/dist/components/bar-chart/BarChart.d.ts +278 -0
- package/dist/components/bar-chart/helpers/layout.d.ts +55 -0
- package/dist/components/bar-chart/index.d.ts +600 -0
- package/dist/components/bar-chart/interface.d.ts +74 -0
- package/dist/components/bar-chart/props.d.ts +145 -0
- package/dist/components/date-picker/DatePicker.vue.d.ts +3 -3
- package/dist/components/date-picker/index.d.ts +6 -6
- package/dist/components/draggable/Draggable.d.ts +1 -1
- package/dist/components/draggable/index.d.ts +2 -2
- package/dist/components/drawer/index.d.ts +6 -6
- package/dist/components/drawer/src/Drawer.vue.d.ts +3 -3
- package/dist/components/dropdown/Dropdown.vue.d.ts +4 -4
- package/dist/components/dropdown/DropdownButton.vue.d.ts +5 -5
- package/dist/components/dropdown/DropdownSubmenu.vue.d.ts +4 -4
- package/dist/components/dropdown/index.d.ts +29 -29
- package/dist/components/form/FormItem.vue.d.ts +12 -12
- package/dist/components/form/form-item-label.vue.d.ts +3 -3
- package/dist/components/form/index.d.ts +24 -24
- package/dist/components/form-select/Select.d.ts +3 -3
- package/dist/components/form-select/index.d.ts +6 -6
- package/dist/components/form-slider/Slider.vue.d.ts +3 -3
- package/dist/components/form-slider/index.d.ts +6 -6
- package/dist/components/form-slider/slider-button.vue.d.ts +3 -3
- package/dist/components/grid/Row.vue.d.ts +3 -3
- package/dist/components/grid/index.d.ts +9 -9
- package/dist/components/heatmap/Heatmap.d.ts +10 -0
- package/dist/components/heatmap/index.d.ts +30 -0
- package/dist/components/image/Image.vue.d.ts +125 -17
- package/dist/components/image/ImagePreview.vue.d.ts +97 -7
- package/dist/components/image/ImagePreviewAction.d.ts +3 -3
- package/dist/components/image/ImagePreviewGroup.vue.d.ts +100 -7
- package/dist/components/image/hooks/use-image-drag.d.ts +2 -2
- package/dist/components/image/index.d.ts +712 -124
- package/dist/components/image/interface.d.ts +9 -1
- package/dist/components/image/preview-toolbar.vue.d.ts +3 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/line-chart/LineChart.d.ts +295 -0
- package/dist/components/line-chart/helpers/layout.d.ts +74 -0
- package/dist/components/line-chart/index.d.ts +614 -0
- package/dist/components/line-chart/interface.d.ts +76 -0
- package/dist/components/line-chart/props.d.ts +173 -0
- package/dist/components/menu/sub-menu-pop.vue.d.ts +3 -3
- package/dist/components/pagination/page-options.vue.d.ts +6 -6
- package/dist/components/pie-chart/PieChart.d.ts +219 -0
- package/dist/components/pie-chart/index.d.ts +470 -0
- package/dist/components/pie-chart/interface.d.ts +58 -0
- package/dist/components/pie-chart/props.d.ts +107 -0
- package/dist/components/popconfirm/src/popup.vue.d.ts +3 -3
- package/dist/components/popover/Popover.d.ts +1 -1
- package/dist/components/popover/index.d.ts +3 -3
- package/dist/components/popup/Popup.d.ts +1 -1
- package/dist/components/popup/index.d.ts +3 -3
- package/dist/components/space/Space.d.ts +1 -1
- package/dist/components/space/index.d.ts +3 -3
- package/dist/components/tabs/Tabs.d.ts +1 -1
- package/dist/components/tabs/index.d.ts +3 -3
- package/dist/components/time-picker/TimePicker.vue.d.ts +3 -3
- package/dist/components/time-picker/index.d.ts +6 -6
- package/dist/components/tooltip/Tooltip.vue.d.ts +1 -1
- package/dist/components/tooltip/index.d.ts +3 -3
- package/dist/components/trend-chart/components/TrendChart.d.ts +19 -96
- package/dist/components/trend-chart/index.d.ts +33 -187
- package/dist/components/trend-chart/props.d.ts +9 -78
- package/dist/components/trend-chart/themes.d.ts +0 -1
- package/dist/components/trigger/Trigger.d.ts +1 -1
- package/dist/components/trigger/index.d.ts +3 -3
- package/dist/components/upload/Upload.d.ts +372 -0
- package/dist/components/upload/context.d.ts +28 -0
- package/dist/components/upload/index.d.ts +656 -0
- package/dist/components/upload/interface.d.ts +110 -0
- package/dist/components/upload/props.d.ts +321 -0
- package/dist/components/upload/upload-list-item.d.ts +15 -0
- package/dist/components/upload/upload-list.d.ts +11 -0
- package/dist/components/upload/upload-picture-item.d.ts +20 -0
- package/dist/components/upload/upload-trigger.d.ts +8 -0
- package/dist/components/upload/utils.d.ts +48 -0
- package/dist/es/_hooks/use-chart-size.js +25 -0
- package/dist/es/_styles/palette-aliases.js +7 -4
- package/dist/es/_utils/chart/padding.js +22 -0
- package/dist/es/_utils/chart/path.js +69 -0
- package/dist/es/_utils/chart/scale.js +77 -0
- package/dist/es/components/_components/chart/ChartAxis.js +79 -0
- package/dist/es/components/_components/chart/ChartLegend.js +53 -0
- package/dist/es/components/_components/chart/ChartTooltip.js +64 -0
- package/dist/es/components/_components/chart/colors.js +12 -0
- package/dist/es/components/bar-chart/BarChart.js +470 -0
- package/dist/es/components/bar-chart/helpers/layout.js +53 -0
- package/dist/es/components/bar-chart/index.js +8 -0
- package/dist/es/components/bar-chart/props.js +148 -0
- package/dist/es/components/heatmap/Heatmap.js +244 -169
- package/dist/es/components/image/Image.vue.js +55 -45
- package/dist/es/components/image/Image.vue2.js +113 -92
- package/dist/es/components/image/ImagePreview.vue.js +66 -53
- package/dist/es/components/image/ImagePreview.vue2.js +219 -171
- package/dist/es/components/image/ImagePreviewAction.js +12 -15
- package/dist/es/components/image/ImagePreviewGroup.vue.js +21 -20
- package/dist/es/components/image/ImagePreviewGroup.vue2.js +45 -39
- package/dist/es/components/image/hooks/use-image-drag.js +16 -14
- package/dist/es/components/index.js +136 -128
- package/dist/es/components/line-chart/LineChart.js +532 -0
- package/dist/es/components/line-chart/helpers/layout.js +80 -0
- package/dist/es/components/line-chart/index.js +8 -0
- package/dist/es/components/line-chart/props.js +178 -0
- package/dist/es/components/pie-chart/PieChart.js +397 -0
- package/dist/es/components/pie-chart/index.js +8 -0
- package/dist/es/components/pie-chart/props.js +104 -0
- package/dist/es/components/trend-chart/components/TrendChart.js +143 -183
- package/dist/es/components/trend-chart/components/trend-chart-curve.js +85 -81
- package/dist/es/components/trend-chart/props.js +28 -74
- package/dist/es/components/trend-chart/themes.js +30 -31
- package/dist/es/components/upload/Upload.js +420 -0
- package/dist/es/components/upload/context.js +4 -0
- package/dist/es/components/upload/index.js +8 -0
- package/dist/es/components/upload/props.js +321 -0
- package/dist/es/components/upload/upload-list-item.js +138 -0
- package/dist/es/components/upload/upload-list.js +48 -0
- package/dist/es/components/upload/upload-picture-item.js +109 -0
- package/dist/es/components/upload/upload-trigger.js +89 -0
- package/dist/es/components/upload/utils.js +195 -0
- package/dist/es/icons/_self/upload-icons.js +103 -0
- package/dist/es/index.js +197 -189
- package/dist/es/locale/en-US.js +30 -1
- package/dist/es/locale/zh-CN.js +30 -1
- package/dist/es/style.css +1 -1
- package/dist/icons/_self/upload-icons.d.ts +523 -0
- package/dist/index.cjs +4 -4
- package/dist/index.umd.js +4 -4
- package/dist/locale/interface.d.ts +45 -0
- package/dist/style/bar-chart.css +1 -0
- package/dist/style/bar-chart.js +2 -0
- package/dist/style/base.css +1 -1
- package/dist/style/heatmap.css +1 -1
- package/dist/style/image.css +1 -1
- package/dist/style/line-chart.css +1 -0
- package/dist/style/line-chart.js +2 -0
- package/dist/style/pie-chart.css +1 -0
- package/dist/style/pie-chart.js +2 -0
- package/dist/style/upload.css +1 -0
- package/dist/style/upload.js +2 -0
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/package.json +1 -1
- package/volar.d.ts +4 -0
- package/dist/components/trend-chart/components/trend-chart-grid.d.ts +0 -55
- package/dist/components/trend-chart/components/trend-chart-labels.d.ts +0 -26
- package/dist/components/trend-chart/helpers/genPath.d.ts +0 -8
- package/dist/components/trend-chart/helpers/getPadding.d.ts +0 -8
- package/dist/components/trend-chart/helpers/validatePadding.d.ts +0 -2
- package/dist/es/_hooks/use-popup-overflow-hidden.js +0 -29
- package/dist/es/components/trend-chart/components/trend-chart-grid.js +0 -62
- package/dist/es/components/trend-chart/components/trend-chart-labels.js +0 -75
- package/dist/es/components/trend-chart/helpers/genPath.js +0 -22
- package/dist/es/components/trend-chart/helpers/getPadding.js +0 -21
- package/dist/es/components/trend-chart/helpers/validatePadding.js +0 -7
|
@@ -17,14 +17,6 @@ export declare const TrendChart: {
|
|
|
17
17
|
type: import('vue').PropType<number | string>;
|
|
18
18
|
default: string;
|
|
19
19
|
};
|
|
20
|
-
grid: {
|
|
21
|
-
default: null;
|
|
22
|
-
type: import('vue').PropType<import('./props').Grid>;
|
|
23
|
-
};
|
|
24
|
-
labels: {
|
|
25
|
-
default: null;
|
|
26
|
-
type: import('vue').PropType<import('./props').Labels>;
|
|
27
|
-
};
|
|
28
20
|
max: {
|
|
29
21
|
type: NumberConstructor;
|
|
30
22
|
};
|
|
@@ -68,6 +60,14 @@ export declare const TrendChart: {
|
|
|
68
60
|
ariaLabel: {
|
|
69
61
|
type: StringConstructor;
|
|
70
62
|
};
|
|
63
|
+
grid: {
|
|
64
|
+
default: null;
|
|
65
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
66
|
+
};
|
|
67
|
+
labels: {
|
|
68
|
+
default: null;
|
|
69
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
70
|
+
};
|
|
71
71
|
theme: {
|
|
72
72
|
type: import('vue').PropType<import('./props').Theme>;
|
|
73
73
|
default: () => {};
|
|
@@ -87,95 +87,18 @@ export declare const TrendChart: {
|
|
|
87
87
|
status: import('./props').TrendChartStatus;
|
|
88
88
|
height: string | number;
|
|
89
89
|
width: string | number;
|
|
90
|
-
grid:
|
|
90
|
+
grid: Record<string, unknown> | null;
|
|
91
91
|
padding: string | number;
|
|
92
92
|
stroke: boolean;
|
|
93
93
|
smooth: boolean;
|
|
94
94
|
tooltip: boolean;
|
|
95
95
|
dataset: import('./props').DataSet;
|
|
96
|
+
labels: Record<string, unknown> | null;
|
|
96
97
|
theme: import('./props').Theme;
|
|
97
|
-
interactive: boolean;
|
|
98
98
|
showPoints: import('./props').ShowPoints;
|
|
99
|
+
interactive: boolean;
|
|
99
100
|
tooltipFormatter: (value: number) => string;
|
|
100
|
-
labels: import('./props').Labels;
|
|
101
101
|
}, true, {}, {}, {
|
|
102
|
-
TrendChartGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
103
|
-
boundary: {
|
|
104
|
-
required: boolean;
|
|
105
|
-
type: import('vue').PropType<import('./props').Boundary>;
|
|
106
|
-
default: () => void;
|
|
107
|
-
};
|
|
108
|
-
verticalLines: {
|
|
109
|
-
default: boolean;
|
|
110
|
-
type: BooleanConstructor;
|
|
111
|
-
};
|
|
112
|
-
verticalLinesNumber: {
|
|
113
|
-
default: number;
|
|
114
|
-
type: NumberConstructor;
|
|
115
|
-
};
|
|
116
|
-
horizontalLines: {
|
|
117
|
-
default: boolean;
|
|
118
|
-
type: BooleanConstructor;
|
|
119
|
-
};
|
|
120
|
-
horizontalLinesNumber: {
|
|
121
|
-
default: number;
|
|
122
|
-
type: NumberConstructor;
|
|
123
|
-
};
|
|
124
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
125
|
-
[key: string]: any;
|
|
126
|
-
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
127
|
-
boundary: {
|
|
128
|
-
required: boolean;
|
|
129
|
-
type: import('vue').PropType<import('./props').Boundary>;
|
|
130
|
-
default: () => void;
|
|
131
|
-
};
|
|
132
|
-
verticalLines: {
|
|
133
|
-
default: boolean;
|
|
134
|
-
type: BooleanConstructor;
|
|
135
|
-
};
|
|
136
|
-
verticalLinesNumber: {
|
|
137
|
-
default: number;
|
|
138
|
-
type: NumberConstructor;
|
|
139
|
-
};
|
|
140
|
-
horizontalLines: {
|
|
141
|
-
default: boolean;
|
|
142
|
-
type: BooleanConstructor;
|
|
143
|
-
};
|
|
144
|
-
horizontalLinesNumber: {
|
|
145
|
-
default: number;
|
|
146
|
-
type: NumberConstructor;
|
|
147
|
-
};
|
|
148
|
-
}>> & Readonly<{}>, {
|
|
149
|
-
boundary: import('./props').Boundary;
|
|
150
|
-
verticalLines: boolean;
|
|
151
|
-
verticalLinesNumber: number;
|
|
152
|
-
horizontalLines: boolean;
|
|
153
|
-
horizontalLinesNumber: number;
|
|
154
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
155
|
-
TrendChartLabels: import('vue').DefineComponent<{
|
|
156
|
-
boundary: import('./props').Boundary;
|
|
157
|
-
yLabelsTextFormatter: Function;
|
|
158
|
-
color?: import('../../_props/css').CSSColor | undefined;
|
|
159
|
-
fontSize?: number | undefined;
|
|
160
|
-
minValue?: number | undefined;
|
|
161
|
-
maxValue?: number | undefined;
|
|
162
|
-
xLabels?: unknown[] | undefined;
|
|
163
|
-
yLabels?: number | undefined;
|
|
164
|
-
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
165
|
-
[key: string]: any;
|
|
166
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
167
|
-
boundary: import('./props').Boundary;
|
|
168
|
-
yLabelsTextFormatter: Function;
|
|
169
|
-
color?: import('../../_props/css').CSSColor | undefined;
|
|
170
|
-
fontSize?: number | undefined;
|
|
171
|
-
minValue?: number | undefined;
|
|
172
|
-
maxValue?: number | undefined;
|
|
173
|
-
xLabels?: unknown[] | undefined;
|
|
174
|
-
yLabels?: number | undefined;
|
|
175
|
-
}> & Readonly<{}>, {
|
|
176
|
-
boundary: import('./props').Boundary;
|
|
177
|
-
yLabelsTextFormatter: Function;
|
|
178
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
179
102
|
TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
180
103
|
boundary: {
|
|
181
104
|
required: boolean;
|
|
@@ -335,14 +258,6 @@ export declare const TrendChart: {
|
|
|
335
258
|
type: import('vue').PropType<number | string>;
|
|
336
259
|
default: string;
|
|
337
260
|
};
|
|
338
|
-
grid: {
|
|
339
|
-
default: null;
|
|
340
|
-
type: import('vue').PropType<import('./props').Grid>;
|
|
341
|
-
};
|
|
342
|
-
labels: {
|
|
343
|
-
default: null;
|
|
344
|
-
type: import('vue').PropType<import('./props').Labels>;
|
|
345
|
-
};
|
|
346
261
|
max: {
|
|
347
262
|
type: NumberConstructor;
|
|
348
263
|
};
|
|
@@ -386,6 +301,14 @@ export declare const TrendChart: {
|
|
|
386
301
|
ariaLabel: {
|
|
387
302
|
type: StringConstructor;
|
|
388
303
|
};
|
|
304
|
+
grid: {
|
|
305
|
+
default: null;
|
|
306
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
307
|
+
};
|
|
308
|
+
labels: {
|
|
309
|
+
default: null;
|
|
310
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
311
|
+
};
|
|
389
312
|
theme: {
|
|
390
313
|
type: import('vue').PropType<import('./props').Theme>;
|
|
391
314
|
default: () => {};
|
|
@@ -400,17 +323,17 @@ export declare const TrendChart: {
|
|
|
400
323
|
status: import('./props').TrendChartStatus;
|
|
401
324
|
height: string | number;
|
|
402
325
|
width: string | number;
|
|
403
|
-
grid:
|
|
326
|
+
grid: Record<string, unknown> | null;
|
|
404
327
|
padding: string | number;
|
|
405
328
|
stroke: boolean;
|
|
406
329
|
smooth: boolean;
|
|
407
330
|
tooltip: boolean;
|
|
408
331
|
dataset: import('./props').DataSet;
|
|
332
|
+
labels: Record<string, unknown> | null;
|
|
409
333
|
theme: import('./props').Theme;
|
|
410
|
-
interactive: boolean;
|
|
411
334
|
showPoints: import('./props').ShowPoints;
|
|
335
|
+
interactive: boolean;
|
|
412
336
|
tooltipFormatter: (value: number) => string;
|
|
413
|
-
labels: import('./props').Labels;
|
|
414
337
|
}>;
|
|
415
338
|
__isFragment?: never;
|
|
416
339
|
__isTeleport?: never;
|
|
@@ -433,14 +356,6 @@ export declare const TrendChart: {
|
|
|
433
356
|
type: import('vue').PropType<number | string>;
|
|
434
357
|
default: string;
|
|
435
358
|
};
|
|
436
|
-
grid: {
|
|
437
|
-
default: null;
|
|
438
|
-
type: import('vue').PropType<import('./props').Grid>;
|
|
439
|
-
};
|
|
440
|
-
labels: {
|
|
441
|
-
default: null;
|
|
442
|
-
type: import('vue').PropType<import('./props').Labels>;
|
|
443
|
-
};
|
|
444
359
|
max: {
|
|
445
360
|
type: NumberConstructor;
|
|
446
361
|
};
|
|
@@ -484,6 +399,14 @@ export declare const TrendChart: {
|
|
|
484
399
|
ariaLabel: {
|
|
485
400
|
type: StringConstructor;
|
|
486
401
|
};
|
|
402
|
+
grid: {
|
|
403
|
+
default: null;
|
|
404
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
405
|
+
};
|
|
406
|
+
labels: {
|
|
407
|
+
default: null;
|
|
408
|
+
type: import('vue').PropType<Record<string, unknown> | null>;
|
|
409
|
+
};
|
|
487
410
|
theme: {
|
|
488
411
|
type: import('vue').PropType<import('./props').Theme>;
|
|
489
412
|
default: () => {};
|
|
@@ -503,95 +426,18 @@ export declare const TrendChart: {
|
|
|
503
426
|
status: import('./props').TrendChartStatus;
|
|
504
427
|
height: string | number;
|
|
505
428
|
width: string | number;
|
|
506
|
-
grid:
|
|
429
|
+
grid: Record<string, unknown> | null;
|
|
507
430
|
padding: string | number;
|
|
508
431
|
stroke: boolean;
|
|
509
432
|
smooth: boolean;
|
|
510
433
|
tooltip: boolean;
|
|
511
434
|
dataset: import('./props').DataSet;
|
|
435
|
+
labels: Record<string, unknown> | null;
|
|
512
436
|
theme: import('./props').Theme;
|
|
513
|
-
interactive: boolean;
|
|
514
437
|
showPoints: import('./props').ShowPoints;
|
|
438
|
+
interactive: boolean;
|
|
515
439
|
tooltipFormatter: (value: number) => string;
|
|
516
|
-
labels: import('./props').Labels;
|
|
517
440
|
}, {}, string, {}, {
|
|
518
|
-
TrendChartGrid: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
519
|
-
boundary: {
|
|
520
|
-
required: boolean;
|
|
521
|
-
type: import('vue').PropType<import('./props').Boundary>;
|
|
522
|
-
default: () => void;
|
|
523
|
-
};
|
|
524
|
-
verticalLines: {
|
|
525
|
-
default: boolean;
|
|
526
|
-
type: BooleanConstructor;
|
|
527
|
-
};
|
|
528
|
-
verticalLinesNumber: {
|
|
529
|
-
default: number;
|
|
530
|
-
type: NumberConstructor;
|
|
531
|
-
};
|
|
532
|
-
horizontalLines: {
|
|
533
|
-
default: boolean;
|
|
534
|
-
type: BooleanConstructor;
|
|
535
|
-
};
|
|
536
|
-
horizontalLinesNumber: {
|
|
537
|
-
default: number;
|
|
538
|
-
type: NumberConstructor;
|
|
539
|
-
};
|
|
540
|
-
}>, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
541
|
-
[key: string]: any;
|
|
542
|
-
}> | null, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
543
|
-
boundary: {
|
|
544
|
-
required: boolean;
|
|
545
|
-
type: import('vue').PropType<import('./props').Boundary>;
|
|
546
|
-
default: () => void;
|
|
547
|
-
};
|
|
548
|
-
verticalLines: {
|
|
549
|
-
default: boolean;
|
|
550
|
-
type: BooleanConstructor;
|
|
551
|
-
};
|
|
552
|
-
verticalLinesNumber: {
|
|
553
|
-
default: number;
|
|
554
|
-
type: NumberConstructor;
|
|
555
|
-
};
|
|
556
|
-
horizontalLines: {
|
|
557
|
-
default: boolean;
|
|
558
|
-
type: BooleanConstructor;
|
|
559
|
-
};
|
|
560
|
-
horizontalLinesNumber: {
|
|
561
|
-
default: number;
|
|
562
|
-
type: NumberConstructor;
|
|
563
|
-
};
|
|
564
|
-
}>> & Readonly<{}>, {
|
|
565
|
-
boundary: import('./props').Boundary;
|
|
566
|
-
verticalLines: boolean;
|
|
567
|
-
verticalLinesNumber: number;
|
|
568
|
-
horizontalLines: boolean;
|
|
569
|
-
horizontalLinesNumber: number;
|
|
570
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
571
|
-
TrendChartLabels: import('vue').DefineComponent<{
|
|
572
|
-
boundary: import('./props').Boundary;
|
|
573
|
-
yLabelsTextFormatter: Function;
|
|
574
|
-
color?: import('../../_props/css').CSSColor | undefined;
|
|
575
|
-
fontSize?: number | undefined;
|
|
576
|
-
minValue?: number | undefined;
|
|
577
|
-
maxValue?: number | undefined;
|
|
578
|
-
xLabels?: unknown[] | undefined;
|
|
579
|
-
yLabels?: number | undefined;
|
|
580
|
-
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
581
|
-
[key: string]: any;
|
|
582
|
-
}>, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{
|
|
583
|
-
boundary: import('./props').Boundary;
|
|
584
|
-
yLabelsTextFormatter: Function;
|
|
585
|
-
color?: import('../../_props/css').CSSColor | undefined;
|
|
586
|
-
fontSize?: number | undefined;
|
|
587
|
-
minValue?: number | undefined;
|
|
588
|
-
maxValue?: number | undefined;
|
|
589
|
-
xLabels?: unknown[] | undefined;
|
|
590
|
-
yLabels?: number | undefined;
|
|
591
|
-
}> & Readonly<{}>, {
|
|
592
|
-
boundary: import('./props').Boundary;
|
|
593
|
-
yLabelsTextFormatter: Function;
|
|
594
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
595
441
|
TrendChartCurve: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
596
442
|
boundary: {
|
|
597
443
|
required: boolean;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
2
|
import { CSSColor } from '../../_props/css';
|
|
3
3
|
export type TrendChartStatus = 'primary' | 'success' | 'warning' | 'strong' | 'danger' | 'info';
|
|
4
4
|
export type Padding = {
|
|
@@ -24,19 +24,6 @@ export type Boundary = {
|
|
|
24
24
|
};
|
|
25
25
|
export type DataSetTheme = {};
|
|
26
26
|
export type DataSet = number[];
|
|
27
|
-
export type Grid = {
|
|
28
|
-
verticalLines?: boolean;
|
|
29
|
-
verticalLinesNumber?: number;
|
|
30
|
-
horizontalLines?: boolean;
|
|
31
|
-
horizontalLinesNumber?: number;
|
|
32
|
-
};
|
|
33
|
-
export type Labels = {
|
|
34
|
-
xLabels: string[];
|
|
35
|
-
yLabels: number;
|
|
36
|
-
yLabelsTextFormatter: (value: number) => string;
|
|
37
|
-
fontSize?: number;
|
|
38
|
-
color?: CSSColor;
|
|
39
|
-
};
|
|
40
27
|
/** 数据点显示策略:true 常显,false 不显示,auto 时数据点少时常显、超过两个时仅高亮当前点 */
|
|
41
28
|
export type ShowPoints = boolean | 'auto';
|
|
42
29
|
/** 填充类型:gradient 由描边色向透明渐变,solid 为统一透明度纯色 */
|
|
@@ -84,14 +71,6 @@ export declare const trendChartProps: {
|
|
|
84
71
|
type: PropType<number | string>;
|
|
85
72
|
default: string;
|
|
86
73
|
};
|
|
87
|
-
grid: {
|
|
88
|
-
default: null;
|
|
89
|
-
type: PropType<Grid>;
|
|
90
|
-
};
|
|
91
|
-
labels: {
|
|
92
|
-
default: null;
|
|
93
|
-
type: PropType<Labels>;
|
|
94
|
-
};
|
|
95
74
|
max: {
|
|
96
75
|
type: NumberConstructor;
|
|
97
76
|
};
|
|
@@ -135,6 +114,14 @@ export declare const trendChartProps: {
|
|
|
135
114
|
ariaLabel: {
|
|
136
115
|
type: StringConstructor;
|
|
137
116
|
};
|
|
117
|
+
grid: {
|
|
118
|
+
default: null;
|
|
119
|
+
type: PropType<Record<string, unknown> | null>;
|
|
120
|
+
};
|
|
121
|
+
labels: {
|
|
122
|
+
default: null;
|
|
123
|
+
type: PropType<Record<string, unknown> | null>;
|
|
124
|
+
};
|
|
138
125
|
theme: {
|
|
139
126
|
type: PropType<Theme>;
|
|
140
127
|
default: () => {};
|
|
@@ -203,59 +190,3 @@ export declare const trendChartCurveProps: {
|
|
|
203
190
|
type: PropType<CurveTheme>;
|
|
204
191
|
};
|
|
205
192
|
};
|
|
206
|
-
export declare const trendChartGridProps: {
|
|
207
|
-
boundary: {
|
|
208
|
-
required: boolean;
|
|
209
|
-
type: PropType<Boundary>;
|
|
210
|
-
default: () => void;
|
|
211
|
-
};
|
|
212
|
-
verticalLines: {
|
|
213
|
-
default: boolean;
|
|
214
|
-
type: BooleanConstructor;
|
|
215
|
-
};
|
|
216
|
-
verticalLinesNumber: {
|
|
217
|
-
default: number;
|
|
218
|
-
type: NumberConstructor;
|
|
219
|
-
};
|
|
220
|
-
horizontalLines: {
|
|
221
|
-
default: boolean;
|
|
222
|
-
type: BooleanConstructor;
|
|
223
|
-
};
|
|
224
|
-
horizontalLinesNumber: {
|
|
225
|
-
default: number;
|
|
226
|
-
type: NumberConstructor;
|
|
227
|
-
};
|
|
228
|
-
};
|
|
229
|
-
export declare const trendChartLabelsProps: {
|
|
230
|
-
boundary: {
|
|
231
|
-
required: boolean;
|
|
232
|
-
type: PropType<Boundary>;
|
|
233
|
-
default: () => void;
|
|
234
|
-
};
|
|
235
|
-
minValue: {
|
|
236
|
-
type: NumberConstructor;
|
|
237
|
-
required: boolean;
|
|
238
|
-
};
|
|
239
|
-
maxValue: {
|
|
240
|
-
type: NumberConstructor;
|
|
241
|
-
required: boolean;
|
|
242
|
-
};
|
|
243
|
-
xLabels: {
|
|
244
|
-
type: ArrayConstructor;
|
|
245
|
-
};
|
|
246
|
-
yLabels: {
|
|
247
|
-
type: NumberConstructor;
|
|
248
|
-
required: boolean;
|
|
249
|
-
};
|
|
250
|
-
yLabelsTextFormatter: {
|
|
251
|
-
default: (value: any) => any;
|
|
252
|
-
type: FunctionConstructor;
|
|
253
|
-
};
|
|
254
|
-
fontSize: {
|
|
255
|
-
type: NumberConstructor;
|
|
256
|
-
};
|
|
257
|
-
color: {
|
|
258
|
-
type: PropType<CSSColor>;
|
|
259
|
-
};
|
|
260
|
-
};
|
|
261
|
-
export type TrendChartLabelsProps = ExtractPropTypes<typeof trendChartLabelsProps>;
|
|
@@ -596,8 +596,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
596
596
|
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
597
597
|
}>, {
|
|
598
598
|
disabled: boolean;
|
|
599
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
600
599
|
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
|
|
600
|
+
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
601
601
|
animationName: string;
|
|
602
602
|
autoFitPosition: boolean;
|
|
603
603
|
popupVisible: boolean;
|
|
@@ -157,8 +157,8 @@ export declare const Trigger: {
|
|
|
157
157
|
resize: () => true;
|
|
158
158
|
}, import('vue').PublicProps, {
|
|
159
159
|
disabled: boolean;
|
|
160
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
161
160
|
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
|
|
161
|
+
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
162
162
|
animationName: string;
|
|
163
163
|
autoFitPosition: boolean;
|
|
164
164
|
popupVisible: boolean;
|
|
@@ -345,8 +345,8 @@ export declare const Trigger: {
|
|
|
345
345
|
onPopupVisibleChange?: ((visible: boolean) => any) | undefined;
|
|
346
346
|
}>, () => any, {}, {}, {}, {
|
|
347
347
|
disabled: boolean;
|
|
348
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
349
348
|
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
|
|
349
|
+
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
350
350
|
animationName: string;
|
|
351
351
|
autoFitPosition: boolean;
|
|
352
352
|
popupVisible: boolean;
|
|
@@ -533,8 +533,8 @@ export declare const Trigger: {
|
|
|
533
533
|
resize: () => true;
|
|
534
534
|
}, string, {
|
|
535
535
|
disabled: boolean;
|
|
536
|
-
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
537
536
|
trigger: "hover" | "click" | "focus" | "contextMenu" | ("hover" | "click" | "focus" | "contextMenu")[];
|
|
537
|
+
position: "top" | "tl" | "tr" | "bottom" | "bl" | "br" | "left" | "lt" | "lb" | "right" | "rt" | "rb";
|
|
538
538
|
animationName: string;
|
|
539
539
|
autoFitPosition: boolean;
|
|
540
540
|
popupVisible: boolean;
|