xt-element-ui 1.1.0 → 1.1.2
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 +7 -3
- 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,106 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
color: [
|
|
3
|
+
"#1685a9", // 石青
|
|
4
|
+
"#21a675", // 松柏绿
|
|
5
|
+
"#1bd1a5", // 飞燕草蓝
|
|
6
|
+
"#8c4356", // 绛紫
|
|
7
|
+
"#0dafc6", // 孔雀蓝
|
|
8
|
+
"#4b5cc4", // 宝蓝
|
|
9
|
+
"#758a99", // 墨灰
|
|
10
|
+
"#cca4e3", // 丁香色
|
|
11
|
+
"#205277", // 靛青色
|
|
12
|
+
"#d9b611", // 秋香色
|
|
13
|
+
"#ff8c31", // 杏红
|
|
14
|
+
"#9d2933", // 胭脂
|
|
15
|
+
"#0288c5", // 浅靛青蓝
|
|
16
|
+
"#44cef6" // 天蓝色
|
|
17
|
+
],
|
|
18
|
+
backgroundColor: "#ffffff",
|
|
19
|
+
textStyle: {
|
|
20
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
21
|
+
},
|
|
22
|
+
title: {
|
|
23
|
+
textStyle: {
|
|
24
|
+
color: "#333"
|
|
25
|
+
},
|
|
26
|
+
subtextStyle: {
|
|
27
|
+
color: "#666666"
|
|
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
|
+
axisLine: {
|
|
74
|
+
lineStyle: {
|
|
75
|
+
color: "#DCDFE6"
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
axisTick: {
|
|
79
|
+
lineStyle: {
|
|
80
|
+
color: "#DCDFE6"
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
splitLine: {
|
|
84
|
+
lineStyle: {
|
|
85
|
+
color: "#ebeef5"
|
|
86
|
+
}
|
|
87
|
+
},
|
|
88
|
+
splitArea: {
|
|
89
|
+
areaStyle: {
|
|
90
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
91
|
+
}
|
|
92
|
+
},
|
|
93
|
+
legend: {
|
|
94
|
+
textStyle: {
|
|
95
|
+
color: "#666"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
tooltip: {
|
|
99
|
+
backgroundColor: "rgba(255, 255, 255, 0.95)",
|
|
100
|
+
borderColor: "#DCDFE6",
|
|
101
|
+
borderWidth: 1,
|
|
102
|
+
textStyle: {
|
|
103
|
+
color: "#333"
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
};
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
color: ["#1890ff", "#37c3a4", "#29c0ce", "#6480D7", "#8cce6f", "#3a5dca", "#ffb74d"],
|
|
3
|
+
backgroundColor: "#ffffff",
|
|
4
|
+
textStyle: {
|
|
5
|
+
fontFamily: "Microsoft YaHei, sans-serif"
|
|
6
|
+
},
|
|
7
|
+
title: {
|
|
8
|
+
textStyle: {
|
|
9
|
+
color: "#333",
|
|
10
|
+
fontSize: 16
|
|
11
|
+
},
|
|
12
|
+
subtextStyle: {
|
|
13
|
+
color: "#666666",
|
|
14
|
+
fontSize: 12
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
line: {
|
|
18
|
+
itemStyle: {
|
|
19
|
+
},
|
|
20
|
+
lineStyle: {
|
|
21
|
+
width: 2
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
bar: {
|
|
25
|
+
itemStyle: {
|
|
26
|
+
borderRadius: 4
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
pie: {
|
|
30
|
+
roseType: "radius",
|
|
31
|
+
label: {
|
|
32
|
+
color: "#333"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
radar: {
|
|
36
|
+
indicator: {
|
|
37
|
+
color: "#666666"
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
map: {
|
|
41
|
+
label: {
|
|
42
|
+
color: "#333"
|
|
43
|
+
},
|
|
44
|
+
itemStyle: {
|
|
45
|
+
borderColor: "#fff"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
gauge: {
|
|
49
|
+
axisLine: {
|
|
50
|
+
lineStyle: {
|
|
51
|
+
color: [[1, "#5470c6"]]
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
toolbox: {
|
|
56
|
+
iconStyle: {
|
|
57
|
+
borderColor: "#666666"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
xAxis: {
|
|
61
|
+
axisLine: {
|
|
62
|
+
lineStyle: {
|
|
63
|
+
color: "#DFE9EE"
|
|
64
|
+
}
|
|
65
|
+
},
|
|
66
|
+
axisTick: {
|
|
67
|
+
lineStyle: {
|
|
68
|
+
color: "#DFE9EE"
|
|
69
|
+
},
|
|
70
|
+
show: false
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
yAxis: {
|
|
74
|
+
axisLine: {
|
|
75
|
+
lineStyle: {
|
|
76
|
+
color: "#DFE9EE"
|
|
77
|
+
}
|
|
78
|
+
},
|
|
79
|
+
axisTick: {
|
|
80
|
+
lineStyle: {
|
|
81
|
+
color: "#DFE9EE"
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
splitLine: {
|
|
85
|
+
show: true,
|
|
86
|
+
lineStyle: {
|
|
87
|
+
type: "dashed",
|
|
88
|
+
color: "#DFE9EE"
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
splitArea: {
|
|
93
|
+
areaStyle: {
|
|
94
|
+
color: ["#f7f8fa", "#ffffff"]
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
legend: {
|
|
98
|
+
textStyle: {
|
|
99
|
+
color: "#333333"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
tooltip: {
|
|
103
|
+
borderWidth: 1,
|
|
104
|
+
backgroundColor: "#ffffff",
|
|
105
|
+
textStyle: {
|
|
106
|
+
color: "#333333"
|
|
107
|
+
},
|
|
108
|
+
trigger: "axis"
|
|
109
|
+
}
|
|
110
|
+
};
|
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
import * as echarts from "echarts";
|
|
2
|
+
|
|
3
|
+
import themeWhite from "./theme/white";
|
|
4
|
+
import themeDark from "./theme/dark";
|
|
5
|
+
import themeBlue from "./theme/blue";
|
|
6
|
+
import themeStarry from "./theme/starry";
|
|
7
|
+
import themeOrange from "./theme/orange";
|
|
8
|
+
|
|
9
|
+
const themeKeys = {
|
|
10
|
+
"default": themeWhite,
|
|
11
|
+
"white": themeWhite,
|
|
12
|
+
"dark": themeDark,
|
|
13
|
+
"blue": themeBlue,
|
|
14
|
+
"starry": themeStarry,
|
|
15
|
+
"orange": themeOrange
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
for (const key in themeKeys) {
|
|
19
|
+
echarts.registerTheme(key, themeKeys[key]);
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// 字体大小配置
|
|
23
|
+
const fontSizeMap = {
|
|
24
|
+
small: {
|
|
25
|
+
title: 14,
|
|
26
|
+
subtitle: 11,
|
|
27
|
+
legend: 11,
|
|
28
|
+
axisLabel: 10,
|
|
29
|
+
tooltip: 11,
|
|
30
|
+
label: 11
|
|
31
|
+
},
|
|
32
|
+
medium: {
|
|
33
|
+
title: 16,
|
|
34
|
+
subtitle: 12,
|
|
35
|
+
legend: 12,
|
|
36
|
+
axisLabel: 12,
|
|
37
|
+
tooltip: 12,
|
|
38
|
+
label: 12
|
|
39
|
+
},
|
|
40
|
+
large: {
|
|
41
|
+
title: 18,
|
|
42
|
+
subtitle: 14,
|
|
43
|
+
legend: 14,
|
|
44
|
+
axisLabel: 14,
|
|
45
|
+
tooltip: 14,
|
|
46
|
+
label: 14
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
function EchartsUtil() {}
|
|
51
|
+
|
|
52
|
+
EchartsUtil.currentTheme = "default";
|
|
53
|
+
EchartsUtil.currentSize = "medium";
|
|
54
|
+
EchartsUtil.inverse = false;
|
|
55
|
+
|
|
56
|
+
EchartsUtil.baseOption = {
|
|
57
|
+
backgroundColor: "transparent",
|
|
58
|
+
tooltip: {
|
|
59
|
+
trigger: "axis",
|
|
60
|
+
borderWidth: 1
|
|
61
|
+
},
|
|
62
|
+
legend: {
|
|
63
|
+
right: 20,
|
|
64
|
+
top: 0,
|
|
65
|
+
show: true,
|
|
66
|
+
textStyle: {
|
|
67
|
+
fontSize: 12
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
grid: {
|
|
71
|
+
top: "25%",
|
|
72
|
+
left: "40",
|
|
73
|
+
right: "15",
|
|
74
|
+
bottom: "40"
|
|
75
|
+
},
|
|
76
|
+
xAxis: {
|
|
77
|
+
type: "category",
|
|
78
|
+
boundaryGap: false,
|
|
79
|
+
axisTick: {
|
|
80
|
+
show: true,
|
|
81
|
+
length: 4
|
|
82
|
+
},
|
|
83
|
+
axisLabel: {
|
|
84
|
+
fontSize: 12,
|
|
85
|
+
interval: 0,
|
|
86
|
+
formatter: function(value) {
|
|
87
|
+
return !this.reverse && this.longLable ? value.replace(new RegExp(`(.{${this.longLableSplitNum}})`, "g"), `$1\n`) : value;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
yAxis: {
|
|
92
|
+
type: "value",
|
|
93
|
+
axisTick: {
|
|
94
|
+
show: false
|
|
95
|
+
},
|
|
96
|
+
min: null,
|
|
97
|
+
max: null,
|
|
98
|
+
axisLabel: {
|
|
99
|
+
show: false
|
|
100
|
+
},
|
|
101
|
+
splitLine: {
|
|
102
|
+
lineStyle: {
|
|
103
|
+
type: "dashed",
|
|
104
|
+
width: 1
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
EchartsUtil.chartInstanceList = [];
|
|
111
|
+
|
|
112
|
+
EchartsUtil.mergeOptions = function(themeOption, customOption) {
|
|
113
|
+
return Object.assign({}, this.baseOption, themeOption, customOption);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// 根据字体大小调整主题配置
|
|
117
|
+
EchartsUtil.applyFontSize = function(themeOption, size) {
|
|
118
|
+
const fontSizeConfig = fontSizeMap[size] || fontSizeMap.medium;
|
|
119
|
+
|
|
120
|
+
const result = JSON.parse(JSON.stringify(themeOption));
|
|
121
|
+
|
|
122
|
+
// 调整标题字体大小
|
|
123
|
+
if (result.title && result.title.textStyle) {
|
|
124
|
+
result.title.textStyle.fontSize = fontSizeConfig.title;
|
|
125
|
+
}
|
|
126
|
+
if (result.title && result.title.subtextStyle) {
|
|
127
|
+
result.title.subtextStyle.fontSize = fontSizeConfig.subtitle;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
// 调整图例字体大小
|
|
131
|
+
if (result.legend && result.legend.textStyle) {
|
|
132
|
+
result.legend.textStyle.fontSize = fontSizeConfig.legend;
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// 调整提示框字体大小
|
|
136
|
+
if (result.tooltip && result.tooltip.textStyle) {
|
|
137
|
+
result.tooltip.textStyle.fontSize = fontSizeConfig.tooltip;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
// 调整饼图标签字体大小
|
|
141
|
+
if (result.pie && result.pie.label) {
|
|
142
|
+
if (typeof result.pie.label === 'object') {
|
|
143
|
+
result.pie.label.fontSize = fontSizeConfig.label;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
// 调整雷达图指示器字体大小
|
|
148
|
+
if (result.radar && result.radar.indicator) {
|
|
149
|
+
if (typeof result.radar.indicator === 'object' && result.radar.indicator.textStyle) {
|
|
150
|
+
result.radar.indicator.textStyle.fontSize = fontSizeConfig.label;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
// 调整地图标签字体大小
|
|
155
|
+
if (result.map && result.map.label) {
|
|
156
|
+
if (typeof result.map.label === 'object') {
|
|
157
|
+
result.map.label.fontSize = fontSizeConfig.label;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
return result;
|
|
162
|
+
};
|
|
163
|
+
|
|
164
|
+
EchartsUtil.init = function(dom, theme, customOption, size) {
|
|
165
|
+
theme = theme || "default";
|
|
166
|
+
size = size || "medium";
|
|
167
|
+
customOption = customOption || {};
|
|
168
|
+
|
|
169
|
+
const useTheme = this.currentTheme || theme;
|
|
170
|
+
const useSize = this.currentSize || size;
|
|
171
|
+
|
|
172
|
+
this.currentTheme = useTheme;
|
|
173
|
+
this.currentSize = useSize;
|
|
174
|
+
|
|
175
|
+
let themeOption = themeKeys[useTheme];
|
|
176
|
+
// 应用字体大小配置
|
|
177
|
+
themeOption = this.applyFontSize(themeOption, useSize);
|
|
178
|
+
|
|
179
|
+
const option = this.mergeOptions(themeOption, customOption);
|
|
180
|
+
|
|
181
|
+
const chart = echarts.init(dom, useTheme);
|
|
182
|
+
chart.setOption(option, true);
|
|
183
|
+
|
|
184
|
+
this.chartInstanceList.push({
|
|
185
|
+
dom,
|
|
186
|
+
chart,
|
|
187
|
+
customOption,
|
|
188
|
+
size: useSize
|
|
189
|
+
});
|
|
190
|
+
|
|
191
|
+
this.bindResize(chart);
|
|
192
|
+
return chart;
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
EchartsUtil.changeSingleTheme = function(dom, chartIns, customOption, newTheme) {
|
|
196
|
+
if (!dom || !chartIns) return;
|
|
197
|
+
|
|
198
|
+
customOption = customOption || {};
|
|
199
|
+
newTheme = newTheme || "default";
|
|
200
|
+
|
|
201
|
+
this.currentTheme = newTheme;
|
|
202
|
+
chartIns.dispose();
|
|
203
|
+
|
|
204
|
+
const newChart = echarts.init(dom, newTheme, customOption);
|
|
205
|
+
|
|
206
|
+
const item = this.chartInstanceList.find(function(v) {
|
|
207
|
+
return v.dom === dom;
|
|
208
|
+
});
|
|
209
|
+
|
|
210
|
+
if (item) {
|
|
211
|
+
item.chart = newChart;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
return newChart;
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
EchartsUtil.changeAllTheme = function(newTheme) {
|
|
218
|
+
if (!newTheme) return;
|
|
219
|
+
|
|
220
|
+
this.currentTheme = newTheme;
|
|
221
|
+
|
|
222
|
+
this.chartInstanceList.forEach(function(item) {
|
|
223
|
+
const dom = item.dom;
|
|
224
|
+
const chart = item.chart;
|
|
225
|
+
const customOption = item.customOption;
|
|
226
|
+
|
|
227
|
+
if (chart) {
|
|
228
|
+
chart.dispose();
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
const newChart = echarts.init(dom, newTheme);
|
|
232
|
+
const themeOption = themeKeys[newTheme];
|
|
233
|
+
const option = EchartsUtil.mergeOptions(themeOption, customOption);
|
|
234
|
+
|
|
235
|
+
newChart.setOption(option, true);
|
|
236
|
+
item.chart = newChart;
|
|
237
|
+
EchartsUtil.bindResize(newChart);
|
|
238
|
+
});
|
|
239
|
+
};
|
|
240
|
+
|
|
241
|
+
EchartsUtil.bindResize = function(chartIns) {
|
|
242
|
+
if (!chartIns || chartIns.resizeLocked) return;
|
|
243
|
+
|
|
244
|
+
window.addEventListener("resize", function() {
|
|
245
|
+
chartIns.resize();
|
|
246
|
+
});
|
|
247
|
+
|
|
248
|
+
chartIns._resizeLocked = true;
|
|
249
|
+
};
|
|
250
|
+
|
|
251
|
+
EchartsUtil.destroy = function(chartIns) {
|
|
252
|
+
if (chartIns) {
|
|
253
|
+
chartIns.dispose();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
this.chartInstanceList = this.chartInstanceList.filter(function(item) {
|
|
257
|
+
return item.chart !== chartIns;
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
EchartsUtil.destroyAll = function() {
|
|
262
|
+
this.chartInstanceList.forEach(function(item) {
|
|
263
|
+
if (item.chart) {
|
|
264
|
+
item.chart.dispose();
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
|
|
268
|
+
this.chartInstanceList = [];
|
|
269
|
+
};
|
|
270
|
+
|
|
271
|
+
export default EchartsUtil;
|
|
272
|
+
|
|
273
|
+
export { echarts };
|