@ecan-bi/datav 1.0.33 → 1.0.34

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
  }[];
@@ -449,7 +449,7 @@ declare const _default: import("vue").DefineComponent<{
449
449
  };
450
450
  axisLabel: {
451
451
  color: any;
452
- formatter: any;
452
+ formatter(value: string): string;
453
453
  };
454
454
  axisLine: {
455
455
  lineStyle: {
@@ -814,7 +814,7 @@ declare const _default: import("vue").DefineComponent<{
814
814
  color: string | number | boolean | {
815
815
  [key: string]: any;
816
816
  };
817
- formatter: any;
817
+ formatter(value: string): string;
818
818
  };
819
819
  axisLine: {
820
820
  lineStyle: {
@@ -548,9 +548,7 @@ declare const _default: import("vue").DefineComponent<{
548
548
  color: string | number | boolean | {
549
549
  [key: string]: any;
550
550
  };
551
- formatter: string | number | boolean | {
552
- [key: string]: any;
553
- };
551
+ formatter(value: string): string;
554
552
  };
555
553
  axisLine: {
556
554
  lineStyle: {
@@ -252,6 +252,78 @@ declare const _default: import("vue").DefineComponent<{
252
252
  [key: string]: any;
253
253
  } | import("../../_utils/props").RequestParams;
254
254
  };
255
+ yAxisLabelFormatter: {
256
+ type?: undefined;
257
+ default?: undefined;
258
+ } | {
259
+ type: any;
260
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
261
+ name: string;
262
+ value: string;
263
+ } | Events | {
264
+ [key: string]: any;
265
+ } | import("../../_utils/props").RequestParams;
266
+ };
267
+ gridContainLabel: {
268
+ type?: undefined;
269
+ default?: undefined;
270
+ } | {
271
+ type: any;
272
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
273
+ name: string;
274
+ value: string;
275
+ } | Events | {
276
+ [key: string]: any;
277
+ } | import("../../_utils/props").RequestParams;
278
+ };
279
+ gridTop: {
280
+ type?: undefined;
281
+ default?: undefined;
282
+ } | {
283
+ type: any;
284
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
285
+ name: string;
286
+ value: string;
287
+ } | Events | {
288
+ [key: string]: any;
289
+ } | import("../../_utils/props").RequestParams;
290
+ };
291
+ gridBottom: {
292
+ type?: undefined;
293
+ default?: undefined;
294
+ } | {
295
+ type: any;
296
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
297
+ name: string;
298
+ value: string;
299
+ } | Events | {
300
+ [key: string]: any;
301
+ } | import("../../_utils/props").RequestParams;
302
+ };
303
+ gridLeft: {
304
+ type?: undefined;
305
+ default?: undefined;
306
+ } | {
307
+ type: any;
308
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
309
+ name: string;
310
+ value: string;
311
+ } | Events | {
312
+ [key: string]: any;
313
+ } | import("../../_utils/props").RequestParams;
314
+ };
315
+ gridRight: {
316
+ type?: undefined;
317
+ default?: undefined;
318
+ } | {
319
+ type: any;
320
+ default: string | number | boolean | string[] | import("../../_utils/props").Data | {
321
+ name: string;
322
+ value: string;
323
+ } | Events | {
324
+ [key: string]: any;
325
+ } | import("../../_utils/props").RequestParams;
326
+ };
255
327
  dataFieldNames: {
256
328
  type?: undefined;
257
329
  default?: undefined;
@@ -539,6 +611,23 @@ declare const _default: import("vue").DefineComponent<{
539
611
  };
540
612
  left: string;
541
613
  };
614
+ grid: {
615
+ top: string | number | boolean | {
616
+ [key: string]: any;
617
+ };
618
+ bottom: string | number | boolean | {
619
+ [key: string]: any;
620
+ };
621
+ left: string | number | boolean | {
622
+ [key: string]: any;
623
+ };
624
+ right: string | number | boolean | {
625
+ [key: string]: any;
626
+ };
627
+ containLabel: string | number | boolean | {
628
+ [key: string]: any;
629
+ };
630
+ };
542
631
  color: string | number | boolean | {
543
632
  [key: string]: any;
544
633
  };
@@ -586,6 +675,7 @@ declare const _default: import("vue").DefineComponent<{
586
675
  color: string | number | boolean | {
587
676
  [key: string]: any;
588
677
  };
678
+ formatter(value: string): string;
589
679
  };
590
680
  axisLine: {
591
681
  lineStyle: {
@@ -656,6 +746,12 @@ declare const _default: import("vue").DefineComponent<{
656
746
  yAxisSplitLineStyleColor?: unknown;
657
747
  yAxisLabelColor?: unknown;
658
748
  yAxisLineStyleColor?: unknown;
749
+ yAxisLabelFormatter?: unknown;
750
+ gridContainLabel?: unknown;
751
+ gridTop?: unknown;
752
+ gridBottom?: unknown;
753
+ gridLeft?: unknown;
754
+ gridRight?: unknown;
659
755
  dataFieldNames?: unknown;
660
756
  id?: unknown;
661
757
  name?: unknown;
@@ -746,6 +842,24 @@ declare const _default: import("vue").DefineComponent<{
746
842
  yAxisLineStyleColor?: string | number | boolean | {
747
843
  [key: string]: any;
748
844
  };
845
+ yAxisLabelFormatter?: string | number | boolean | {
846
+ [key: string]: any;
847
+ };
848
+ gridContainLabel?: string | number | boolean | {
849
+ [key: string]: any;
850
+ };
851
+ gridTop?: string | number | boolean | {
852
+ [key: string]: any;
853
+ };
854
+ gridBottom?: string | number | boolean | {
855
+ [key: string]: any;
856
+ };
857
+ gridLeft?: string | number | boolean | {
858
+ [key: string]: any;
859
+ };
860
+ gridRight?: string | number | boolean | {
861
+ [key: string]: any;
862
+ };
749
863
  dataFieldNames?: string | number | boolean | {
750
864
  [key: string]: any;
751
865
  };
@@ -21,6 +21,12 @@ export interface ScatterProps extends Props {
21
21
  yAxisSplitLineStyleColor: string;
22
22
  yAxisLabelColor: string;
23
23
  yAxisLineStyleColor: string;
24
+ yAxisLabelFormatter: string;
25
+ gridContainLabel: boolean;
26
+ gridTop: string;
27
+ gridBottom: string;
28
+ gridLeft: string;
29
+ gridRight: string;
24
30
  dataFieldNames: {
25
31
  name: string;
26
32
  value: string;
@@ -280,6 +286,78 @@ export declare const scatterComponentProps: {
280
286
  [key: string]: any;
281
287
  } | import("../../_utils/props").RequestParams;
282
288
  };
289
+ yAxisLabelFormatter: {
290
+ type?: undefined;
291
+ default?: undefined;
292
+ } | {
293
+ type: any;
294
+ default: string | number | boolean | Data | string[] | {
295
+ name: string;
296
+ value: string;
297
+ } | import("../../_utils/props").Events | {
298
+ [key: string]: any;
299
+ } | import("../../_utils/props").RequestParams;
300
+ };
301
+ gridContainLabel: {
302
+ type?: undefined;
303
+ default?: undefined;
304
+ } | {
305
+ type: any;
306
+ default: string | number | boolean | Data | string[] | {
307
+ name: string;
308
+ value: string;
309
+ } | import("../../_utils/props").Events | {
310
+ [key: string]: any;
311
+ } | import("../../_utils/props").RequestParams;
312
+ };
313
+ gridTop: {
314
+ type?: undefined;
315
+ default?: undefined;
316
+ } | {
317
+ type: any;
318
+ default: string | number | boolean | Data | string[] | {
319
+ name: string;
320
+ value: string;
321
+ } | import("../../_utils/props").Events | {
322
+ [key: string]: any;
323
+ } | import("../../_utils/props").RequestParams;
324
+ };
325
+ gridBottom: {
326
+ type?: undefined;
327
+ default?: undefined;
328
+ } | {
329
+ type: any;
330
+ default: string | number | boolean | Data | string[] | {
331
+ name: string;
332
+ value: string;
333
+ } | import("../../_utils/props").Events | {
334
+ [key: string]: any;
335
+ } | import("../../_utils/props").RequestParams;
336
+ };
337
+ gridLeft: {
338
+ type?: undefined;
339
+ default?: undefined;
340
+ } | {
341
+ type: any;
342
+ default: string | number | boolean | Data | string[] | {
343
+ name: string;
344
+ value: string;
345
+ } | import("../../_utils/props").Events | {
346
+ [key: string]: any;
347
+ } | import("../../_utils/props").RequestParams;
348
+ };
349
+ gridRight: {
350
+ type?: undefined;
351
+ default?: undefined;
352
+ } | {
353
+ type: any;
354
+ default: string | number | boolean | Data | string[] | {
355
+ name: string;
356
+ value: string;
357
+ } | import("../../_utils/props").Events | {
358
+ [key: string]: any;
359
+ } | import("../../_utils/props").RequestParams;
360
+ };
283
361
  dataFieldNames: {
284
362
  type?: undefined;
285
363
  default?: undefined;