@partex/one-core 2.0.48 → 2.0.49

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.
@@ -2,6 +2,7 @@ export * from './actionButton';
2
2
  export * from './auth';
3
3
  export * from './back';
4
4
  export * from './circle';
5
+ export * from './echarts';
5
6
  export * from './error';
6
7
  export * from './footer';
7
8
  export * from './form';
@@ -0,0 +1,283 @@
1
+ declare const _default: {
2
+ color: string[];
3
+ backgroundColor: string;
4
+ textStyle: {
5
+ fontFamily: string;
6
+ };
7
+ title: {
8
+ textStyle: {
9
+ color: string;
10
+ fontWeight: string;
11
+ };
12
+ subtextStyle: {
13
+ color: string;
14
+ };
15
+ };
16
+ line: {
17
+ itemStyle: {
18
+ borderWidth: number;
19
+ };
20
+ lineStyle: {
21
+ width: number;
22
+ shadowBlur: number;
23
+ shadowOffsetY: number;
24
+ };
25
+ label: {
26
+ color: string;
27
+ textBorderColor: string;
28
+ textBorderWidth: number;
29
+ };
30
+ symbolSize: number;
31
+ symbol: string;
32
+ smooth: boolean;
33
+ };
34
+ bar: {
35
+ barWidth: number;
36
+ showBackground: boolean;
37
+ backgroundStyle: {
38
+ color: string;
39
+ borderRadius: number[];
40
+ };
41
+ label: {
42
+ show: boolean;
43
+ color: string;
44
+ };
45
+ itemStyle: {
46
+ shadowBlur: number;
47
+ shadowOffsetX: number;
48
+ shadowOffsetY: number;
49
+ borderRadius: number[];
50
+ barBorderWidth: number;
51
+ barBorderColor: string;
52
+ };
53
+ };
54
+ pie: {
55
+ label: {
56
+ color: string;
57
+ };
58
+ itemStyle: {
59
+ borderRadius: number;
60
+ borderWidth: number;
61
+ borderColor: string;
62
+ };
63
+ };
64
+ categoryAxis: {
65
+ axisLine: {
66
+ show: boolean;
67
+ lineStyle: {
68
+ color: string;
69
+ };
70
+ };
71
+ axisTick: {
72
+ show: boolean;
73
+ lineStyle: {
74
+ color: string;
75
+ };
76
+ };
77
+ axisLabel: {
78
+ show: boolean;
79
+ color: string;
80
+ };
81
+ splitLine: {
82
+ show: boolean;
83
+ lineStyle: {
84
+ color: string[];
85
+ };
86
+ };
87
+ splitArea: {
88
+ show: boolean;
89
+ areaStyle: {
90
+ color: string[];
91
+ };
92
+ };
93
+ };
94
+ valueAxis: {
95
+ axisLine: {
96
+ show: boolean;
97
+ lineStyle: {
98
+ color: string;
99
+ };
100
+ };
101
+ axisTick: {
102
+ show: boolean;
103
+ lineStyle: {
104
+ color: string;
105
+ };
106
+ };
107
+ axisLabel: {
108
+ show: boolean;
109
+ color: string;
110
+ };
111
+ splitLine: {
112
+ show: boolean;
113
+ lineStyle: {
114
+ type: number[];
115
+ dashOffset: number;
116
+ color: string[];
117
+ };
118
+ };
119
+ splitArea: {
120
+ show: boolean;
121
+ areaStyle: {
122
+ color: string[];
123
+ };
124
+ };
125
+ };
126
+ logAxis: {
127
+ axisLine: {
128
+ show: boolean;
129
+ lineStyle: {
130
+ color: string;
131
+ };
132
+ };
133
+ axisTick: {
134
+ show: boolean;
135
+ lineStyle: {
136
+ color: string;
137
+ };
138
+ };
139
+ axisLabel: {
140
+ show: boolean;
141
+ color: string;
142
+ };
143
+ splitLine: {
144
+ show: boolean;
145
+ lineStyle: {
146
+ color: string[];
147
+ };
148
+ };
149
+ splitArea: {
150
+ show: boolean;
151
+ areaStyle: {
152
+ color: string[];
153
+ };
154
+ };
155
+ };
156
+ timeAxis: {
157
+ axisLine: {
158
+ show: boolean;
159
+ lineStyle: {
160
+ color: string;
161
+ };
162
+ };
163
+ axisTick: {
164
+ show: boolean;
165
+ lineStyle: {
166
+ color: string;
167
+ };
168
+ };
169
+ axisLabel: {
170
+ show: boolean;
171
+ color: string;
172
+ };
173
+ splitLine: {
174
+ show: boolean;
175
+ lineStyle: {
176
+ type: number[];
177
+ dashOffset: number;
178
+ color: string[];
179
+ };
180
+ };
181
+ splitArea: {
182
+ show: boolean;
183
+ areaStyle: {
184
+ color: string[];
185
+ };
186
+ };
187
+ };
188
+ toolbox: {
189
+ iconStyle: {
190
+ borderColor: string;
191
+ };
192
+ emphasis: {
193
+ iconStyle: {
194
+ borderColor: string;
195
+ };
196
+ };
197
+ };
198
+ legend: {
199
+ textStyle: {
200
+ color: string;
201
+ };
202
+ };
203
+ tooltip: {
204
+ axisPointer: {
205
+ label: {
206
+ color: string;
207
+ backgroundColor: string;
208
+ };
209
+ lineStyle: {
210
+ color: string;
211
+ width: number;
212
+ };
213
+ crossStyle: {
214
+ type: string;
215
+ color: string;
216
+ width: number;
217
+ };
218
+ };
219
+ };
220
+ timeline: {
221
+ lineStyle: {
222
+ color: string;
223
+ width: number;
224
+ };
225
+ itemStyle: {
226
+ color: string;
227
+ borderWidth: number;
228
+ };
229
+ controlStyle: {
230
+ color: string;
231
+ borderColor: string;
232
+ borderWidth: number;
233
+ };
234
+ checkpointStyle: {
235
+ color: string;
236
+ borderColor: string;
237
+ };
238
+ label: {
239
+ color: string;
240
+ };
241
+ emphasis: {
242
+ itemStyle: {
243
+ color: string;
244
+ };
245
+ controlStyle: {
246
+ color: string;
247
+ borderColor: string;
248
+ borderWidth: number;
249
+ };
250
+ label: {
251
+ color: string;
252
+ };
253
+ };
254
+ };
255
+ visualMap: {
256
+ color: string[];
257
+ };
258
+ dataZoom: {
259
+ brushSelect: boolean;
260
+ borderColor: string;
261
+ backgroundColor: string;
262
+ fillerColor: string;
263
+ handleColor: string;
264
+ handleStyle: {
265
+ borderWidth: number;
266
+ borderColor: string;
267
+ };
268
+ textStyle: {
269
+ color: string;
270
+ };
271
+ };
272
+ markPoint: {
273
+ label: {
274
+ color: string;
275
+ };
276
+ emphasis: {
277
+ label: {
278
+ color: string;
279
+ };
280
+ };
281
+ };
282
+ };
283
+ export default _default;
@@ -0,0 +1,129 @@
1
+ import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType, CSSProperties } from 'vue';
2
+ import type { ObjectKey, Fn } from '../interface';
3
+ import * as echarts from 'echarts/core';
4
+ declare const _default: DefineComponent<{
5
+ options: {
6
+ type: PropType<ObjectKey>;
7
+ required: true;
8
+ };
9
+ renderer: {
10
+ type: PropType<"canvas" | "svg">;
11
+ default: () => string;
12
+ };
13
+ style: {
14
+ type: PropType<CSSProperties | null>;
15
+ default: () => null;
16
+ };
17
+ notMerge: {
18
+ type: PropType<boolean>;
19
+ default: () => boolean;
20
+ };
21
+ ariaShow: {
22
+ type: PropType<boolean>;
23
+ default: () => boolean;
24
+ };
25
+ /**
26
+ * 在设置完 option 是否不立即更新视图,默认 false 立即更新
27
+ */
28
+ lazyUpdate: {
29
+ type: PropType<boolean>;
30
+ default: () => boolean;
31
+ };
32
+ /**
33
+ * 是否阻止抛出事件 默认false 抛出
34
+ */
35
+ silent: {
36
+ type: PropType<boolean>;
37
+ default: () => boolean;
38
+ };
39
+ /**
40
+ * 是否需要监听页面resize
41
+ */
42
+ resizeAble: {
43
+ type: PropType<boolean>;
44
+ default: () => boolean;
45
+ };
46
+ /**
47
+ * event事件
48
+ */
49
+ events: {
50
+ type: PropType<ObjectKey<Fn<any, any>>>;
51
+ default: () => {};
52
+ };
53
+ theme: {
54
+ type: PropType<"dark" | "white">;
55
+ default: undefined;
56
+ };
57
+ }, unknown, unknown, {}, {
58
+ init(): void;
59
+ initChart(el: HTMLDivElement): Promise<echarts.ECharts>;
60
+ setOption(): void;
61
+ resizeChart(): void;
62
+ getInstance(): any;
63
+ dispose(): void;
64
+ bindEvents(instance: echarts.ECharts, events: ObjectKey<Fn>): void;
65
+ }, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
66
+ options: {
67
+ type: PropType<ObjectKey>;
68
+ required: true;
69
+ };
70
+ renderer: {
71
+ type: PropType<"canvas" | "svg">;
72
+ default: () => string;
73
+ };
74
+ style: {
75
+ type: PropType<CSSProperties | null>;
76
+ default: () => null;
77
+ };
78
+ notMerge: {
79
+ type: PropType<boolean>;
80
+ default: () => boolean;
81
+ };
82
+ ariaShow: {
83
+ type: PropType<boolean>;
84
+ default: () => boolean;
85
+ };
86
+ /**
87
+ * 在设置完 option 是否不立即更新视图,默认 false 立即更新
88
+ */
89
+ lazyUpdate: {
90
+ type: PropType<boolean>;
91
+ default: () => boolean;
92
+ };
93
+ /**
94
+ * 是否阻止抛出事件 默认false 抛出
95
+ */
96
+ silent: {
97
+ type: PropType<boolean>;
98
+ default: () => boolean;
99
+ };
100
+ /**
101
+ * 是否需要监听页面resize
102
+ */
103
+ resizeAble: {
104
+ type: PropType<boolean>;
105
+ default: () => boolean;
106
+ };
107
+ /**
108
+ * event事件
109
+ */
110
+ events: {
111
+ type: PropType<ObjectKey<Fn<any, any>>>;
112
+ default: () => {};
113
+ };
114
+ theme: {
115
+ type: PropType<"dark" | "white">;
116
+ default: undefined;
117
+ };
118
+ }>>, {
119
+ style: CSSProperties | null;
120
+ theme: "dark" | "white";
121
+ renderer: "canvas" | "svg";
122
+ notMerge: boolean;
123
+ ariaShow: boolean;
124
+ lazyUpdate: boolean;
125
+ silent: boolean;
126
+ resizeAble: boolean;
127
+ events: ObjectKey<Fn<any, any>>;
128
+ }, {}>;
129
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OcEcharts } from './echarts';
@@ -0,0 +1,278 @@
1
+ declare const _default: {
2
+ color: string[];
3
+ backgroundColor: string;
4
+ textStyle: {
5
+ fontFamily: string;
6
+ };
7
+ title: {
8
+ textStyle: {
9
+ color: string;
10
+ fontWeight: string;
11
+ };
12
+ subtextStyle: {
13
+ color: string;
14
+ };
15
+ };
16
+ line: {
17
+ itemStyle: {
18
+ borderWidth: number;
19
+ };
20
+ lineStyle: {
21
+ width: number;
22
+ shadowColor: string;
23
+ shadowBlur: number;
24
+ shadowOffsetY: number;
25
+ };
26
+ label: {
27
+ color: string;
28
+ textBorderColor: string;
29
+ textBorderWidth: number;
30
+ };
31
+ symbolSize: number;
32
+ symbol: string;
33
+ smooth: boolean;
34
+ };
35
+ bar: {
36
+ barWidth: number;
37
+ showBackground: boolean;
38
+ backgroundStyle: {
39
+ color: string;
40
+ borderRadius: number[];
41
+ };
42
+ itemStyle: {
43
+ shadowColor: string;
44
+ shadowBlur: number;
45
+ shadowOffsetX: number;
46
+ shadowOffsetY: number;
47
+ borderRadius: number[];
48
+ barBorderWidth: number;
49
+ barBorderColor: string;
50
+ };
51
+ };
52
+ pie: {
53
+ itemStyle: {
54
+ borderRadius: number;
55
+ borderWidth: number;
56
+ borderColor: string;
57
+ };
58
+ };
59
+ categoryAxis: {
60
+ axisLine: {
61
+ show: boolean;
62
+ lineStyle: {
63
+ color: string;
64
+ };
65
+ };
66
+ axisTick: {
67
+ show: boolean;
68
+ lineStyle: {
69
+ color: string;
70
+ };
71
+ };
72
+ axisLabel: {
73
+ show: boolean;
74
+ color: string;
75
+ };
76
+ splitLine: {
77
+ show: boolean;
78
+ lineStyle: {
79
+ color: string[];
80
+ };
81
+ };
82
+ splitArea: {
83
+ show: boolean;
84
+ areaStyle: {
85
+ color: string[];
86
+ };
87
+ };
88
+ };
89
+ valueAxis: {
90
+ axisLine: {
91
+ show: boolean;
92
+ lineStyle: {
93
+ color: string;
94
+ };
95
+ };
96
+ axisTick: {
97
+ show: boolean;
98
+ lineStyle: {
99
+ color: string;
100
+ };
101
+ };
102
+ axisLabel: {
103
+ show: boolean;
104
+ color: string;
105
+ };
106
+ splitLine: {
107
+ show: boolean;
108
+ lineStyle: {
109
+ type: number[];
110
+ dashOffset: number;
111
+ color: string[];
112
+ };
113
+ };
114
+ splitArea: {
115
+ show: boolean;
116
+ areaStyle: {
117
+ color: string[];
118
+ };
119
+ };
120
+ };
121
+ logAxis: {
122
+ axisLine: {
123
+ show: boolean;
124
+ lineStyle: {
125
+ color: string;
126
+ };
127
+ };
128
+ axisTick: {
129
+ show: boolean;
130
+ lineStyle: {
131
+ color: string;
132
+ };
133
+ };
134
+ axisLabel: {
135
+ show: boolean;
136
+ color: string;
137
+ };
138
+ splitLine: {
139
+ show: boolean;
140
+ lineStyle: {
141
+ color: string[];
142
+ };
143
+ };
144
+ splitArea: {
145
+ show: boolean;
146
+ areaStyle: {
147
+ color: string[];
148
+ };
149
+ };
150
+ };
151
+ timeAxis: {
152
+ axisLine: {
153
+ show: boolean;
154
+ lineStyle: {
155
+ color: string;
156
+ };
157
+ };
158
+ axisTick: {
159
+ show: boolean;
160
+ lineStyle: {
161
+ color: string;
162
+ };
163
+ };
164
+ axisLabel: {
165
+ show: boolean;
166
+ color: string;
167
+ };
168
+ splitLine: {
169
+ show: boolean;
170
+ lineStyle: {
171
+ type: number[];
172
+ dashOffset: number;
173
+ color: string[];
174
+ };
175
+ };
176
+ splitArea: {
177
+ show: boolean;
178
+ areaStyle: {
179
+ color: string[];
180
+ };
181
+ };
182
+ };
183
+ toolbox: {
184
+ iconStyle: {
185
+ borderColor: string;
186
+ };
187
+ emphasis: {
188
+ iconStyle: {
189
+ borderColor: string;
190
+ };
191
+ };
192
+ };
193
+ legend: {
194
+ textStyle: {
195
+ color: string;
196
+ };
197
+ };
198
+ tooltip: {
199
+ axisPointer: {
200
+ label: {
201
+ color: string;
202
+ backgroundColor: string;
203
+ };
204
+ lineStyle: {
205
+ color: string;
206
+ width: number;
207
+ };
208
+ crossStyle: {
209
+ type: string;
210
+ color: string;
211
+ width: number;
212
+ };
213
+ };
214
+ };
215
+ timeline: {
216
+ lineStyle: {
217
+ color: string;
218
+ width: number;
219
+ };
220
+ itemStyle: {
221
+ color: string;
222
+ borderWidth: number;
223
+ };
224
+ controlStyle: {
225
+ color: string;
226
+ borderColor: string;
227
+ borderWidth: number;
228
+ };
229
+ checkpointStyle: {
230
+ color: string;
231
+ borderColor: string;
232
+ };
233
+ label: {
234
+ color: string;
235
+ };
236
+ emphasis: {
237
+ itemStyle: {
238
+ color: string;
239
+ };
240
+ controlStyle: {
241
+ color: string;
242
+ borderColor: string;
243
+ borderWidth: number;
244
+ };
245
+ label: {
246
+ color: string;
247
+ };
248
+ };
249
+ };
250
+ visualMap: {
251
+ color: string[];
252
+ };
253
+ dataZoom: {
254
+ brushSelect: boolean;
255
+ borderColor: string;
256
+ backgroundColor: string;
257
+ fillerColor: string;
258
+ handleColor: string;
259
+ handleStyle: {
260
+ borderWidth: number;
261
+ borderColor: string;
262
+ };
263
+ textStyle: {
264
+ color: string;
265
+ };
266
+ };
267
+ markPoint: {
268
+ label: {
269
+ color: string;
270
+ };
271
+ emphasis: {
272
+ label: {
273
+ color: string;
274
+ };
275
+ };
276
+ };
277
+ };
278
+ export default _default;