@ecan-bi/datav 1.0.32 → 1.0.35

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.
@@ -9,3 +9,4 @@ export * from './useImagePath';
9
9
  export * from './usePageUrl';
10
10
  export * from './useVariablesInText';
11
11
  export * from './useRequestDiagramData';
12
+ export * from './useAxisLabelFormatter';
@@ -0,0 +1,2 @@
1
+ export declare const useAxisLabelFormatter: (formatter: string, value?: string) => string;
2
+ export default useAxisLabelFormatter;
@@ -1,3 +1,4 @@
1
+ export declare const handleAxisLabelFormatter: (formatter: string) => string;
1
2
  /**
2
3
  * 处理图表format, 目前只做 \\n => \n 转化
3
4
  * @param formatter 格式化字符串
@@ -36,6 +36,33 @@ declare const _default: import("vue").DefineComponent<{
36
36
  [key: string]: any;
37
37
  }[];
38
38
  };
39
+ title: {
40
+ type?: undefined;
41
+ default?: undefined;
42
+ } | {
43
+ type: any;
44
+ default: string | boolean | {
45
+ [key: string]: any;
46
+ }[];
47
+ };
48
+ titleFontSize: {
49
+ type?: undefined;
50
+ default?: undefined;
51
+ } | {
52
+ type: any;
53
+ default: string | boolean | {
54
+ [key: string]: any;
55
+ }[];
56
+ };
57
+ titleColor: {
58
+ type?: undefined;
59
+ default?: undefined;
60
+ } | {
61
+ type: any;
62
+ default: string | boolean | {
63
+ [key: string]: any;
64
+ }[];
65
+ };
39
66
  backgroundColor: {
40
67
  type?: undefined;
41
68
  default?: undefined;
@@ -326,6 +353,9 @@ declare const _default: import("vue").DefineComponent<{
326
353
  type?: unknown;
327
354
  width?: unknown;
328
355
  height?: unknown;
356
+ title?: unknown;
357
+ titleFontSize?: unknown;
358
+ titleColor?: unknown;
329
359
  backgroundColor?: unknown;
330
360
  backgroundImage?: unknown;
331
361
  backgroundSize?: unknown;
@@ -337,6 +367,9 @@ declare const _default: import("vue").DefineComponent<{
337
367
  destroyOnClose?: unknown;
338
368
  position?: unknown;
339
369
  } & {} & {
370
+ title?: string | boolean | {
371
+ [key: string]: any;
372
+ }[];
340
373
  width?: string | boolean | {
341
374
  [key: string]: any;
342
375
  }[];
@@ -352,6 +385,12 @@ declare const _default: import("vue").DefineComponent<{
352
385
  height?: string | boolean | {
353
386
  [key: string]: any;
354
387
  }[];
388
+ titleFontSize?: string | boolean | {
389
+ [key: string]: any;
390
+ }[];
391
+ titleColor?: string | boolean | {
392
+ [key: string]: any;
393
+ }[];
355
394
  backgroundColor?: string | boolean | {
356
395
  [key: string]: any;
357
396
  }[];
@@ -125,6 +125,13 @@ declare const _default: import("vue").DefineComponent<{
125
125
  type: any;
126
126
  default: any;
127
127
  };
128
+ yAxisLabelFormatter: {
129
+ type?: undefined;
130
+ default?: undefined;
131
+ } | {
132
+ type: any;
133
+ default: any;
134
+ };
128
135
  valueTypeDataFieldNames: {
129
136
  type?: undefined;
130
137
  default?: undefined;
@@ -174,7 +181,7 @@ declare const _default: import("vue").DefineComponent<{
174
181
  type: any;
175
182
  default: any;
176
183
  };
177
- gridLeft: {
184
+ gridContainLabel: {
178
185
  type?: undefined;
179
186
  default?: undefined;
180
187
  } | {
@@ -188,14 +195,21 @@ declare const _default: import("vue").DefineComponent<{
188
195
  type: any;
189
196
  default: any;
190
197
  };
191
- gridRight: {
198
+ gridBottom: {
192
199
  type?: undefined;
193
200
  default?: undefined;
194
201
  } | {
195
202
  type: any;
196
203
  default: any;
197
204
  };
198
- gridBottom: {
205
+ gridLeft: {
206
+ type?: undefined;
207
+ default?: undefined;
208
+ } | {
209
+ type: any;
210
+ default: any;
211
+ };
212
+ gridRight: {
199
213
  type?: undefined;
200
214
  default?: undefined;
201
215
  } | {
@@ -377,6 +391,13 @@ declare const _default: import("vue").DefineComponent<{
377
391
  subtext: any;
378
392
  left: string;
379
393
  };
394
+ grid: {
395
+ top: any;
396
+ bottom: any;
397
+ left: any;
398
+ right: any;
399
+ containLabel: any;
400
+ };
380
401
  color: any;
381
402
  tooltip: {
382
403
  trigger: string;
@@ -428,6 +449,7 @@ declare const _default: import("vue").DefineComponent<{
428
449
  };
429
450
  axisLabel: {
430
451
  color: any;
452
+ formatter(value: string): string;
431
453
  };
432
454
  axisLine: {
433
455
  lineStyle: {
@@ -435,7 +457,6 @@ declare const _default: import("vue").DefineComponent<{
435
457
  };
436
458
  };
437
459
  };
438
- grid: {};
439
460
  series: any[];
440
461
  }>;
441
462
  style: import("vue").ComputedRef<import("vue").HTMLAttributes>;
@@ -461,6 +482,7 @@ declare const _default: import("vue").DefineComponent<{
461
482
  yAxisSplitLineStyleColor?: unknown;
462
483
  yAxisLabelColor?: unknown;
463
484
  yAxisLineStyleColor?: unknown;
485
+ yAxisLabelFormatter?: unknown;
464
486
  valueTypeDataFieldNames?: unknown;
465
487
  keyTypeDataFieldNames?: unknown;
466
488
  dataFieldConfigType?: unknown;
@@ -468,10 +490,11 @@ declare const _default: import("vue").DefineComponent<{
468
490
  tooltipTrigger?: unknown;
469
491
  tooltipTextStyleColor?: unknown;
470
492
  tooltipFormatter?: unknown;
471
- gridLeft?: unknown;
493
+ gridContainLabel?: unknown;
472
494
  gridTop?: unknown;
473
- gridRight?: unknown;
474
495
  gridBottom?: unknown;
496
+ gridLeft?: unknown;
497
+ gridRight?: unknown;
475
498
  barWidth?: unknown;
476
499
  graphicConfig?: unknown;
477
500
  id?: unknown;
@@ -516,6 +539,7 @@ declare const _default: import("vue").DefineComponent<{
516
539
  yAxisSplitLineStyleColor?: any;
517
540
  yAxisLabelColor?: any;
518
541
  yAxisLineStyleColor?: any;
542
+ yAxisLabelFormatter?: any;
519
543
  valueTypeDataFieldNames?: any;
520
544
  keyTypeDataFieldNames?: any;
521
545
  dataFieldConfigType?: any;
@@ -523,10 +547,11 @@ declare const _default: import("vue").DefineComponent<{
523
547
  tooltipTrigger?: any;
524
548
  tooltipTextStyleColor?: any;
525
549
  tooltipFormatter?: any;
526
- gridLeft?: any;
550
+ gridContainLabel?: any;
527
551
  gridTop?: any;
528
- gridRight?: any;
529
552
  gridBottom?: any;
553
+ gridLeft?: any;
554
+ gridRight?: any;
530
555
  barWidth?: any;
531
556
  graphicConfig?: any;
532
557
  id?: any;
@@ -18,6 +18,7 @@ export interface BarProps extends Props {
18
18
  yAxisSplitLineStyleColor: string;
19
19
  yAxisLabelColor: string;
20
20
  yAxisLineStyleColor: string;
21
+ yAxisLabelFormatter: string;
21
22
  valueTypeDataFieldNames: ValueTypeDataFieldNames;
22
23
  keyTypeDataFieldNames: KeyTypeDataFieldNames;
23
24
  dataFieldConfigType: 'key' | 'value';
@@ -25,10 +26,11 @@ export interface BarProps extends Props {
25
26
  tooltipTrigger: 'item' | 'axis' | 'none';
26
27
  tooltipTextStyleColor: string;
27
28
  tooltipFormatter: string;
28
- gridLeft: string;
29
+ gridContainLabel: boolean;
29
30
  gridTop: string;
30
- gridRight: string;
31
31
  gridBottom: string;
32
+ gridLeft: string;
33
+ gridRight: string;
32
34
  barWidth: string;
33
35
  graphicConfig?: any;
34
36
  }
@@ -160,6 +162,13 @@ export declare const barComponentProps: {
160
162
  type: any;
161
163
  default: any;
162
164
  };
165
+ yAxisLabelFormatter: {
166
+ type?: undefined;
167
+ default?: undefined;
168
+ } | {
169
+ type: any;
170
+ default: any;
171
+ };
163
172
  valueTypeDataFieldNames: {
164
173
  type?: undefined;
165
174
  default?: undefined;
@@ -209,7 +218,7 @@ export declare const barComponentProps: {
209
218
  type: any;
210
219
  default: any;
211
220
  };
212
- gridLeft: {
221
+ gridContainLabel: {
213
222
  type?: undefined;
214
223
  default?: undefined;
215
224
  } | {
@@ -223,14 +232,21 @@ export declare const barComponentProps: {
223
232
  type: any;
224
233
  default: any;
225
234
  };
226
- gridRight: {
235
+ gridBottom: {
227
236
  type?: undefined;
228
237
  default?: undefined;
229
238
  } | {
230
239
  type: any;
231
240
  default: any;
232
241
  };
233
- gridBottom: {
242
+ gridLeft: {
243
+ type?: undefined;
244
+ default?: undefined;
245
+ } | {
246
+ type: any;
247
+ default: any;
248
+ };
249
+ gridRight: {
234
250
  type?: undefined;
235
251
  default?: undefined;
236
252
  } | {
@@ -351,6 +351,71 @@ declare const _default: import("vue").DefineComponent<{
351
351
  [key: string]: any;
352
352
  } | import("src/_utils/props").RequestParams;
353
353
  };
354
+ gridContainLabel: {
355
+ type?: undefined;
356
+ default?: undefined;
357
+ } | {
358
+ type: any;
359
+ default: string | number | boolean | string[] | import("src/_utils/props").Data | ValueTypeDataFieldNames | KeyTypeDataFieldNames | {
360
+ [key: string]: any;
361
+ }[] | {
362
+ [key: string]: any;
363
+ }[] | Events | {
364
+ [key: string]: any;
365
+ } | import("src/_utils/props").RequestParams;
366
+ };
367
+ gridTop: {
368
+ type?: undefined;
369
+ default?: undefined;
370
+ } | {
371
+ type: any;
372
+ default: string | number | boolean | string[] | import("src/_utils/props").Data | ValueTypeDataFieldNames | KeyTypeDataFieldNames | {
373
+ [key: string]: any;
374
+ }[] | {
375
+ [key: string]: any;
376
+ }[] | Events | {
377
+ [key: string]: any;
378
+ } | import("src/_utils/props").RequestParams;
379
+ };
380
+ gridBottom: {
381
+ type?: undefined;
382
+ default?: undefined;
383
+ } | {
384
+ type: any;
385
+ default: string | number | boolean | string[] | import("src/_utils/props").Data | ValueTypeDataFieldNames | KeyTypeDataFieldNames | {
386
+ [key: string]: any;
387
+ }[] | {
388
+ [key: string]: any;
389
+ }[] | Events | {
390
+ [key: string]: any;
391
+ } | import("src/_utils/props").RequestParams;
392
+ };
393
+ gridLeft: {
394
+ type?: undefined;
395
+ default?: undefined;
396
+ } | {
397
+ type: any;
398
+ default: string | number | boolean | string[] | import("src/_utils/props").Data | ValueTypeDataFieldNames | KeyTypeDataFieldNames | {
399
+ [key: string]: any;
400
+ }[] | {
401
+ [key: string]: any;
402
+ }[] | Events | {
403
+ [key: string]: any;
404
+ } | import("src/_utils/props").RequestParams;
405
+ };
406
+ gridRight: {
407
+ type?: undefined;
408
+ default?: undefined;
409
+ } | {
410
+ type: any;
411
+ default: string | number | boolean | string[] | import("src/_utils/props").Data | ValueTypeDataFieldNames | KeyTypeDataFieldNames | {
412
+ [key: string]: any;
413
+ }[] | {
414
+ [key: string]: any;
415
+ }[] | Events | {
416
+ [key: string]: any;
417
+ } | import("src/_utils/props").RequestParams;
418
+ };
354
419
  id: {
355
420
  type?: undefined;
356
421
  default?: undefined;
@@ -649,6 +714,23 @@ declare const _default: import("vue").DefineComponent<{
649
714
  };
650
715
  left: string;
651
716
  };
717
+ grid: {
718
+ top: string | number | boolean | {
719
+ [key: string]: any;
720
+ };
721
+ bottom: string | number | boolean | {
722
+ [key: string]: any;
723
+ };
724
+ left: string | number | boolean | {
725
+ [key: string]: any;
726
+ };
727
+ right: string | number | boolean | {
728
+ [key: string]: any;
729
+ };
730
+ containLabel: string | number | boolean | {
731
+ [key: string]: any;
732
+ };
733
+ };
652
734
  color: string | number | boolean | {
653
735
  [key: string]: any;
654
736
  };
@@ -732,7 +814,7 @@ declare const _default: import("vue").DefineComponent<{
732
814
  color: string | number | boolean | {
733
815
  [key: string]: any;
734
816
  };
735
- formatter: any;
817
+ formatter(value: string): string;
736
818
  };
737
819
  axisLine: {
738
820
  lineStyle: {
@@ -776,6 +858,11 @@ declare const _default: import("vue").DefineComponent<{
776
858
  seriesTypes?: unknown;
777
859
  dataFieldConfigType?: unknown;
778
860
  yAxis?: unknown;
861
+ gridContainLabel?: unknown;
862
+ gridTop?: unknown;
863
+ gridBottom?: unknown;
864
+ gridLeft?: unknown;
865
+ gridRight?: unknown;
779
866
  id?: unknown;
780
867
  name?: unknown;
781
868
  keyName?: unknown;
@@ -883,6 +970,21 @@ declare const _default: import("vue").DefineComponent<{
883
970
  yAxis?: string | number | boolean | {
884
971
  [key: string]: any;
885
972
  };
973
+ gridContainLabel?: string | number | boolean | {
974
+ [key: string]: any;
975
+ };
976
+ gridTop?: string | number | boolean | {
977
+ [key: string]: any;
978
+ };
979
+ gridBottom?: string | number | boolean | {
980
+ [key: string]: any;
981
+ };
982
+ gridLeft?: string | number | boolean | {
983
+ [key: string]: any;
984
+ };
985
+ gridRight?: string | number | boolean | {
986
+ [key: string]: any;
987
+ };
886
988
  id?: string | number | boolean | {
887
989
  [key: string]: any;
888
990
  };