@ecan-bi/datav 1.0.7 → 1.0.8

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 (75) hide show
  1. package/README.dev.md +16 -0
  2. package/README.md +0 -16
  3. package/dist/_utils/constant.d.ts +3 -0
  4. package/dist/_utils/hooks/index.d.ts +6 -0
  5. package/dist/_utils/hooks/useEmitEvent.d.ts +7 -0
  6. package/dist/_utils/hooks/useOnEvent.d.ts +6 -0
  7. package/dist/_utils/{hooks.d.ts → hooks/usePickComponentStyle.d.ts} +3 -2
  8. package/dist/_utils/hooks/usePickEchartsData.d.ts +2 -0
  9. package/dist/_utils/hooks/useRequestData.d.ts +14 -0
  10. package/dist/_utils/hooks/useRequestParams.d.ts +5 -0
  11. package/dist/_utils/hooks/useTransformEchartsDataset.d.ts +8 -0
  12. package/dist/_utils/props.d.ts +37 -3
  13. package/dist/_utils/request.d.ts +2 -0
  14. package/dist/_utils/util.d.ts +5 -0
  15. package/dist/components.d.ts +3 -0
  16. package/dist/container/border/index.d.ts +3 -0
  17. package/dist/container/border/props.d.ts +235 -0
  18. package/dist/container/index.d.ts +2 -0
  19. package/dist/container/modal/Modal.vue.d.ts +363 -0
  20. package/dist/container/modal/index.d.ts +3 -0
  21. package/dist/container/modal/props.d.ts +138 -0
  22. package/dist/control/button/Button.vue.d.ts +282 -0
  23. package/dist/control/button/index.d.ts +3 -0
  24. package/dist/control/button/props.d.ts +196 -0
  25. package/dist/control/date-picker/DatePicker.vue.d.ts +397 -0
  26. package/dist/control/date-picker/index.d.ts +3 -0
  27. package/dist/control/date-picker/props.d.ts +236 -0
  28. package/dist/control/index.d.ts +4 -0
  29. package/dist/control/input/Input.vue.d.ts +305 -3
  30. package/dist/control/input/index.d.ts +1 -0
  31. package/dist/control/input/props.d.ts +215 -0
  32. package/dist/control/range-picker/RangePicker.vue.d.ts +296 -0
  33. package/dist/control/range-picker/index.d.ts +3 -0
  34. package/dist/control/range-picker/props.d.ts +205 -0
  35. package/dist/control/select/Select.vue.d.ts +308 -0
  36. package/dist/control/select/index.d.ts +3 -0
  37. package/dist/control/select/props.d.ts +223 -0
  38. package/dist/graph/bar/Bar.vue.d.ts +603 -9
  39. package/dist/graph/bar/index.d.ts +1 -1
  40. package/dist/graph/bar/props.d.ts +375 -5
  41. package/dist/graph/custom-graph/CustomGraph.vue.d.ts +355 -0
  42. package/dist/graph/custom-graph/index.d.ts +3 -0
  43. package/dist/graph/custom-graph/props.d.ts +263 -0
  44. package/dist/graph/index.d.ts +1 -0
  45. package/dist/graph/line/Line.vue.d.ts +639 -7
  46. package/dist/graph/line/props.d.ts +397 -4
  47. package/dist/graph/pie/Pie.vue.d.ts +731 -13
  48. package/dist/graph/pie/index.d.ts +1 -1
  49. package/dist/graph/pie/props.d.ts +477 -4
  50. package/dist/graph/scatter/Scatter.vue.d.ts +646 -10
  51. package/dist/graph/scatter/index.d.ts +1 -1
  52. package/dist/graph/scatter/props.d.ts +398 -5
  53. package/dist/index.esm.js +2 -2
  54. package/dist/index.umd.js +2 -2
  55. package/dist/media/image/Image.vue.d.ts +293 -0
  56. package/dist/media/image/index.d.ts +3 -0
  57. package/dist/media/image/props.d.ts +205 -0
  58. package/dist/media/index.d.ts +1 -0
  59. package/dist/setting/index.d.ts +2 -1
  60. package/dist/setting/page-config/PageConfig.vue.d.ts +78 -0
  61. package/dist/setting/page-config/index.d.ts +3 -0
  62. package/dist/setting/page-config/props.d.ts +61 -0
  63. package/dist/setting/provider-config/ProviderConfig.vue.d.ts +34 -0
  64. package/dist/setting/{page-cofig → provider-config}/index.d.ts +2 -2
  65. package/dist/setting/provider-config/props.d.ts +29 -0
  66. package/dist/table/index.d.ts +1 -0
  67. package/dist/table/table/Table.vue.d.ts +494 -0
  68. package/dist/table/table/index.d.ts +3 -0
  69. package/dist/table/table/props.d.ts +382 -0
  70. package/dist/text/text/Text.vue.d.ts +383 -5
  71. package/dist/text/text/index.d.ts +1 -1
  72. package/dist/text/text/props.d.ts +264 -1
  73. package/package.json +15 -13
  74. package/dist/setting/page-cofig/PageConfig.vue.d.ts +0 -13
  75. package/dist/setting/page-cofig/props.d.ts +0 -8
package/README.dev.md ADDED
@@ -0,0 +1,16 @@
1
+ ## 大屏设计器:Vue3 + TS + Jest + eslint
2
+
3
+ ### 项目开发指南
4
+ ```
5
+ // 下载项目依赖(node_modules)
6
+ yarn install --registry=https://registry.npm.taobao.org
7
+
8
+ // 开发模式:监听文件变化
9
+ npm run dev
10
+
11
+ // 生成模式打包
12
+ npm run build
13
+
14
+ // 建立依赖
15
+ npm link
16
+ ```
package/README.md CHANGED
@@ -1,16 +0,0 @@
1
- ## 大屏设计器:Vue3 + TS + Jest + eslint
2
-
3
- ### 项目开发指南
4
- ```
5
- // 下载项目依赖(node_modules)
6
- yarn install --registry=https://registry.npm.taobao.org
7
-
8
- // 开发模式:监听文件变化
9
- npm run dev
10
-
11
- // 生成模式打包
12
- npm run build
13
-
14
- // 建立依赖
15
- npm link
16
- ```
@@ -0,0 +1,3 @@
1
+ export declare const EVENT_BUS = "EVENT_BUS";
2
+ export declare const GLOBAL_VAR = "GLOBAL_VAR";
3
+ export declare const GLOBAL_MODEL = "GLOBAL_MODEL";
@@ -0,0 +1,6 @@
1
+ export * from './usePickComponentStyle';
2
+ export * from './usePickEchartsData';
3
+ export * from './useOnEvent';
4
+ export * from './useEmitEvent';
5
+ export * from './useRequestParams';
6
+ export * from './useTransformEchartsDataset';
@@ -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,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;
@@ -1,8 +1,9 @@
1
+ import { HTMLAttributes } from 'vue';
1
2
  /**
2
3
  * 过滤不是 style 属性的组件属性
3
4
  * @param props 组件属性
4
5
  * @param excludeStyleList 剔除组件的属性
5
6
  * @returns style属性
6
7
  */
7
- export declare const usePickComponentStyle: <T>(props: Readonly<Partial<T>>, excludeStyleList?: string[]) => import("vue").ComputedRef<any>;
8
- export declare const usePickEchartsData: (props: any) => import("vue").ComputedRef<any>;
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,14 @@
1
+ import { RequestMethod } from '../props';
2
+ interface RequestDataOptions {
3
+ url: string;
4
+ method: RequestMethod;
5
+ headers: {
6
+ [key: string]: string;
7
+ };
8
+ isOpenTimer: boolean;
9
+ interval: number;
10
+ }
11
+ export declare const useRequestData: (requestDataOptions: RequestDataOptions) => {
12
+ requestData: () => Promise<import("axios").AxiosResponse<any, any>>;
13
+ };
14
+ export default useRequestData;
@@ -0,0 +1,5 @@
1
+ import { RequestParams } from '../props';
2
+ export declare const useRequestParams: (params: RequestParams) => {
3
+ [key: string]: any;
4
+ };
5
+ export default useRequestParams;
@@ -0,0 +1,8 @@
1
+ import { Data } from '../props';
2
+ export declare const useTransformEchartsDataset: (data: Data) => {
3
+ dimensions: string[];
4
+ source: {
5
+ [key: string]: any;
6
+ }[];
7
+ };
8
+ export default useTransformEchartsDataset;
@@ -1,6 +1,22 @@
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[];
1
16
  export interface Props {
2
17
  id: string;
3
18
  name: string;
19
+ keyName: string;
4
20
  type: string;
5
21
  width: string;
6
22
  height: string;
@@ -11,14 +27,32 @@ export interface Props {
11
27
  rotate: string;
12
28
  isShow: boolean;
13
29
  isRender: boolean;
14
- imgUrl: string;
30
+ isRequestData: boolean;
31
+ requestUrl: string;
32
+ requestMethod: RequestMethod;
33
+ requestHeaders: {
34
+ [key: string]: any;
35
+ };
36
+ isOpenRequestTimer: boolean;
37
+ requestInterval: number;
38
+ requestParams: RequestParams;
39
+ events: Events;
15
40
  }
16
41
  export declare const props: Props;
17
- export declare const transformToComponentProps: <T extends {}>(props: T) => any;
42
+ export declare const transformToComponentProps: <T extends {}>(props: T) => { [P in keyof T]: {
43
+ type?: undefined;
44
+ default?: undefined;
45
+ } | {
46
+ type: any;
47
+ default: T[keyof T];
48
+ }; };
49
+ export interface EventsProp {
50
+ events: Events;
51
+ }
18
52
  interface DataItem {
19
53
  name: string | number;
20
54
  value: string | number;
55
+ type?: string;
21
56
  }
22
57
  export declare type Data = DataItem[];
23
- export declare type DataSet = Data[];
24
58
  export {};
@@ -0,0 +1,2 @@
1
+ export declare const request: import("axios").AxiosInstance;
2
+ export default request;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 处理图表format, 目前只做 \\n => \n 转化
3
+ * @param formatter 格式化字符串
4
+ */
5
+ export declare const handleFormatter: (formatter: string) => string;
@@ -3,3 +3,6 @@ export * from './setting';
3
3
  export * from './text';
4
4
  export * from './control';
5
5
  export * from './graph';
6
+ export * from './container';
7
+ export * from './media';
8
+ export * from './table';
@@ -0,0 +1,3 @@
1
+ export declare const EcanBorder: import("../../_utils/withInstall").SFCWithInstall<import("vue").DefineComponent<{}, {}, any, import("vue").ComputedOptions, import("vue").MethodOptions, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>> & Record<string, any>;
2
+ export default EcanBorder;
3
+ export * from './props';
@@ -0,0 +1,235 @@
1
+ import { Props } from '../../_utils/props';
2
+ export interface BorderProps extends Props {
3
+ fontSize: string;
4
+ fontFamily: string;
5
+ fontWeight: number;
6
+ title: string;
7
+ }
8
+ export declare const borderProps: BorderProps;
9
+ export declare const cardComponentProps: {
10
+ fontSize: {
11
+ type?: undefined;
12
+ default?: undefined;
13
+ } | {
14
+ type: any;
15
+ default: string | number | boolean | {
16
+ [key: string]: any;
17
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
18
+ };
19
+ fontFamily: {
20
+ type?: undefined;
21
+ default?: undefined;
22
+ } | {
23
+ type: any;
24
+ default: string | number | boolean | {
25
+ [key: string]: any;
26
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
27
+ };
28
+ fontWeight: {
29
+ type?: undefined;
30
+ default?: undefined;
31
+ } | {
32
+ type: any;
33
+ default: string | number | boolean | {
34
+ [key: string]: any;
35
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
36
+ };
37
+ title: {
38
+ type?: undefined;
39
+ default?: undefined;
40
+ } | {
41
+ type: any;
42
+ default: string | number | boolean | {
43
+ [key: string]: any;
44
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
45
+ };
46
+ id: {
47
+ type?: undefined;
48
+ default?: undefined;
49
+ } | {
50
+ type: any;
51
+ default: string | number | boolean | {
52
+ [key: string]: any;
53
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
54
+ };
55
+ name: {
56
+ type?: undefined;
57
+ default?: undefined;
58
+ } | {
59
+ type: any;
60
+ default: string | number | boolean | {
61
+ [key: string]: any;
62
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
63
+ };
64
+ keyName: {
65
+ type?: undefined;
66
+ default?: undefined;
67
+ } | {
68
+ type: any;
69
+ default: string | number | boolean | {
70
+ [key: string]: any;
71
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
72
+ };
73
+ type: {
74
+ type?: undefined;
75
+ default?: undefined;
76
+ } | {
77
+ type: any;
78
+ default: string | number | boolean | {
79
+ [key: string]: any;
80
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
81
+ };
82
+ width: {
83
+ type?: undefined;
84
+ default?: undefined;
85
+ } | {
86
+ type: any;
87
+ default: string | number | boolean | {
88
+ [key: string]: any;
89
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
90
+ };
91
+ height: {
92
+ type?: undefined;
93
+ default?: undefined;
94
+ } | {
95
+ type: any;
96
+ default: string | number | boolean | {
97
+ [key: string]: any;
98
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
99
+ };
100
+ position: {
101
+ type?: undefined;
102
+ default?: undefined;
103
+ } | {
104
+ type: any;
105
+ default: string | number | boolean | {
106
+ [key: string]: any;
107
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
108
+ };
109
+ top: {
110
+ type?: undefined;
111
+ default?: undefined;
112
+ } | {
113
+ type: any;
114
+ default: string | number | boolean | {
115
+ [key: string]: any;
116
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
117
+ };
118
+ left: {
119
+ type?: undefined;
120
+ default?: undefined;
121
+ } | {
122
+ type: any;
123
+ default: string | number | boolean | {
124
+ [key: string]: any;
125
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
126
+ };
127
+ zIndex: {
128
+ type?: undefined;
129
+ default?: undefined;
130
+ } | {
131
+ type: any;
132
+ default: string | number | boolean | {
133
+ [key: string]: any;
134
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
135
+ };
136
+ rotate: {
137
+ type?: undefined;
138
+ default?: undefined;
139
+ } | {
140
+ type: any;
141
+ default: string | number | boolean | {
142
+ [key: string]: any;
143
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
144
+ };
145
+ isShow: {
146
+ type?: undefined;
147
+ default?: undefined;
148
+ } | {
149
+ type: any;
150
+ default: string | number | boolean | {
151
+ [key: string]: any;
152
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
153
+ };
154
+ isRender: {
155
+ type?: undefined;
156
+ default?: undefined;
157
+ } | {
158
+ type: any;
159
+ default: string | number | boolean | {
160
+ [key: string]: any;
161
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
162
+ };
163
+ isRequestData: {
164
+ type?: undefined;
165
+ default?: undefined;
166
+ } | {
167
+ type: any;
168
+ default: string | number | boolean | {
169
+ [key: string]: any;
170
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
171
+ };
172
+ requestUrl: {
173
+ type?: undefined;
174
+ default?: undefined;
175
+ } | {
176
+ type: any;
177
+ default: string | number | boolean | {
178
+ [key: string]: any;
179
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
180
+ };
181
+ requestMethod: {
182
+ type?: undefined;
183
+ default?: undefined;
184
+ } | {
185
+ type: any;
186
+ default: string | number | boolean | {
187
+ [key: string]: any;
188
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
189
+ };
190
+ requestHeaders: {
191
+ type?: undefined;
192
+ default?: undefined;
193
+ } | {
194
+ type: any;
195
+ default: string | number | boolean | {
196
+ [key: string]: any;
197
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
198
+ };
199
+ isOpenRequestTimer: {
200
+ type?: undefined;
201
+ default?: undefined;
202
+ } | {
203
+ type: any;
204
+ default: string | number | boolean | {
205
+ [key: string]: any;
206
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
207
+ };
208
+ requestInterval: {
209
+ type?: undefined;
210
+ default?: undefined;
211
+ } | {
212
+ type: any;
213
+ default: string | number | boolean | {
214
+ [key: string]: any;
215
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
216
+ };
217
+ requestParams: {
218
+ type?: undefined;
219
+ default?: undefined;
220
+ } | {
221
+ type: any;
222
+ default: string | number | boolean | {
223
+ [key: string]: any;
224
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
225
+ };
226
+ events: {
227
+ type?: undefined;
228
+ default?: undefined;
229
+ } | {
230
+ type: any;
231
+ default: string | number | boolean | {
232
+ [key: string]: any;
233
+ } | import("../../_utils/props").RequestParams | import("../../_utils/props").Events;
234
+ };
235
+ };
@@ -0,0 +1,2 @@
1
+ export * from './border';
2
+ export * from './modal';