xt-element-ui 1.1.0 → 1.1.1
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/lib/css/2.3f7aa432.css +1 -0
- package/lib/css/3.ffcc175d.css +1 -0
- package/lib/css/4.9abd1f2b.css +1 -0
- package/lib/css/5.1a31ed8a.css +1 -0
- package/lib/css/6.c2d0d77e.css +1 -0
- package/lib/index.common.0.js +120208 -0
- package/lib/index.common.2.js +1053 -0
- package/lib/index.common.3.js +996 -0
- package/lib/index.common.4.js +1108 -0
- package/lib/index.common.5.js +1009 -0
- package/lib/index.common.6.js +973 -0
- package/lib/index.common.js +8003 -211
- package/lib/index.css +1 -1
- package/lib/index.umd.0.js +120208 -0
- package/lib/index.umd.2.js +1053 -0
- package/lib/index.umd.3.js +996 -0
- package/lib/index.umd.4.js +1108 -0
- package/lib/index.umd.5.js +1009 -0
- package/lib/index.umd.6.js +973 -0
- package/lib/index.umd.js +8003 -211
- package/lib/index.umd.min.0.js +34 -0
- package/lib/index.umd.min.2.js +1 -0
- package/lib/index.umd.min.3.js +1 -0
- package/lib/index.umd.min.4.js +1 -0
- package/lib/index.umd.min.5.js +1 -0
- package/lib/index.umd.min.6.js +1 -0
- package/lib/index.umd.min.js +1 -1
- package/package.json +6 -2
- package/src/components/button/index.vue +5 -5
- package/src/components/button/style/index.scss +743 -90
- package/src/components/chart/ExBar.vue +203 -0
- package/src/components/chart/ExLine.vue +146 -0
- package/src/components/chart/ExMulti.vue +257 -0
- package/src/components/chart/ExPie.vue +159 -0
- package/src/components/chart/ExTrend.vue +121 -0
- package/src/components/chart/index.js +2 -0
- package/src/components/chart/index.vue +51 -0
- package/src/components/chart/pieList.vue +110 -0
- package/src/components/chart/theme/blue.js +91 -0
- package/src/components/chart/theme/dark.js +91 -0
- package/src/components/chart/theme/orange.js +92 -0
- package/src/components/chart/theme/starry.js +106 -0
- package/src/components/chart/theme/white.js +110 -0
- package/src/components/chart/utils.js +273 -0
- package/src/components/config-provider/index.vue +150 -51
- package/src/components/config-provider/style/index.scss +2 -2
- package/src/components/date-picker/SearchDate.vue +45 -0
- package/src/components/date-picker/index.js +2 -0
- package/src/components/date-picker/index.vue +131 -0
- package/src/components/date-picker/quarter.vue +152 -0
- package/src/components/grid-box/index.js +2 -0
- package/src/components/grid-box/index.vue +42 -0
- package/src/components/layout/BaseCollapse.vue +48 -0
- package/src/components/layout/ExFieldset.vue +204 -0
- package/src/components/page/index.js +0 -0
- package/src/components/page/index.vue +109 -0
- package/src/components/select-tree/index.js +0 -0
- package/src/components/select-tree/index.vue +386 -0
- package/src/components/table/ExCell.vue +27 -0
- package/src/components/table/ExColumn.vue +36 -0
- package/src/components/table/index.js +2 -0
- package/src/components/table/index.vue +731 -0
- package/src/components/table/processor.js +380 -0
- package/src/components/text/index.vue +79 -2
- package/src/components/text/style/index.scss +28 -6
- package/src/components/upload/index.js +2 -0
- package/src/components/upload/index.vue +225 -0
- package/src/components/upload/preview.vue +333 -0
- package/src/index.js +11 -2
- package/src/styles/css-variables.scss +238 -148
- package/src/styles/theme/background.scss +1 -1
- package/src/styles/theme/colors.scss +90 -1
- package/src/styles/variables.scss +1 -1
- package/src/components/button/style/index copy.scss +0 -221
|
@@ -0,0 +1,1108 @@
|
|
|
1
|
+
((typeof self !== 'undefined' ? self : this)["webpackJsonpxt_element_ui"] = (typeof self !== 'undefined' ? self : this)["webpackJsonpxt_element_ui"] || []).push([[4],{
|
|
2
|
+
|
|
3
|
+
/***/ "202d":
|
|
4
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
5
|
+
|
|
6
|
+
"use strict";
|
|
7
|
+
|
|
8
|
+
// UNUSED EXPORTS: echarts
|
|
9
|
+
|
|
10
|
+
// EXTERNAL MODULE: ./node_modules/echarts/index.js + 575 modules
|
|
11
|
+
var echarts = __webpack_require__("313e");
|
|
12
|
+
|
|
13
|
+
// CONCATENATED MODULE: ./src/components/chart/theme/white.js
|
|
14
|
+
/* harmony default export */ var white = ({
|
|
15
|
+
color: ["#1890ff", "#37c3a4", "#29c0ce", "#6480D7", "#8cce6f", "#3a5dca", "#ffb74d"],
|
|
16
|
+
backgroundColor: "#ffffff",
|
|
17
|
+
textStyle: {
|
|
18
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
19
|
+
},
|
|
20
|
+
title: {
|
|
21
|
+
textStyle: {
|
|
22
|
+
color: "#333",
|
|
23
|
+
fontSize: 16
|
|
24
|
+
},
|
|
25
|
+
subtextStyle: {
|
|
26
|
+
color: "#666666",
|
|
27
|
+
fontSize: 12
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
line: {
|
|
31
|
+
itemStyle: {
|
|
32
|
+
},
|
|
33
|
+
lineStyle: {
|
|
34
|
+
width: 2
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
bar: {
|
|
38
|
+
itemStyle: {
|
|
39
|
+
borderRadius: 4
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
pie: {
|
|
43
|
+
roseType: "radius",
|
|
44
|
+
label: {
|
|
45
|
+
color: "#333"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
radar: {
|
|
49
|
+
indicator: {
|
|
50
|
+
color: "#666666"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
map: {
|
|
54
|
+
label: {
|
|
55
|
+
color: "#333"
|
|
56
|
+
},
|
|
57
|
+
itemStyle: {
|
|
58
|
+
borderColor: "#fff"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
gauge: {
|
|
62
|
+
axisLine: {
|
|
63
|
+
lineStyle: {
|
|
64
|
+
color: [[1, "#5470c6"]]
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
toolbox: {
|
|
69
|
+
iconStyle: {
|
|
70
|
+
borderColor: "#666666"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
xAxis: {
|
|
74
|
+
axisLine: {
|
|
75
|
+
lineStyle: {
|
|
76
|
+
color: "#DFE9EE"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
axisTick: {
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: "#DFE9EE"
|
|
82
|
+
},
|
|
83
|
+
show: false
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
yAxis: {
|
|
87
|
+
axisLine: {
|
|
88
|
+
lineStyle: {
|
|
89
|
+
color: "#DFE9EE"
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
axisTick: {
|
|
93
|
+
lineStyle: {
|
|
94
|
+
color: "#DFE9EE"
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
splitLine: {
|
|
98
|
+
show: true,
|
|
99
|
+
lineStyle: {
|
|
100
|
+
type: "dashed",
|
|
101
|
+
color: "#DFE9EE"
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
splitArea: {
|
|
106
|
+
areaStyle: {
|
|
107
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
108
|
+
}
|
|
109
|
+
},
|
|
110
|
+
legend: {
|
|
111
|
+
textStyle: {
|
|
112
|
+
color: "#333333"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
115
|
+
tooltip: {
|
|
116
|
+
borderWidth: 1,
|
|
117
|
+
backgroundColor: "#ffffff",
|
|
118
|
+
textStyle: {
|
|
119
|
+
color: "#333333"
|
|
120
|
+
},
|
|
121
|
+
trigger: "axis"
|
|
122
|
+
}
|
|
123
|
+
});
|
|
124
|
+
|
|
125
|
+
// CONCATENATED MODULE: ./src/components/chart/theme/dark.js
|
|
126
|
+
/* harmony default export */ var dark = ({
|
|
127
|
+
color: ["#0de7ff", "#a782ff", "#fcdd60", "#0de7ff", "#ffc5a1", "#6291ae", "#13ce66"],
|
|
128
|
+
backgroundColor: "#ffffff",
|
|
129
|
+
textStyle: {
|
|
130
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
131
|
+
},
|
|
132
|
+
title: {
|
|
133
|
+
textStyle: {
|
|
134
|
+
color: "#333"
|
|
135
|
+
},
|
|
136
|
+
subtextStyle: {
|
|
137
|
+
color: "#666666"
|
|
138
|
+
}
|
|
139
|
+
},
|
|
140
|
+
line: {
|
|
141
|
+
itemStyle: {
|
|
142
|
+
},
|
|
143
|
+
lineStyle: {
|
|
144
|
+
width: 2
|
|
145
|
+
}
|
|
146
|
+
},
|
|
147
|
+
bar: {
|
|
148
|
+
itemStyle: {
|
|
149
|
+
borderRadius: 4
|
|
150
|
+
}
|
|
151
|
+
},
|
|
152
|
+
pie: {
|
|
153
|
+
roseType: "radius",
|
|
154
|
+
label: {
|
|
155
|
+
color: "#333"
|
|
156
|
+
}
|
|
157
|
+
},
|
|
158
|
+
radar: {
|
|
159
|
+
indicator: {
|
|
160
|
+
color: "#666666"
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
map: {
|
|
164
|
+
label: {
|
|
165
|
+
color: "#333"
|
|
166
|
+
},
|
|
167
|
+
itemStyle: {
|
|
168
|
+
borderColor: "#fff"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
gauge: {
|
|
172
|
+
axisLine: {
|
|
173
|
+
lineStyle: {
|
|
174
|
+
color: [[1, "#5470c6"]]
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
},
|
|
178
|
+
toolbox: {
|
|
179
|
+
iconStyle: {
|
|
180
|
+
borderColor: "#666666"
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
axisLine: {
|
|
184
|
+
lineStyle: {
|
|
185
|
+
color: "#DCDFE6"
|
|
186
|
+
}
|
|
187
|
+
},
|
|
188
|
+
axisTick: {
|
|
189
|
+
lineStyle: {
|
|
190
|
+
color: "#DCDFE6"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
splitLine: {
|
|
194
|
+
lineStyle: {
|
|
195
|
+
color: "#ebeef5"
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
splitArea: {
|
|
199
|
+
areaStyle: {
|
|
200
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
201
|
+
}
|
|
202
|
+
},
|
|
203
|
+
legend: {
|
|
204
|
+
textStyle: {
|
|
205
|
+
color: "#666"
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
tooltip: {
|
|
209
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
210
|
+
borderColor: "#DCDFE6",
|
|
211
|
+
borderWidth: 1,
|
|
212
|
+
textStyle: {
|
|
213
|
+
color: "#333"
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
|
|
218
|
+
// CONCATENATED MODULE: ./src/components/chart/theme/blue.js
|
|
219
|
+
/* harmony default export */ var blue = ({
|
|
220
|
+
color: ["#2CDEB3", "#A17EE6", "#E57E40", "#409EFF"],
|
|
221
|
+
backgroundColor: "#ffffff",
|
|
222
|
+
textStyle: {
|
|
223
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
224
|
+
},
|
|
225
|
+
title: {
|
|
226
|
+
textStyle: {
|
|
227
|
+
color: "#333"
|
|
228
|
+
},
|
|
229
|
+
subtextStyle: {
|
|
230
|
+
color: "#666666"
|
|
231
|
+
}
|
|
232
|
+
},
|
|
233
|
+
line: {
|
|
234
|
+
itemStyle: {
|
|
235
|
+
},
|
|
236
|
+
lineStyle: {
|
|
237
|
+
width: 2
|
|
238
|
+
}
|
|
239
|
+
},
|
|
240
|
+
bar: {
|
|
241
|
+
itemStyle: {
|
|
242
|
+
borderRadius: 4
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
pie: {
|
|
246
|
+
roseType: "radius",
|
|
247
|
+
label: {
|
|
248
|
+
color: "#333"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
radar: {
|
|
252
|
+
indicator: {
|
|
253
|
+
color: "#666666"
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
map: {
|
|
257
|
+
label: {
|
|
258
|
+
color: "#333"
|
|
259
|
+
},
|
|
260
|
+
itemStyle: {
|
|
261
|
+
borderColor: "#fff"
|
|
262
|
+
}
|
|
263
|
+
},
|
|
264
|
+
gauge: {
|
|
265
|
+
axisLine: {
|
|
266
|
+
lineStyle: {
|
|
267
|
+
color: [[1, "#5470c6"]]
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
},
|
|
271
|
+
toolbox: {
|
|
272
|
+
iconStyle: {
|
|
273
|
+
borderColor: "#666666"
|
|
274
|
+
}
|
|
275
|
+
},
|
|
276
|
+
axisLine: {
|
|
277
|
+
lineStyle: {
|
|
278
|
+
color: "#DCDFE6"
|
|
279
|
+
}
|
|
280
|
+
},
|
|
281
|
+
axisTick: {
|
|
282
|
+
lineStyle: {
|
|
283
|
+
color: "#DCDFE6"
|
|
284
|
+
}
|
|
285
|
+
},
|
|
286
|
+
splitLine: {
|
|
287
|
+
lineStyle: {
|
|
288
|
+
color: "#ebeef5"
|
|
289
|
+
}
|
|
290
|
+
},
|
|
291
|
+
splitArea: {
|
|
292
|
+
areaStyle: {
|
|
293
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
294
|
+
}
|
|
295
|
+
},
|
|
296
|
+
legend: {
|
|
297
|
+
textStyle: {
|
|
298
|
+
color: "#666"
|
|
299
|
+
}
|
|
300
|
+
},
|
|
301
|
+
tooltip: {
|
|
302
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
303
|
+
borderColor: "#DCDFE6",
|
|
304
|
+
borderWidth: 1,
|
|
305
|
+
textStyle: {
|
|
306
|
+
color: "#333"
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
});
|
|
310
|
+
|
|
311
|
+
// CONCATENATED MODULE: ./src/components/chart/theme/starry.js
|
|
312
|
+
/* harmony default export */ var starry = ({
|
|
313
|
+
color: [
|
|
314
|
+
"#1685a9", // 石青
|
|
315
|
+
"#21a675", // 松柏绿
|
|
316
|
+
"#1bd1a5", // 飞燕草蓝
|
|
317
|
+
"#8c4356", // 绛紫
|
|
318
|
+
"#0dafc6", // 孔雀蓝
|
|
319
|
+
"#4b5cc4", // 宝蓝
|
|
320
|
+
"#758a99", // 墨灰
|
|
321
|
+
"#cca4e3", // 丁香色
|
|
322
|
+
"#205277", // 靛青色
|
|
323
|
+
"#d9b611", // 秋香色
|
|
324
|
+
"#ff8c31", // 杏红
|
|
325
|
+
"#9d2933", // 胭脂
|
|
326
|
+
"#0288c5", // 浅靛青蓝
|
|
327
|
+
"#44cef6" // 天蓝色
|
|
328
|
+
],
|
|
329
|
+
backgroundColor: "#ffffff",
|
|
330
|
+
textStyle: {
|
|
331
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
332
|
+
},
|
|
333
|
+
title: {
|
|
334
|
+
textStyle: {
|
|
335
|
+
color: "#333"
|
|
336
|
+
},
|
|
337
|
+
subtextStyle: {
|
|
338
|
+
color: "#666666"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
line: {
|
|
342
|
+
itemStyle: {
|
|
343
|
+
},
|
|
344
|
+
lineStyle: {
|
|
345
|
+
width: 2
|
|
346
|
+
}
|
|
347
|
+
},
|
|
348
|
+
bar: {
|
|
349
|
+
itemStyle: {
|
|
350
|
+
borderRadius: 4
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
pie: {
|
|
354
|
+
roseType: "radius",
|
|
355
|
+
label: {
|
|
356
|
+
color: "#333"
|
|
357
|
+
}
|
|
358
|
+
},
|
|
359
|
+
radar: {
|
|
360
|
+
indicator: {
|
|
361
|
+
color: "#666666"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
map: {
|
|
365
|
+
label: {
|
|
366
|
+
color: "#333"
|
|
367
|
+
},
|
|
368
|
+
itemStyle: {
|
|
369
|
+
borderColor: "#fff"
|
|
370
|
+
}
|
|
371
|
+
},
|
|
372
|
+
gauge: {
|
|
373
|
+
axisLine: {
|
|
374
|
+
lineStyle: {
|
|
375
|
+
color: [[1, "#5470c6"]]
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
toolbox: {
|
|
380
|
+
iconStyle: {
|
|
381
|
+
borderColor: "#666666"
|
|
382
|
+
}
|
|
383
|
+
},
|
|
384
|
+
axisLine: {
|
|
385
|
+
lineStyle: {
|
|
386
|
+
color: "#DCDFE6"
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
axisTick: {
|
|
390
|
+
lineStyle: {
|
|
391
|
+
color: "#DCDFE6"
|
|
392
|
+
}
|
|
393
|
+
},
|
|
394
|
+
splitLine: {
|
|
395
|
+
lineStyle: {
|
|
396
|
+
color: "#ebeef5"
|
|
397
|
+
}
|
|
398
|
+
},
|
|
399
|
+
splitArea: {
|
|
400
|
+
areaStyle: {
|
|
401
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
402
|
+
}
|
|
403
|
+
},
|
|
404
|
+
legend: {
|
|
405
|
+
textStyle: {
|
|
406
|
+
color: "#666"
|
|
407
|
+
}
|
|
408
|
+
},
|
|
409
|
+
tooltip: {
|
|
410
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
411
|
+
borderColor: "#DCDFE6",
|
|
412
|
+
borderWidth: 1,
|
|
413
|
+
textStyle: {
|
|
414
|
+
color: "#333"
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
});
|
|
418
|
+
|
|
419
|
+
// CONCATENATED MODULE: ./src/components/chart/theme/orange.js
|
|
420
|
+
/* harmony default export */ var orange = ({
|
|
421
|
+
color: ["#e69419", "#A5b4da", "#F8792C", "#97bfb4", "#de747b", "#d6bac0", "#e62737", "#f35969", "#f1ccb0", "#b7394e", "#fe9c1c2"],
|
|
422
|
+
backgroundColor: "#ffffff",
|
|
423
|
+
textStyle: {
|
|
424
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
425
|
+
},
|
|
426
|
+
title: {
|
|
427
|
+
textStyle: {
|
|
428
|
+
color: "#333"
|
|
429
|
+
},
|
|
430
|
+
subtextStyle: {
|
|
431
|
+
color: "#666666"
|
|
432
|
+
}
|
|
433
|
+
},
|
|
434
|
+
line: {
|
|
435
|
+
itemStyle: {
|
|
436
|
+
color: "#e69419"
|
|
437
|
+
},
|
|
438
|
+
lineStyle: {
|
|
439
|
+
width: 2
|
|
440
|
+
}
|
|
441
|
+
},
|
|
442
|
+
bar: {
|
|
443
|
+
itemStyle: {
|
|
444
|
+
borderRadius: 4
|
|
445
|
+
}
|
|
446
|
+
},
|
|
447
|
+
pie: {
|
|
448
|
+
roseType: "radius",
|
|
449
|
+
label: {
|
|
450
|
+
color: "#333"
|
|
451
|
+
}
|
|
452
|
+
},
|
|
453
|
+
radar: {
|
|
454
|
+
indicator: {
|
|
455
|
+
color: "#666666"
|
|
456
|
+
}
|
|
457
|
+
},
|
|
458
|
+
map: {
|
|
459
|
+
label: {
|
|
460
|
+
color: "#333"
|
|
461
|
+
},
|
|
462
|
+
itemStyle: {
|
|
463
|
+
borderColor: "#fff"
|
|
464
|
+
}
|
|
465
|
+
},
|
|
466
|
+
gauge: {
|
|
467
|
+
axisLine: {
|
|
468
|
+
lineStyle: {
|
|
469
|
+
color: [[1, "#5470c6"]]
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
toolbox: {
|
|
474
|
+
iconStyle: {
|
|
475
|
+
borderColor: "#666666"
|
|
476
|
+
}
|
|
477
|
+
},
|
|
478
|
+
axisLine: {
|
|
479
|
+
lineStyle: {
|
|
480
|
+
color: "#DCDFE6"
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
axisTick: {
|
|
484
|
+
lineStyle: {
|
|
485
|
+
color: "#DCDFE6"
|
|
486
|
+
}
|
|
487
|
+
},
|
|
488
|
+
splitLine: {
|
|
489
|
+
lineStyle: {
|
|
490
|
+
color: "#ebeef5"
|
|
491
|
+
}
|
|
492
|
+
},
|
|
493
|
+
splitArea: {
|
|
494
|
+
areaStyle: {
|
|
495
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
legend: {
|
|
499
|
+
textStyle: {
|
|
500
|
+
color: "#666"
|
|
501
|
+
}
|
|
502
|
+
},
|
|
503
|
+
tooltip: {
|
|
504
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
505
|
+
borderColor: "#DCDFE6",
|
|
506
|
+
borderWidth: 1,
|
|
507
|
+
textStyle: {
|
|
508
|
+
color: "#333"
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
});
|
|
512
|
+
|
|
513
|
+
// CONCATENATED MODULE: ./src/components/chart/utils.js
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
|
|
517
|
+
|
|
518
|
+
|
|
519
|
+
|
|
520
|
+
|
|
521
|
+
|
|
522
|
+
const themeKeys = {
|
|
523
|
+
"default": white,
|
|
524
|
+
"white": white,
|
|
525
|
+
"dark": dark,
|
|
526
|
+
"blue": blue,
|
|
527
|
+
"starry": starry,
|
|
528
|
+
"orange": orange
|
|
529
|
+
};
|
|
530
|
+
|
|
531
|
+
for (const key in themeKeys) {
|
|
532
|
+
echarts["b" /* registerTheme */](key, themeKeys[key]);
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
// 字体大小配置
|
|
536
|
+
const fontSizeMap = {
|
|
537
|
+
small: {
|
|
538
|
+
title: 14,
|
|
539
|
+
subtitle: 11,
|
|
540
|
+
legend: 11,
|
|
541
|
+
axisLabel: 10,
|
|
542
|
+
tooltip: 11,
|
|
543
|
+
label: 11
|
|
544
|
+
},
|
|
545
|
+
medium: {
|
|
546
|
+
title: 16,
|
|
547
|
+
subtitle: 12,
|
|
548
|
+
legend: 12,
|
|
549
|
+
axisLabel: 12,
|
|
550
|
+
tooltip: 12,
|
|
551
|
+
label: 12
|
|
552
|
+
},
|
|
553
|
+
large: {
|
|
554
|
+
title: 18,
|
|
555
|
+
subtitle: 14,
|
|
556
|
+
legend: 14,
|
|
557
|
+
axisLabel: 14,
|
|
558
|
+
tooltip: 14,
|
|
559
|
+
label: 14
|
|
560
|
+
}
|
|
561
|
+
};
|
|
562
|
+
|
|
563
|
+
function EchartsUtil() {}
|
|
564
|
+
|
|
565
|
+
EchartsUtil.currentTheme = "default";
|
|
566
|
+
EchartsUtil.currentSize = "medium";
|
|
567
|
+
EchartsUtil.inverse = false;
|
|
568
|
+
|
|
569
|
+
EchartsUtil.baseOption = {
|
|
570
|
+
backgroundColor: "transparent",
|
|
571
|
+
tooltip: {
|
|
572
|
+
trigger: "axis",
|
|
573
|
+
borderWidth: 1
|
|
574
|
+
},
|
|
575
|
+
legend: {
|
|
576
|
+
right: 20,
|
|
577
|
+
top: 0,
|
|
578
|
+
show: true,
|
|
579
|
+
textStyle: {
|
|
580
|
+
fontSize: 12
|
|
581
|
+
}
|
|
582
|
+
},
|
|
583
|
+
grid: {
|
|
584
|
+
top: "25%",
|
|
585
|
+
left: "40",
|
|
586
|
+
right: "15",
|
|
587
|
+
bottom: "40"
|
|
588
|
+
},
|
|
589
|
+
xAxis: {
|
|
590
|
+
type: "category",
|
|
591
|
+
boundaryGap: false,
|
|
592
|
+
axisTick: {
|
|
593
|
+
show: true,
|
|
594
|
+
length: 4
|
|
595
|
+
},
|
|
596
|
+
axisLabel: {
|
|
597
|
+
fontSize: 12,
|
|
598
|
+
interval: 0,
|
|
599
|
+
formatter: function(value) {
|
|
600
|
+
return !this.reverse && this.longLable ? value.replace(new RegExp(`(.{${this.longLableSplitNum}})`, "g"), `$1\n`) : value;
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
},
|
|
604
|
+
yAxis: {
|
|
605
|
+
type: "value",
|
|
606
|
+
axisTick: {
|
|
607
|
+
show: false
|
|
608
|
+
},
|
|
609
|
+
min: null,
|
|
610
|
+
max: null,
|
|
611
|
+
axisLabel: {
|
|
612
|
+
show: false
|
|
613
|
+
},
|
|
614
|
+
splitLine: {
|
|
615
|
+
lineStyle: {
|
|
616
|
+
type: "dashed",
|
|
617
|
+
width: 1
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
621
|
+
};
|
|
622
|
+
|
|
623
|
+
EchartsUtil.chartInstanceList = [];
|
|
624
|
+
|
|
625
|
+
EchartsUtil.mergeOptions = function(themeOption, customOption) {
|
|
626
|
+
return Object.assign({}, this.baseOption, themeOption, customOption);
|
|
627
|
+
};
|
|
628
|
+
|
|
629
|
+
// 根据字体大小调整主题配置
|
|
630
|
+
EchartsUtil.applyFontSize = function(themeOption, size) {
|
|
631
|
+
const fontSizeConfig = fontSizeMap[size] || fontSizeMap.medium;
|
|
632
|
+
|
|
633
|
+
const result = JSON.parse(JSON.stringify(themeOption));
|
|
634
|
+
|
|
635
|
+
// 调整标题字体大小
|
|
636
|
+
if (result.title && result.title.textStyle) {
|
|
637
|
+
result.title.textStyle.fontSize = fontSizeConfig.title;
|
|
638
|
+
}
|
|
639
|
+
if (result.title && result.title.subtextStyle) {
|
|
640
|
+
result.title.subtextStyle.fontSize = fontSizeConfig.subtitle;
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
// 调整图例字体大小
|
|
644
|
+
if (result.legend && result.legend.textStyle) {
|
|
645
|
+
result.legend.textStyle.fontSize = fontSizeConfig.legend;
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
// 调整提示框字体大小
|
|
649
|
+
if (result.tooltip && result.tooltip.textStyle) {
|
|
650
|
+
result.tooltip.textStyle.fontSize = fontSizeConfig.tooltip;
|
|
651
|
+
}
|
|
652
|
+
|
|
653
|
+
// 调整饼图标签字体大小
|
|
654
|
+
if (result.pie && result.pie.label) {
|
|
655
|
+
if (typeof result.pie.label === 'object') {
|
|
656
|
+
result.pie.label.fontSize = fontSizeConfig.label;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
// 调整雷达图指示器字体大小
|
|
661
|
+
if (result.radar && result.radar.indicator) {
|
|
662
|
+
if (typeof result.radar.indicator === 'object' && result.radar.indicator.textStyle) {
|
|
663
|
+
result.radar.indicator.textStyle.fontSize = fontSizeConfig.label;
|
|
664
|
+
}
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
// 调整地图标签字体大小
|
|
668
|
+
if (result.map && result.map.label) {
|
|
669
|
+
if (typeof result.map.label === 'object') {
|
|
670
|
+
result.map.label.fontSize = fontSizeConfig.label;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
return result;
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
EchartsUtil.init = function(dom, theme, customOption, size) {
|
|
678
|
+
theme = theme || "default";
|
|
679
|
+
size = size || "medium";
|
|
680
|
+
customOption = customOption || {};
|
|
681
|
+
|
|
682
|
+
const useTheme = this.currentTheme || theme;
|
|
683
|
+
const useSize = this.currentSize || size;
|
|
684
|
+
|
|
685
|
+
this.currentTheme = useTheme;
|
|
686
|
+
this.currentSize = useSize;
|
|
687
|
+
|
|
688
|
+
let themeOption = themeKeys[useTheme];
|
|
689
|
+
// 应用字体大小配置
|
|
690
|
+
themeOption = this.applyFontSize(themeOption, useSize);
|
|
691
|
+
|
|
692
|
+
const option = this.mergeOptions(themeOption, customOption);
|
|
693
|
+
|
|
694
|
+
const chart = echarts["a" /* init */](dom, useTheme);
|
|
695
|
+
chart.setOption(option, true);
|
|
696
|
+
|
|
697
|
+
this.chartInstanceList.push({
|
|
698
|
+
dom,
|
|
699
|
+
chart,
|
|
700
|
+
customOption,
|
|
701
|
+
size: useSize
|
|
702
|
+
});
|
|
703
|
+
|
|
704
|
+
this.bindResize(chart);
|
|
705
|
+
return chart;
|
|
706
|
+
};
|
|
707
|
+
|
|
708
|
+
EchartsUtil.changeSingleTheme = function(dom, chartIns, customOption, newTheme) {
|
|
709
|
+
if (!dom || !chartIns) return;
|
|
710
|
+
|
|
711
|
+
customOption = customOption || {};
|
|
712
|
+
newTheme = newTheme || "default";
|
|
713
|
+
|
|
714
|
+
this.currentTheme = newTheme;
|
|
715
|
+
chartIns.dispose();
|
|
716
|
+
|
|
717
|
+
const newChart = echarts["a" /* init */](dom, newTheme, customOption);
|
|
718
|
+
|
|
719
|
+
const item = this.chartInstanceList.find(function(v) {
|
|
720
|
+
return v.dom === dom;
|
|
721
|
+
});
|
|
722
|
+
|
|
723
|
+
if (item) {
|
|
724
|
+
item.chart = newChart;
|
|
725
|
+
}
|
|
726
|
+
|
|
727
|
+
return newChart;
|
|
728
|
+
};
|
|
729
|
+
|
|
730
|
+
EchartsUtil.changeAllTheme = function(newTheme) {
|
|
731
|
+
if (!newTheme) return;
|
|
732
|
+
|
|
733
|
+
this.currentTheme = newTheme;
|
|
734
|
+
|
|
735
|
+
this.chartInstanceList.forEach(function(item) {
|
|
736
|
+
const dom = item.dom;
|
|
737
|
+
const chart = item.chart;
|
|
738
|
+
const customOption = item.customOption;
|
|
739
|
+
|
|
740
|
+
if (chart) {
|
|
741
|
+
chart.dispose();
|
|
742
|
+
}
|
|
743
|
+
|
|
744
|
+
const newChart = echarts["a" /* init */](dom, newTheme);
|
|
745
|
+
const themeOption = themeKeys[newTheme];
|
|
746
|
+
const option = EchartsUtil.mergeOptions(themeOption, customOption);
|
|
747
|
+
|
|
748
|
+
newChart.setOption(option, true);
|
|
749
|
+
item.chart = newChart;
|
|
750
|
+
EchartsUtil.bindResize(newChart);
|
|
751
|
+
});
|
|
752
|
+
};
|
|
753
|
+
|
|
754
|
+
EchartsUtil.bindResize = function(chartIns) {
|
|
755
|
+
if (!chartIns || chartIns.resizeLocked) return;
|
|
756
|
+
|
|
757
|
+
window.addEventListener("resize", function() {
|
|
758
|
+
chartIns.resize();
|
|
759
|
+
});
|
|
760
|
+
|
|
761
|
+
chartIns._resizeLocked = true;
|
|
762
|
+
};
|
|
763
|
+
|
|
764
|
+
EchartsUtil.destroy = function(chartIns) {
|
|
765
|
+
if (chartIns) {
|
|
766
|
+
chartIns.dispose();
|
|
767
|
+
}
|
|
768
|
+
|
|
769
|
+
this.chartInstanceList = this.chartInstanceList.filter(function(item) {
|
|
770
|
+
return item.chart !== chartIns;
|
|
771
|
+
});
|
|
772
|
+
};
|
|
773
|
+
|
|
774
|
+
EchartsUtil.destroyAll = function() {
|
|
775
|
+
this.chartInstanceList.forEach(function(item) {
|
|
776
|
+
if (item.chart) {
|
|
777
|
+
item.chart.dispose();
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
|
|
781
|
+
this.chartInstanceList = [];
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
/* harmony default export */ var utils = __webpack_exports__["a"] = (EchartsUtil);
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
|
|
789
|
+
/***/ }),
|
|
790
|
+
|
|
791
|
+
/***/ "49c9":
|
|
792
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
793
|
+
|
|
794
|
+
"use strict";
|
|
795
|
+
// ESM COMPAT FLAG
|
|
796
|
+
__webpack_require__.r(__webpack_exports__);
|
|
797
|
+
|
|
798
|
+
// CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"2cf63e9b-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??ref--5!./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/chart/ExMulti.vue?vue&type=template&id=6f25e9c5&scoped=true
|
|
799
|
+
var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',{ref:"multilinechart",staticClass:"multiline-box"})
|
|
800
|
+
}
|
|
801
|
+
var staticRenderFns = []
|
|
802
|
+
|
|
803
|
+
|
|
804
|
+
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue?vue&type=template&id=6f25e9c5&scoped=true
|
|
805
|
+
|
|
806
|
+
// EXTERNAL MODULE: ./src/components/chart/utils.js + 5 modules
|
|
807
|
+
var utils = __webpack_require__("202d");
|
|
808
|
+
|
|
809
|
+
// CONCATENATED MODULE: ./node_modules/@vue/cli-service/node_modules/cache-loader/dist/cjs.js??ref--1-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/chart/ExMulti.vue?vue&type=script&lang=js
|
|
810
|
+
|
|
811
|
+
|
|
812
|
+
/* harmony default export */ var ExMultivue_type_script_lang_js = ({
|
|
813
|
+
name: "XtMulti",
|
|
814
|
+
props: {
|
|
815
|
+
isDark: {
|
|
816
|
+
type: Boolean, // 设置文字标线为白色系
|
|
817
|
+
default: false
|
|
818
|
+
},
|
|
819
|
+
theme: {},
|
|
820
|
+
size: {
|
|
821
|
+
type: String,
|
|
822
|
+
default: "medium"
|
|
823
|
+
},
|
|
824
|
+
config: {
|
|
825
|
+
type: Object,
|
|
826
|
+
default() {
|
|
827
|
+
return {
|
|
828
|
+
interval: 0,
|
|
829
|
+
rotate: 0,
|
|
830
|
+
gridbottom: 40,
|
|
831
|
+
isShowthreshold: false
|
|
832
|
+
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
chartData: {
|
|
837
|
+
type: Array,
|
|
838
|
+
default: () => {
|
|
839
|
+
return [
|
|
840
|
+
{
|
|
841
|
+
label: "入户数",
|
|
842
|
+
data: [
|
|
843
|
+
{ label: "01月", value: 980 },
|
|
844
|
+
{ label: "02月", value: 806 },
|
|
845
|
+
{ label: "03月", value: 930 },
|
|
846
|
+
{ label: "04月", value: 804 },
|
|
847
|
+
{ label: "05月", value: 750 },
|
|
848
|
+
{ label: "06月", value: 660 },
|
|
849
|
+
{ label: "07月", value: 780 },
|
|
850
|
+
{ label: "08月", value: 630 },
|
|
851
|
+
{ label: "09月", value: 806 },
|
|
852
|
+
{ label: "10月", value: 950 },
|
|
853
|
+
{ label: "11月", value: 810 },
|
|
854
|
+
{ label: "12月", value: 703 }
|
|
855
|
+
]
|
|
856
|
+
},
|
|
857
|
+
{
|
|
858
|
+
label: "隐患数",
|
|
859
|
+
data: [
|
|
860
|
+
{ label: "01月", value: 200 },
|
|
861
|
+
{ label: "02月", value: 120 },
|
|
862
|
+
{ label: "03月", value: 110 },
|
|
863
|
+
{ label: "04月", value: 109 },
|
|
864
|
+
{ label: "05月", value: 108 },
|
|
865
|
+
{ label: "06月", value: 150 },
|
|
866
|
+
{ label: "07月", value: 126 },
|
|
867
|
+
{ label: "08月", value: 130 },
|
|
868
|
+
{ label: "09月", value: 108 },
|
|
869
|
+
{ label: "10月", value: 109 },
|
|
870
|
+
{ label: "11月", value: 140 },
|
|
871
|
+
{ label: "12月", value: 106 }
|
|
872
|
+
]
|
|
873
|
+
},
|
|
874
|
+
{
|
|
875
|
+
label: "整改数",
|
|
876
|
+
data: [
|
|
877
|
+
{ label: "01月", value: 25 },
|
|
878
|
+
{ label: "02月", value: 19 },
|
|
879
|
+
{ label: "03月", value: 34 },
|
|
880
|
+
{ label: "04月", value: 12 },
|
|
881
|
+
{ label: "05月", value: 16 },
|
|
882
|
+
{ label: "06月", value: 20 },
|
|
883
|
+
{ label: "07月", value: 19 },
|
|
884
|
+
{ label: "08月", value: 18 },
|
|
885
|
+
{ label: "09月", value: 14 },
|
|
886
|
+
{ label: "10月", value: 12 },
|
|
887
|
+
{ label: "11月", value: 11 },
|
|
888
|
+
{ label: "12月", value: 16 }
|
|
889
|
+
]
|
|
890
|
+
}
|
|
891
|
+
];
|
|
892
|
+
}
|
|
893
|
+
},
|
|
894
|
+
colors: {
|
|
895
|
+
type: Array,
|
|
896
|
+
default: () => { return []; }
|
|
897
|
+
},
|
|
898
|
+
selectedNew: {
|
|
899
|
+
type: Object,
|
|
900
|
+
default: null
|
|
901
|
+
},
|
|
902
|
+
energyType: {
|
|
903
|
+
type: [String, Array],
|
|
904
|
+
default: ""
|
|
905
|
+
}
|
|
906
|
+
},
|
|
907
|
+
data() {
|
|
908
|
+
return {
|
|
909
|
+
myChart: null
|
|
910
|
+
// chartList: []
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
watch: {
|
|
914
|
+
chartData: {
|
|
915
|
+
deep: true,
|
|
916
|
+
handler(newVal, oldVal) {
|
|
917
|
+
const _self = this;
|
|
918
|
+
this.myChart && this.myChart.dispose();
|
|
919
|
+
this.myChart = null;
|
|
920
|
+
_self.initChart();
|
|
921
|
+
}
|
|
922
|
+
},
|
|
923
|
+
energyType: {
|
|
924
|
+
deep: true,
|
|
925
|
+
handler(newVal, oldVal) {
|
|
926
|
+
if (newVal && oldVal && newVal.toString() == oldVal.toString()) {
|
|
927
|
+
return;
|
|
928
|
+
}
|
|
929
|
+
this.myChart && this.myChart.dispose();
|
|
930
|
+
this.myChart = null;
|
|
931
|
+
const _self = this;
|
|
932
|
+
_self.initChart();
|
|
933
|
+
}
|
|
934
|
+
}
|
|
935
|
+
},
|
|
936
|
+
mounted() {
|
|
937
|
+
this.initChart();
|
|
938
|
+
},
|
|
939
|
+
methods: {
|
|
940
|
+
initChart() {
|
|
941
|
+
const _self = this;
|
|
942
|
+
// 数据处理
|
|
943
|
+
const groupYAxis = (unit) => {
|
|
944
|
+
return {
|
|
945
|
+
type: "value",
|
|
946
|
+
name: unit,
|
|
947
|
+
axisLine: {
|
|
948
|
+
show: false,
|
|
949
|
+
lineStyle: {
|
|
950
|
+
}
|
|
951
|
+
},
|
|
952
|
+
axisTick: {
|
|
953
|
+
show: false
|
|
954
|
+
},
|
|
955
|
+
splitLine: {
|
|
956
|
+
lineStyle: {
|
|
957
|
+
type: "dashed"
|
|
958
|
+
}
|
|
959
|
+
},
|
|
960
|
+
axisLabel: {
|
|
961
|
+
formatter: function(value, index) {
|
|
962
|
+
if (value >= 10000 && value < 10000000) {
|
|
963
|
+
value = Math.floor(value / 10000) + "万";
|
|
964
|
+
} else if (value >= 10000000) {
|
|
965
|
+
value = Math.floor(value / 10000000) + "千万";
|
|
966
|
+
}
|
|
967
|
+
return value;
|
|
968
|
+
}
|
|
969
|
+
}
|
|
970
|
+
};
|
|
971
|
+
};
|
|
972
|
+
const option = {
|
|
973
|
+
legend: {
|
|
974
|
+
right: 20,
|
|
975
|
+
top: 0,
|
|
976
|
+
show: true,
|
|
977
|
+
data: _self.chartData.map((item) => {
|
|
978
|
+
return item.label;
|
|
979
|
+
}),
|
|
980
|
+
selectedMode: "multiple",
|
|
981
|
+
selected: _self.selectedNew,
|
|
982
|
+
textStyle: {
|
|
983
|
+
fontSize: 12
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
tooltip: {
|
|
987
|
+
borderWidth: 1,
|
|
988
|
+
trigger: "axis",
|
|
989
|
+
axisPointer: {
|
|
990
|
+
type: "shadow"
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
grid: {
|
|
994
|
+
top: "25%",
|
|
995
|
+
left: "40",
|
|
996
|
+
right: "15",
|
|
997
|
+
bottom: this.config.gridbottom == null ? 20 : this.config.gridbottom
|
|
998
|
+
},
|
|
999
|
+
xAxis: {
|
|
1000
|
+
type: "category",
|
|
1001
|
+
// splitLine: {
|
|
1002
|
+
// show: true,
|
|
1003
|
+
// lineStyle: {
|
|
1004
|
+
// type: "dashed"
|
|
1005
|
+
// }
|
|
1006
|
+
// },
|
|
1007
|
+
axisLabel: {
|
|
1008
|
+
rotate: this.config.rotate
|
|
1009
|
+
},
|
|
1010
|
+
data: _self.chartData && _self.chartData.length ? _self.chartData[0].data.map((item) => {
|
|
1011
|
+
return item.label;
|
|
1012
|
+
}) : []
|
|
1013
|
+
},
|
|
1014
|
+
yAxis: typeof _self.energyType == "string" ? groupYAxis(_self.energyType) : this.energyType.map(unit => groupYAxis(unit)),
|
|
1015
|
+
dataZoom: [
|
|
1016
|
+
{
|
|
1017
|
+
type: "inside",
|
|
1018
|
+
xAxisIndex: [0],
|
|
1019
|
+
start: 1,
|
|
1020
|
+
end: 100
|
|
1021
|
+
}
|
|
1022
|
+
],
|
|
1023
|
+
series: this.getSeriesData()
|
|
1024
|
+
};
|
|
1025
|
+
this.myChart = utils["a" /* default */].init(_self.$refs.multilinechart, this.theme, option, this.size);
|
|
1026
|
+
},
|
|
1027
|
+
getSeriesData() {
|
|
1028
|
+
// 创建 24小时 时间数据填充对象
|
|
1029
|
+
const _self = this;
|
|
1030
|
+
|
|
1031
|
+
const _seriesData = [];
|
|
1032
|
+
_self.chartData.map((item, ind) => {
|
|
1033
|
+
// debugger;
|
|
1034
|
+
const _isNUll = item.data.some(it => !it.value || it.value == "--");
|
|
1035
|
+
const _itemNull = {
|
|
1036
|
+
type: "",
|
|
1037
|
+
name: item.label,
|
|
1038
|
+
connectNulls: true, // 断点连线,true-连接,false-不连接
|
|
1039
|
+
data: item.data.map(it => it.value),
|
|
1040
|
+
tooltip: {
|
|
1041
|
+
show: false
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
const _item = {
|
|
1045
|
+
animation: true,
|
|
1046
|
+
name: item.label,
|
|
1047
|
+
type: item.type || "bar",
|
|
1048
|
+
avoidLabelOverlap: true,
|
|
1049
|
+
data: item.data.map(it => it.value)
|
|
1050
|
+
};
|
|
1051
|
+
_seriesData.push(_item);
|
|
1052
|
+
});
|
|
1053
|
+
return _seriesData;
|
|
1054
|
+
}
|
|
1055
|
+
}
|
|
1056
|
+
});
|
|
1057
|
+
|
|
1058
|
+
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue?vue&type=script&lang=js
|
|
1059
|
+
/* harmony default export */ var chart_ExMultivue_type_script_lang_js = (ExMultivue_type_script_lang_js);
|
|
1060
|
+
// EXTERNAL MODULE: ./src/components/chart/ExMulti.vue?vue&type=style&index=0&id=6f25e9c5&prod&lang=scss&scoped=true
|
|
1061
|
+
var ExMultivue_type_style_index_0_id_6f25e9c5_prod_lang_scss_scoped_true = __webpack_require__("8d67");
|
|
1062
|
+
|
|
1063
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/lib/runtime/componentNormalizer.js
|
|
1064
|
+
var componentNormalizer = __webpack_require__("2877");
|
|
1065
|
+
|
|
1066
|
+
// CONCATENATED MODULE: ./src/components/chart/ExMulti.vue
|
|
1067
|
+
|
|
1068
|
+
|
|
1069
|
+
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
|
|
1073
|
+
/* normalize component */
|
|
1074
|
+
|
|
1075
|
+
var component = Object(componentNormalizer["a" /* default */])(
|
|
1076
|
+
chart_ExMultivue_type_script_lang_js,
|
|
1077
|
+
render,
|
|
1078
|
+
staticRenderFns,
|
|
1079
|
+
false,
|
|
1080
|
+
null,
|
|
1081
|
+
"6f25e9c5",
|
|
1082
|
+
null
|
|
1083
|
+
|
|
1084
|
+
)
|
|
1085
|
+
|
|
1086
|
+
/* harmony default export */ var ExMulti = __webpack_exports__["default"] = (component.exports);
|
|
1087
|
+
|
|
1088
|
+
/***/ }),
|
|
1089
|
+
|
|
1090
|
+
/***/ "8d67":
|
|
1091
|
+
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1092
|
+
|
|
1093
|
+
"use strict";
|
|
1094
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_6f25e9c5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("d12c");
|
|
1095
|
+
/* harmony import */ var _node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_6f25e9c5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_mini_css_extract_plugin_dist_loader_js_ref_9_oneOf_1_0_node_modules_css_loader_dist_cjs_js_ref_9_oneOf_1_1_node_modules_vue_loader_lib_loaders_stylePostLoader_js_node_modules_postcss_loader_src_index_js_ref_9_oneOf_1_2_node_modules_sass_loader_dist_cjs_js_ref_9_oneOf_1_3_node_modules_vue_cli_service_node_modules_cache_loader_dist_cjs_js_ref_1_0_node_modules_vue_loader_lib_index_js_vue_loader_options_ExMulti_vue_vue_type_style_index_0_id_6f25e9c5_prod_lang_scss_scoped_true__WEBPACK_IMPORTED_MODULE_0__);
|
|
1096
|
+
/* unused harmony reexport * */
|
|
1097
|
+
|
|
1098
|
+
|
|
1099
|
+
/***/ }),
|
|
1100
|
+
|
|
1101
|
+
/***/ "d12c":
|
|
1102
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1103
|
+
|
|
1104
|
+
// extracted by mini-css-extract-plugin
|
|
1105
|
+
|
|
1106
|
+
/***/ })
|
|
1107
|
+
|
|
1108
|
+
}]);
|