@ecan-bi/datav 1.0.50 → 1.0.53

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.
Files changed (125) hide show
  1. package/dist/index.es.js +125 -76
  2. package/dist/index.es.js.map +1 -1
  3. package/dist/index.umd.js +124 -75
  4. package/dist/index.umd.js.map +1 -1
  5. package/dist/style.css +37 -35
  6. package/package.json +1 -1
  7. package/types/_utils/constant.d.ts +9 -0
  8. package/types/_utils/hooks/index.d.ts +15 -0
  9. package/types/_utils/hooks/useDownloadFile.d.ts +2 -0
  10. package/types/_utils/hooks/useEmitEvent.d.ts +7 -0
  11. package/types/_utils/hooks/useHrefParamsToGlobalVariables.d.ts +2 -0
  12. package/types/_utils/hooks/useImagePath.d.ts +2 -0
  13. package/types/_utils/hooks/useIndicatorData.d.ts +4 -0
  14. package/types/_utils/hooks/useOnEvent.d.ts +6 -0
  15. package/types/_utils/hooks/usePageUrl.d.ts +2 -0
  16. package/types/_utils/hooks/usePickComponentStyle.d.ts +9 -0
  17. package/types/_utils/hooks/usePickEchartsData.d.ts +2 -0
  18. package/types/_utils/hooks/useRequestData.d.ts +6 -0
  19. package/types/_utils/hooks/useRequestDiagramData.d.ts +6 -0
  20. package/types/_utils/hooks/useTooltipFormatter.d.ts +4 -0
  21. package/types/_utils/hooks/useTransformChartDataByAttrKey.d.ts +13 -0
  22. package/types/_utils/hooks/useTransformChartDataByAttrValue.d.ts +13 -0
  23. package/types/_utils/hooks/useValueFormatter.d.ts +2 -0
  24. package/types/_utils/hooks/useVariablesInText.d.ts +4 -0
  25. package/types/_utils/props.d.ts +71 -0
  26. package/types/_utils/request.d.ts +2 -0
  27. package/types/_utils/util.d.ts +20 -0
  28. package/types/_utils/withInstall.d.ts +5 -0
  29. package/types/common/echarts/Echarts.d.ts +418 -0
  30. package/types/common/echarts/composables/api.d.ts +7 -0
  31. package/types/common/echarts/composables/autoresize.d.ts +6 -0
  32. package/types/common/echarts/composables/index.d.ts +3 -0
  33. package/types/common/echarts/composables/loading.d.ts +10 -0
  34. package/types/common/echarts/index.d.ts +2 -0
  35. package/types/common/echarts/types.d.ts +20 -0
  36. package/types/common/echarts/utils.d.ts +6 -0
  37. package/types/common/index.d.ts +3 -0
  38. package/types/common/skeleton/Skeleton.vue.d.ts +14 -0
  39. package/types/common/skeleton/index.d.ts +2 -0
  40. package/types/common/spin/Spin.vue.d.ts +18 -0
  41. package/types/common/spin/index.d.ts +2 -0
  42. package/types/components.d.ts +9 -0
  43. package/types/container/border/Border.vue.d.ts +622 -0
  44. package/types/container/border/index.d.ts +622 -0
  45. package/types/container/border/props.d.ts +315 -0
  46. package/types/container/index.d.ts +3 -0
  47. package/types/container/modal/Modal.vue.d.ts +505 -0
  48. package/types/container/modal/index.d.ts +506 -0
  49. package/types/container/modal/props.d.ts +179 -0
  50. package/types/container/tabs/Tabs.vue.d.ts +475 -0
  51. package/types/container/tabs/index.d.ts +476 -0
  52. package/types/container/tabs/props.d.ts +251 -0
  53. package/types/control/button/Button.vue.d.ts +550 -0
  54. package/types/control/button/index.d.ts +550 -0
  55. package/types/control/button/props.d.ts +285 -0
  56. package/types/control/date-picker/DatePicker.vue.d.ts +480 -0
  57. package/types/control/date-picker/index.d.ts +479 -0
  58. package/types/control/date-picker/props.d.ts +245 -0
  59. package/types/control/index.d.ts +5 -0
  60. package/types/control/input/Input.vue.d.ts +438 -0
  61. package/types/control/input/index.d.ts +439 -0
  62. package/types/control/input/props.d.ts +224 -0
  63. package/types/control/range-picker/RangePicker.vue.d.ts +596 -0
  64. package/types/control/range-picker/index.d.ts +595 -0
  65. package/types/control/range-picker/props.d.ts +245 -0
  66. package/types/control/select/Select.vue.d.ts +613 -0
  67. package/types/control/select/index.d.ts +613 -0
  68. package/types/control/select/props.d.ts +321 -0
  69. package/types/graph/bar/Bar.vue.d.ts +2028 -0
  70. package/types/graph/bar/index.d.ts +2028 -0
  71. package/types/graph/bar/props.d.ts +984 -0
  72. package/types/graph/combo-graph/ComboGraph.vue.d.ts +1008 -0
  73. package/types/graph/combo-graph/index.d.ts +1009 -0
  74. package/types/graph/combo-graph/props.d.ts +501 -0
  75. package/types/graph/custom-graph/CustomGraph.vue.d.ts +537 -0
  76. package/types/graph/custom-graph/index.d.ts +537 -0
  77. package/types/graph/custom-graph/props.d.ts +274 -0
  78. package/types/graph/index.d.ts +6 -0
  79. package/types/graph/line/Line.vue.d.ts +973 -0
  80. package/types/graph/line/index.d.ts +974 -0
  81. package/types/graph/line/props.d.ts +481 -0
  82. package/types/graph/pie/Pie.vue.d.ts +1049 -0
  83. package/types/graph/pie/index.d.ts +1050 -0
  84. package/types/graph/pie/props.d.ts +533 -0
  85. package/types/graph/scatter/Scatter.vue.d.ts +949 -0
  86. package/types/graph/scatter/index.d.ts +950 -0
  87. package/types/graph/scatter/props.d.ts +468 -0
  88. package/types/index.d.ts +6 -0
  89. package/types/map/index.d.ts +1 -0
  90. package/types/map/map/Map.vue.d.ts +1699 -0
  91. package/types/map/map/index.d.ts +1700 -0
  92. package/types/map/map/props.d.ts +829 -0
  93. package/types/media/image/Image.vue.d.ts +476 -0
  94. package/types/media/image/index.d.ts +477 -0
  95. package/types/media/image/props.d.ts +244 -0
  96. package/types/media/index.d.ts +1 -0
  97. package/types/setting/index.d.ts +3 -0
  98. package/types/setting/page-config/PageConfig.vue.d.ts +112 -0
  99. package/types/setting/page-config/index.d.ts +113 -0
  100. package/types/setting/page-config/props.d.ts +61 -0
  101. package/types/setting/provider-config/ProviderConfig.vue.d.ts +78 -0
  102. package/types/setting/provider-config/index.d.ts +79 -0
  103. package/types/setting/provider-config/props.d.ts +47 -0
  104. package/types/setting/renderer/Renderer.vue.d.ts +22 -0
  105. package/types/setting/renderer/index.d.ts +23 -0
  106. package/types/setting/renderer/props.d.ts +17 -0
  107. package/types/table/index.d.ts +1 -0
  108. package/types/table/table/Table.vue.d.ts +1724 -0
  109. package/types/table/table/index.d.ts +1724 -0
  110. package/types/table/table/props.d.ts +878 -0
  111. package/types/text/index.d.ts +5 -0
  112. package/types/text/list/List.vue.d.ts +849 -0
  113. package/types/text/list/index.d.ts +849 -0
  114. package/types/text/list/props.d.ts +441 -0
  115. package/types/text/proportion/Proportion.vue.d.ts +782 -0
  116. package/types/text/proportion/index.d.ts +782 -0
  117. package/types/text/proportion/props.d.ts +407 -0
  118. package/types/text/scroll-text/ScrollText.vue.d.ts +4 -0
  119. package/types/text/scroll-text/index.d.ts +4 -0
  120. package/types/text/text/Text.vue.d.ts +736 -0
  121. package/types/text/text/index.d.ts +736 -0
  122. package/types/text/text/props.d.ts +383 -0
  123. package/types/text/time-display/TimeDisplay.vue.d.ts +547 -0
  124. package/types/text/time-display/index.d.ts +548 -0
  125. package/types/text/time-display/props.d.ts +284 -0
package/dist/style.css CHANGED
@@ -171,14 +171,14 @@ x-vue-echarts{display:block;width:100%;height:100%}
171
171
  [datav-theme='darkBlue'] .ecan-list .empty {
172
172
  color: #ffffff;
173
173
  }
174
- .ecan-proportion[data-v-206755e6] {
174
+ .ecan-proportion[data-v-f55c66cc] {
175
175
  overflow: hidden;
176
176
  }
177
- .progress[data-v-206755e6] {
177
+ .progress[data-v-f55c66cc] {
178
178
  width: 100%;
179
179
  height: 100%;
180
180
  }
181
- .format[data-v-206755e6] {
181
+ .format[data-v-f55c66cc] {
182
182
  margin: 0 auto;
183
183
  }
184
184
  .input[data-v-506cf42a] {
@@ -478,15 +478,15 @@ x-vue-echarts{display:block;width:100%;height:100%}
478
478
  .full-modal .ant-modal-body {
479
479
  padding: 45px 30px 0;
480
480
  }
481
- .top-title[data-v-f913847e],
482
- .no-title[data-v-f913847e] {
481
+ .top-title[data-v-6e332bd5],
482
+ .no-title[data-v-6e332bd5] {
483
483
  position: relative;
484
484
  box-sizing: border-box;
485
485
  width: 100%;
486
486
  height: 100%;
487
487
  }
488
- .top-title .border-item[data-v-f913847e],
489
- .no-title .border-item[data-v-f913847e] {
488
+ .top-title .border-item[data-v-6e332bd5],
489
+ .no-title .border-item[data-v-6e332bd5] {
490
490
  position: absolute;
491
491
  z-index: 2;
492
492
  border-color: #50FCFC;
@@ -494,8 +494,8 @@ x-vue-echarts{display:block;width:100%;height:100%}
494
494
  width: 13px;
495
495
  height: 11px;
496
496
  }
497
- .top-title .top-left[data-v-f913847e],
498
- .no-title .top-left[data-v-f913847e] {
497
+ .top-title .top-left[data-v-6e332bd5],
498
+ .no-title .top-left[data-v-6e332bd5] {
499
499
  top: 0;
500
500
  left: 0;
501
501
  border-top-width: 1px;
@@ -503,8 +503,8 @@ x-vue-echarts{display:block;width:100%;height:100%}
503
503
  border-bottom-width: 0;
504
504
  border-left-width: 1px;
505
505
  }
506
- .top-title .top-right[data-v-f913847e],
507
- .no-title .top-right[data-v-f913847e] {
506
+ .top-title .top-right[data-v-6e332bd5],
507
+ .no-title .top-right[data-v-6e332bd5] {
508
508
  top: 0;
509
509
  right: -2px;
510
510
  border-top-width: 1px;
@@ -512,8 +512,8 @@ x-vue-echarts{display:block;width:100%;height:100%}
512
512
  border-bottom-width: 0;
513
513
  border-left-width: 0;
514
514
  }
515
- .top-title .bottom-left[data-v-f913847e],
516
- .no-title .bottom-left[data-v-f913847e] {
515
+ .top-title .bottom-left[data-v-6e332bd5],
516
+ .no-title .bottom-left[data-v-6e332bd5] {
517
517
  bottom: -2px;
518
518
  left: 0;
519
519
  border-top-width: 0;
@@ -521,8 +521,8 @@ x-vue-echarts{display:block;width:100%;height:100%}
521
521
  border-bottom-width: 1px;
522
522
  border-left-width: 1px;
523
523
  }
524
- .top-title .bottom-right[data-v-f913847e],
525
- .no-title .bottom-right[data-v-f913847e] {
524
+ .top-title .bottom-right[data-v-6e332bd5],
525
+ .no-title .bottom-right[data-v-6e332bd5] {
526
526
  bottom: -2px;
527
527
  right: -2px;
528
528
  border-top-width: 0;
@@ -530,8 +530,8 @@ x-vue-echarts{display:block;width:100%;height:100%}
530
530
  border-bottom-width: 1px;
531
531
  border-left-width: 0;
532
532
  }
533
- .top-title .title-item-wrapper[data-v-f913847e],
534
- .no-title .title-item-wrapper[data-v-f913847e] {
533
+ .top-title .title-item-wrapper[data-v-6e332bd5],
534
+ .no-title .title-item-wrapper[data-v-6e332bd5] {
535
535
  width: 100%;
536
536
  padding: 5px 0;
537
537
  background-image: url("data:image/png;base64,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");
@@ -539,37 +539,37 @@ x-vue-echarts{display:block;width:100%;height:100%}
539
539
  display: grid;
540
540
  place-content: center;
541
541
  }
542
- .top-title .title-item[data-v-f913847e],
543
- .no-title .title-item[data-v-f913847e] {
542
+ .top-title .title-item[data-v-6e332bd5],
543
+ .no-title .title-item[data-v-6e332bd5] {
544
544
  display: flex;
545
545
  align-items: center;
546
546
  }
547
- .top-title .title[data-v-f913847e],
548
- .no-title .title[data-v-f913847e] {
547
+ .top-title .title[data-v-6e332bd5],
548
+ .no-title .title[data-v-6e332bd5] {
549
549
  padding: 0 17px;
550
550
  color: #d5fdfd;
551
551
  background: linear-gradient(0deg, #01aaff, #00eaff);
552
552
  -webkit-background-clip: text;
553
553
  -webkit-text-fill-color: transparent;
554
554
  }
555
- .top-title .title-decoration-left[data-v-f913847e],
556
- .no-title .title-decoration-left[data-v-f913847e] {
555
+ .top-title .title-decoration-left[data-v-6e332bd5],
556
+ .no-title .title-decoration-left[data-v-6e332bd5] {
557
557
  width: 58px;
558
558
  height: 14px;
559
559
  }
560
- .top-title .title-decoration-right[data-v-f913847e],
561
- .no-title .title-decoration-right[data-v-f913847e] {
560
+ .top-title .title-decoration-right[data-v-6e332bd5],
561
+ .no-title .title-decoration-right[data-v-6e332bd5] {
562
562
  width: 58px;
563
563
  height: 14px;
564
564
  }
565
- .left-title[data-v-f913847e] {
565
+ .left-title[data-v-6e332bd5] {
566
566
  position: relative;
567
567
  width: 100%;
568
568
  height: 100%;
569
569
  border: 2px solid #375A8899;
570
570
  border-radius: 0;
571
571
  }
572
- .left-title .title[data-v-f913847e] {
572
+ .left-title .title[data-v-6e332bd5] {
573
573
  position: absolute;
574
574
  left: -33px;
575
575
  top: -14px;
@@ -584,7 +584,7 @@ x-vue-echarts{display:block;width:100%;height:100%}
584
584
  font-weight: 500;
585
585
  text-align: center;
586
586
  }
587
- .left-title .title span[data-v-f913847e] {
587
+ .left-title .title span[data-v-6e332bd5] {
588
588
  writing-mode: vertical-lr;
589
589
  }
590
590
  .contain[data-v-378919f0] {
@@ -664,15 +664,16 @@ x-vue-echarts{display:block;width:100%;height:100%}
664
664
  font-size: 16px;
665
665
  color: #333;
666
666
  }
667
- .table[data-v-11728224] {
667
+ .table[data-v-a84f3122] {
668
668
  width: 100%;
669
669
  }
670
- .goUp[data-v-11728224] {
670
+ .goUp[data-v-a84f3122] {
671
671
  color: #FF512E;
672
672
  display: flex;
673
673
  align-items: center;
674
+ justify-content: center;
674
675
  }
675
- .goUp[data-v-11728224]:before {
676
+ .goUp[data-v-a84f3122]:before {
676
677
  content: '';
677
678
  display: block;
678
679
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAV1BMVEUAAAD/WzT/WjP/WDD/WzT/WzP/WzT/WzT/WzT/WjT/WzT/WDT/YED/WzT/WzT/WjT/YED/WzT/WzT/WzT/XDT/WzT/WjX/WjP/XDT/XDT/WTL/Tif/WzReH8z5AAAAHHRSTlMA8RgS9W9YHbePZyME5sVjCP7bzcCxgndOQC4GFJJgKwAAAIJJREFUKM+Nkd0OgyAMRjvqcLA53fzXvv9zaokmxq8mnsue5ACFDjiy+XyjLZ7yyK35OxN5mSFZKa2QojEIKRhrZKM0QnsMQxirmJ0kBubTIZvAtUyiFAT4JFoUIYmIotZ5xjDPfyoCAV16nMPdFir8xZ16nM//tePtXw2ODOJY0V0WqQwM2rgKrU0AAAAASUVORK5CYII=");
@@ -682,12 +683,13 @@ x-vue-echarts{display:block;width:100%;height:100%}
682
683
  background-size: cover;
683
684
  margin-right: 2px;
684
685
  }
685
- .goDown[data-v-11728224] {
686
+ .goDown[data-v-a84f3122] {
686
687
  color: #00F7B4;
687
688
  display: flex;
688
689
  align-items: center;
690
+ justify-content: center;
689
691
  }
690
- .goDown[data-v-11728224]:before {
692
+ .goDown[data-v-a84f3122]:before {
691
693
  content: '';
692
694
  display: block;
693
695
  background-image: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAMAAADXqc3KAAAAaVBMVEUAAAAA+b0A+LwA+L0A/6AA+LwA+L0A+L0A+b0A+LwA/78A+LwA+L0A+LwA+LwA+b0A+LsA970A+LwA+r0A9boA/7YA+LwA+LwA+LwA+L0A97wA+bwA970A970A+bwA+bwA+LsA9rkA+LzcCa+5AAAAInRSTlMAd/uVAvjYxCsiDvPp37F7aWBMNBgK7s/NvKidh4NXUEcdp9A1SAAAAI5JREFUKM+l0UcOwzAMRFGqWZbcW3rl/Q8ZhUGKMN7lLedD4EKUi/3BEIrGsQu432pmPuF+1WnfRNjLipMz7HbHT3cIF9n3BLYSerzAooSgZNcWQiuhIdBI8JQblNISCqXU/BNG/mqzJ+az13MWluIdRspNmgV+Rvc6vkCwPu1uIhQq5o7WDOwtrToG+ssDeh4QPgfT2X0AAAAASUVORK5CYII=");
@@ -697,11 +699,11 @@ x-vue-echarts{display:block;width:100%;height:100%}
697
699
  background-size: cover;
698
700
  margin-right: 2px;
699
701
  }
700
- .action-list[data-v-11728224] {
702
+ .action-list[data-v-a84f3122] {
701
703
  display: flex;
702
704
  width: 100%;
703
705
  }
704
- .action[data-v-11728224] {
706
+ .action[data-v-a84f3122] {
705
707
  flex: 1;
706
708
  }
707
709
  .ecan-table *::-webkit-scrollbar {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecan-bi/datav",
3
- "version": "1.0.50",
3
+ "version": "1.0.53",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./types/index.d.ts",
@@ -0,0 +1,9 @@
1
+ export declare const EVENT_BUS = "EVENT_BUS";
2
+ export declare const GLOBAL_CONFIG = "GLOBAL_CONFIG";
3
+ export declare const GLOBAL_MODEL = "GLOBAL_MODEL";
4
+ export declare const REQUEST_MODEL = "REQUEST_MODEL";
5
+ export declare const GLOBAL_TOKEN = "GLOBAL_TOKEN";
6
+ export declare const REFRESH_PAGE = "REFRESH_PAGE";
7
+ export declare const INDICATOR_URL: any;
8
+ export declare const UPLOAD_PATH: any;
9
+ export declare const BASE_URL: any;
@@ -0,0 +1,15 @@
1
+ export * from './usePickComponentStyle';
2
+ export * from './usePickEchartsData';
3
+ export * from './useOnEvent';
4
+ export * from './useEmitEvent';
5
+ export * from './useTransformChartDataByAttrValue';
6
+ export * from './useRequestData';
7
+ export * from './useTransformChartDataByAttrKey';
8
+ export * from './useImagePath';
9
+ export * from './usePageUrl';
10
+ export * from './useVariablesInText';
11
+ export * from './useRequestDiagramData';
12
+ export * from './useValueFormatter';
13
+ export * from './useTooltipFormatter';
14
+ export * from './useIndicatorData';
15
+ export * from './useHrefParamsToGlobalVariables';
@@ -0,0 +1,2 @@
1
+ export declare const useDownloadFile: (downloadFileUrl: string) => Promise<void>;
2
+ export default useDownloadFile;
@@ -0,0 +1,7 @@
1
+ import { Events } from '../props';
2
+ /**
3
+ * 触发事件
4
+ * @param events 事件数据
5
+ */
6
+ export declare const useEmitEvent: (events: Events) => (on: string, callback?: Function) => () => void;
7
+ export default useEmitEvent;
@@ -0,0 +1,2 @@
1
+ export declare const useHrefParamsToGlobalVariables: () => void;
2
+ export default useHrefParamsToGlobalVariables;
@@ -0,0 +1,2 @@
1
+ export declare const useImagePath: (path: string, isFormat?: boolean) => string;
2
+ export default useImagePath;
@@ -0,0 +1,4 @@
1
+ export declare const useIndicatorData: (props?: {
2
+ [key: string]: any;
3
+ }) => () => Promise<import("axios").AxiosResponse<any, any>>;
4
+ export default useIndicatorData;
@@ -0,0 +1,6 @@
1
+ export declare const useOnEvent: <T extends {
2
+ [id: string]: any;
3
+ }>(props: Readonly<Partial<T>>, events: {
4
+ [key: string]: any;
5
+ }) => void;
6
+ export default useOnEvent;
@@ -0,0 +1,2 @@
1
+ export declare const usePageUrl: (pageMode: string, pageId: string) => string;
2
+ export default usePageUrl;
@@ -0,0 +1,9 @@
1
+ import { HTMLAttributes } from 'vue';
2
+ /**
3
+ * 过滤不是 style 属性的组件属性
4
+ * @param props 组件属性
5
+ * @param excludeStyleList 剔除组件的属性
6
+ * @returns style属性
7
+ */
8
+ export declare const usePickComponentStyle: <T>(props: Readonly<Partial<T>>, excludeStyleList?: string[]) => import("vue").ComputedRef<HTMLAttributes>;
9
+ export default usePickComponentStyle;
@@ -0,0 +1,2 @@
1
+ export declare const usePickEchartsData: (data?: any) => any;
2
+ export default usePickEchartsData;
@@ -0,0 +1,6 @@
1
+ export declare const useRequestData: (props: {
2
+ [key: string]: any;
3
+ }, callBack?: Function) => (params?: {
4
+ [key: string]: any;
5
+ }) => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export default useRequestData;
@@ -0,0 +1,6 @@
1
+ /**
2
+ * 请求图表数据接口
3
+ * @returns {{requestDiagram: () => Promise<AxiosResponse<any>>}}
4
+ */
5
+ export declare const useRequestDiagramData: (props: any) => () => Promise<import("axios").AxiosResponse<any, any>>;
6
+ export default useRequestDiagramData;
@@ -0,0 +1,4 @@
1
+ export declare const useTooltipFormatter: (formatter: string, data?: {
2
+ [key: string]: any;
3
+ }) => (param: any) => string;
4
+ export default useTooltipFormatter;
@@ -0,0 +1,13 @@
1
+ import { Data, KeyTypeDataFieldNames } from '../props';
2
+ /**
3
+ * 图形转化数据
4
+ * @param data 数据
5
+ * @param dataFieldNames 字段映射
6
+ */
7
+ export declare const useTransformChartDataByAttrKey: (data: Data, dataFieldNames: KeyTypeDataFieldNames) => {
8
+ dimensions: unknown[];
9
+ dataset: {
10
+ [key: string]: any;
11
+ }[];
12
+ };
13
+ export default useTransformChartDataByAttrKey;
@@ -0,0 +1,13 @@
1
+ import { Data, ValueTypeDataFieldNames } from '../props';
2
+ /**
3
+ * 图形转化数据
4
+ * @param data 数据
5
+ * @param dataFieldNames 字段映射
6
+ */
7
+ export declare const useTransformChartDataByAttrValue: (data: Data, dataFieldNames?: ValueTypeDataFieldNames) => {
8
+ dimensions: unknown[];
9
+ dataset: {
10
+ [key: string]: any;
11
+ }[];
12
+ };
13
+ export default useTransformChartDataByAttrValue;
@@ -0,0 +1,2 @@
1
+ export declare const useValueFormatter: (formatter?: string, value?: string) => string;
2
+ export default useValueFormatter;
@@ -0,0 +1,4 @@
1
+ export declare const useVariablesInText: (text?: string, data?: {
2
+ [key: string]: any;
3
+ }) => string;
4
+ export default useVariablesInText;
@@ -0,0 +1,71 @@
1
+ interface Event {
2
+ on: string;
3
+ target: string;
4
+ emit: string;
5
+ }
6
+ export declare type Events = Event[];
7
+ export declare type RequestMethod = 'get' | 'post' | 'put' | 'delete' | 'head';
8
+ export interface RequestParam {
9
+ key: string;
10
+ value: {
11
+ id: string;
12
+ prop: string;
13
+ } | string;
14
+ }
15
+ export declare type RequestParams = RequestParam[];
16
+ export interface Props {
17
+ id: string;
18
+ name: string;
19
+ keyName: string;
20
+ type: string;
21
+ width: string;
22
+ height: string;
23
+ position: string;
24
+ top: string;
25
+ left: string;
26
+ zIndex: number;
27
+ rotate: string;
28
+ isShow: boolean;
29
+ isRender: boolean;
30
+ events: Events;
31
+ requestUrl: string;
32
+ requestMethod: RequestMethod;
33
+ requestHeaders: {
34
+ [key: string]: any;
35
+ };
36
+ isOpenRequestTimer: boolean;
37
+ requestInterval: number;
38
+ requestParams: RequestParams;
39
+ requestSort: number;
40
+ dataType: 'static' | 'request' | 'indicator';
41
+ }
42
+ export declare const props: Props;
43
+ export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
44
+ type?: undefined;
45
+ default?: undefined;
46
+ } | {
47
+ type: any;
48
+ default: T[keyof T];
49
+ }; };
50
+ export interface EventsProp {
51
+ events: Events;
52
+ }
53
+ interface DataItem {
54
+ name: string | number;
55
+ value: string | number;
56
+ type?: string;
57
+ }
58
+ export declare type Data = DataItem[];
59
+ export interface KeyTypeDataFieldNames {
60
+ name: string;
61
+ types: {
62
+ label: string;
63
+ value: string;
64
+ }[];
65
+ }
66
+ export interface ValueTypeDataFieldNames {
67
+ name: string;
68
+ value: string;
69
+ type: string;
70
+ }
71
+ export {};
@@ -0,0 +1,2 @@
1
+ export declare const request: import("axios").AxiosInstance;
2
+ export default request;
@@ -0,0 +1,20 @@
1
+ export declare const handleAxisLabelFormatter: (formatter: string) => string;
2
+ /**
3
+ * 处理图表format, 目前只做 \\n => \n 转化
4
+ * @param formatter 格式化字符串
5
+ */
6
+ export declare const handleFormatter: (formatter: string) => string;
7
+ /**
8
+ * 格式化金额
9
+ * @param value 数值
10
+ * @param decimalPlaces 格式化位数
11
+ */
12
+ export declare const formatMoney: (value: string | number, decimalPlaces?: number) => string | number;
13
+ export declare const formatPercentage: (value: string | number, decimalPlaces?: number) => string | number;
14
+ /**
15
+ * 字符串1 中是否包含 字符串2 (会全部转成小写)
16
+ * @param v1 字符串1
17
+ * @param v2 字符串2
18
+ * @constructor
19
+ */
20
+ export declare const lowerCaseIncludes: (v1: any, v2: any) => boolean;
@@ -0,0 +1,5 @@
1
+ import { Plugin } from 'vue';
2
+ export declare type SFCWithInstall<T> = T & Plugin;
3
+ export declare const withInstall: <T, E extends Record<string, any>>(main: T, extra?: E) => SFCWithInstall<T> & E;
4
+ export declare const withInstallFunction: <T>(fn: T, name: string) => SFCWithInstall<T>;
5
+ export declare const withNoopInstall: <T>(component: T) => SFCWithInstall<T>;