@ecan-bi/datav 1.0.6 → 1.0.9
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/README.dev.md +16 -0
- package/dist/_utils/constant.d.ts +3 -0
- package/dist/_utils/hooks/index.d.ts +6 -0
- package/dist/_utils/hooks/useEmitEvent.d.ts +7 -0
- package/dist/_utils/hooks/useOnEvent.d.ts +6 -0
- package/dist/_utils/{hooks.d.ts → hooks/usePickComponentStyle.d.ts} +3 -3
- package/dist/_utils/hooks/usePickEchartsData.d.ts +2 -0
- package/dist/_utils/hooks/useRequestData.d.ts +14 -0
- package/dist/_utils/hooks/useRequestParams.d.ts +5 -0
- package/dist/_utils/hooks/useTransformEchartsDataset.d.ts +8 -0
- package/dist/_utils/props.d.ts +43 -2
- package/dist/_utils/request.d.ts +2 -0
- package/dist/_utils/util.d.ts +5 -0
- package/dist/common/{vue-echarts/VueEcharts.d.ts → echarts/ECharts.d.ts} +0 -0
- package/dist/common/{vue-echarts → echarts}/composables/api.d.ts +0 -0
- package/dist/common/{vue-echarts → echarts}/composables/autoresize.d.ts +0 -0
- package/dist/common/{vue-echarts → echarts}/composables/index.d.ts +0 -0
- package/dist/common/{vue-echarts → echarts}/composables/loading.d.ts +0 -0
- package/dist/common/echarts/index.d.ts +2 -0
- package/dist/common/{vue-echarts → echarts}/types.d.ts +0 -0
- package/dist/common/{vue-echarts → echarts}/utils.d.ts +0 -0
- package/dist/common/index.d.ts +1 -0
- package/dist/components.d.ts +4 -0
- package/dist/container/border/index.d.ts +3 -0
- package/dist/container/border/props.d.ts +235 -0
- package/dist/container/index.d.ts +2 -0
- package/dist/container/modal/Modal.vue.d.ts +364 -0
- package/dist/container/modal/index.d.ts +3 -0
- package/dist/container/modal/props.d.ts +138 -0
- package/dist/control/button/Button.vue.d.ts +283 -0
- package/dist/control/button/index.d.ts +3 -0
- package/dist/control/button/props.d.ts +196 -0
- package/dist/control/date-picker/DatePicker.vue.d.ts +397 -0
- package/dist/control/date-picker/index.d.ts +3 -0
- package/dist/control/date-picker/props.d.ts +236 -0
- package/dist/control/index.d.ts +4 -0
- package/dist/control/input/Input.vue.d.ts +306 -3
- package/dist/control/input/index.d.ts +1 -0
- package/dist/control/input/props.d.ts +215 -0
- package/dist/control/range-picker/RangePicker.vue.d.ts +296 -0
- package/dist/control/range-picker/index.d.ts +3 -0
- package/dist/control/range-picker/props.d.ts +205 -0
- package/dist/control/select/Select.vue.d.ts +308 -0
- package/dist/control/select/index.d.ts +3 -0
- package/dist/control/select/props.d.ts +223 -0
- package/dist/graph/bar/Bar.vue.d.ts +617 -0
- package/dist/graph/bar/index.d.ts +3 -0
- package/dist/graph/bar/props.d.ts +382 -0
- package/dist/graph/custom-graph/CustomGraph.vue.d.ts +355 -0
- package/dist/graph/custom-graph/index.d.ts +3 -0
- package/dist/graph/custom-graph/props.d.ts +263 -0
- package/dist/graph/index.d.ts +4 -0
- package/dist/graph/line/Line.vue.d.ts +655 -0
- package/dist/graph/line/index.d.ts +3 -0
- package/dist/graph/line/props.d.ts +405 -0
- package/dist/graph/pie/Pie.vue.d.ts +732 -18
- package/dist/graph/pie/index.d.ts +2 -306
- package/dist/graph/pie/props.d.ts +480 -6
- package/dist/graph/scatter/Scatter.vue.d.ts +655 -0
- package/dist/graph/scatter/index.d.ts +3 -0
- package/dist/graph/scatter/props.d.ts +405 -0
- package/dist/index.esm.js +2 -2
- package/dist/index.umd.js +2 -2
- package/dist/media/image/Image.vue.d.ts +293 -0
- package/dist/media/image/index.d.ts +3 -0
- package/dist/media/image/props.d.ts +205 -0
- package/dist/media/index.d.ts +1 -0
- package/dist/setting/index.d.ts +2 -1
- package/dist/setting/page-config/PageConfig.vue.d.ts +78 -0
- package/dist/setting/page-config/index.d.ts +3 -0
- package/dist/setting/page-config/props.d.ts +61 -0
- package/dist/setting/provider-config/ProviderConfig.vue.d.ts +34 -0
- package/dist/setting/{page-cofig → provider-config}/index.d.ts +2 -2
- package/dist/setting/provider-config/props.d.ts +29 -0
- package/dist/table/index.d.ts +1 -0
- package/dist/table/table/Table.vue.d.ts +495 -0
- package/dist/table/table/index.d.ts +3 -0
- package/dist/table/table/props.d.ts +382 -0
- package/dist/text/text/Text.vue.d.ts +383 -5
- package/dist/text/text/index.d.ts +1 -1
- package/dist/text/text/props.d.ts +264 -1
- package/package.json +15 -13
- package/dist/common/vue-echarts/index.d.ts +0 -2
- package/dist/setting/page-cofig/PageConfig.vue.d.ts +0 -13
- package/dist/setting/page-cofig/props.d.ts +0 -8
package/README.dev.md
ADDED
|
@@ -1,9 +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[]) =>
|
|
8
|
-
|
|
9
|
-
};
|
|
8
|
+
export declare const usePickComponentStyle: <T>(props: Readonly<Partial<T>>, excludeStyleList?: string[]) => import("vue").ComputedRef<HTMLAttributes>;
|
|
9
|
+
export default usePickComponentStyle;
|
|
@@ -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;
|
package/dist/_utils/props.d.ts
CHANGED
|
@@ -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,7 +27,32 @@ export interface Props {
|
|
|
11
27
|
rotate: string;
|
|
12
28
|
isShow: boolean;
|
|
13
29
|
isRender: boolean;
|
|
14
|
-
|
|
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) =>
|
|
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
|
+
}
|
|
52
|
+
interface DataItem {
|
|
53
|
+
name: string | number;
|
|
54
|
+
value: string | number;
|
|
55
|
+
type?: string;
|
|
56
|
+
}
|
|
57
|
+
export declare type Data = DataItem[];
|
|
58
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './echarts';
|
package/dist/components.d.ts
CHANGED
|
@@ -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
|
+
};
|