jtui3.0 1.0.68 → 1.0.69
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/jtui3.0.common.js +207 -60
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +207 -60
- package/lib/jtui3.0.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/jtui3.0.common.js
CHANGED
|
@@ -105086,7 +105086,7 @@ const ElColorPicker = _ColorPicker;
|
|
|
105086
105086
|
|
|
105087
105087
|
|
|
105088
105088
|
|
|
105089
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=
|
|
105089
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[1]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=template&id=c5c6e504&scoped=true
|
|
105090
105090
|
/* unplugin-vue-components disabled */
|
|
105091
105091
|
|
|
105092
105092
|
|
|
@@ -105096,26 +105096,26 @@ const ElColorPicker = _ColorPicker;
|
|
|
105096
105096
|
|
|
105097
105097
|
|
|
105098
105098
|
|
|
105099
|
-
const
|
|
105099
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_withScopeId = n => (_pushScopeId("data-v-c5c6e504"), n = n(), _popScopeId(), n);
|
|
105100
105100
|
|
|
105101
|
-
const
|
|
105101
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_1 = {
|
|
105102
105102
|
class: "echarts-wapper"
|
|
105103
105103
|
};
|
|
105104
|
-
const
|
|
105104
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2 = ["id"];
|
|
105105
105105
|
|
|
105106
|
-
const
|
|
105106
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
105107
105107
|
|
|
105108
|
-
const
|
|
105108
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
105109
105109
|
|
|
105110
|
-
const
|
|
105110
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
105111
105111
|
|
|
105112
|
-
const
|
|
105112
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
105113
105113
|
|
|
105114
|
-
const
|
|
105114
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
105115
105115
|
|
|
105116
|
-
const
|
|
105116
|
+
const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
105117
105117
|
|
|
105118
|
-
function
|
|
105118
|
+
function echartsvue_type_template_id_c5c6e504_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
105119
105119
|
const _component_el_switch = ElSwitch;
|
|
105120
105120
|
|
|
105121
105121
|
const _component_el_form_item = ElFormItem;
|
|
@@ -105130,11 +105130,11 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
|
|
|
105130
105130
|
|
|
105131
105131
|
const _component_el_dialog = ElDialog;
|
|
105132
105132
|
|
|
105133
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
105133
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
105134
105134
|
ref: el => $setup.setRef(el),
|
|
105135
105135
|
id: $props.id,
|
|
105136
105136
|
class: "jt-chart-vm"
|
|
105137
|
-
}, null, 8,
|
|
105137
|
+
}, null, 8, echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
105138
105138
|
class: "jtIcon iconpeizhi41 eitid-icon",
|
|
105139
105139
|
onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
|
|
105140
105140
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
|
|
@@ -105217,21 +105217,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
|
|
|
105217
105217
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
|
|
105218
105218
|
label: "solid"
|
|
105219
105219
|
}, {
|
|
105220
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105220
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3]),
|
|
105221
105221
|
_: 1
|
|
105222
105222
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
105223
105223
|
modelValue: $setup.gridLineConfig.lineType,
|
|
105224
105224
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
|
|
105225
105225
|
label: "dashed"
|
|
105226
105226
|
}, {
|
|
105227
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105227
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4]),
|
|
105228
105228
|
_: 1
|
|
105229
105229
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
105230
105230
|
modelValue: $setup.gridLineConfig.lineType,
|
|
105231
105231
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
|
|
105232
105232
|
label: "dotted"
|
|
105233
105233
|
}, {
|
|
105234
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105234
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5]),
|
|
105235
105235
|
_: 1
|
|
105236
105236
|
}, 8, ["modelValue"])]),
|
|
105237
105237
|
_: 1
|
|
@@ -105278,21 +105278,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
|
|
|
105278
105278
|
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
|
|
105279
105279
|
label: "solid"
|
|
105280
105280
|
}, {
|
|
105281
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105281
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6]),
|
|
105282
105282
|
_: 1
|
|
105283
105283
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
105284
105284
|
modelValue: $setup.tickLineConfig.lineType,
|
|
105285
105285
|
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
|
|
105286
105286
|
label: "dashed"
|
|
105287
105287
|
}, {
|
|
105288
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105288
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7]),
|
|
105289
105289
|
_: 1
|
|
105290
105290
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
105291
105291
|
modelValue: $setup.tickLineConfig.lineType,
|
|
105292
105292
|
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
|
|
105293
105293
|
label: "dotted"
|
|
105294
105294
|
}, {
|
|
105295
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
105295
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8]),
|
|
105296
105296
|
_: 1
|
|
105297
105297
|
}, 8, ["modelValue"])]),
|
|
105298
105298
|
_: 1
|
|
@@ -105302,7 +105302,7 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
|
|
|
105302
105302
|
_: 1
|
|
105303
105303
|
}, 8, ["modelValue"])]);
|
|
105304
105304
|
}
|
|
105305
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=
|
|
105305
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=c5c6e504&scoped=true
|
|
105306
105306
|
/* unplugin-vue-components disabled */
|
|
105307
105307
|
;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
|
|
105308
105308
|
|
|
@@ -223838,6 +223838,14 @@ const erd = element_resize_detector_default()();
|
|
|
223838
223838
|
//自定义事件间隔
|
|
223839
223839
|
customIntrerVal: {
|
|
223840
223840
|
type: Number
|
|
223841
|
+
},
|
|
223842
|
+
yLeft: {
|
|
223843
|
+
type: String,
|
|
223844
|
+
default: ''
|
|
223845
|
+
},
|
|
223846
|
+
yRight: {
|
|
223847
|
+
type: String,
|
|
223848
|
+
default: ''
|
|
223841
223849
|
}
|
|
223842
223850
|
},
|
|
223843
223851
|
|
|
@@ -223856,22 +223864,29 @@ const erd = element_resize_detector_default()();
|
|
|
223856
223864
|
|
|
223857
223865
|
let chartVM;
|
|
223858
223866
|
let option;
|
|
223859
|
-
|
|
223867
|
+
const isDoubleY = props.data.findIndex(item => 'yAxisIndex' in item && item.yAxisIndex == 1) != -1;
|
|
223868
|
+
let tempArray = []; //左边y轴的数据
|
|
223869
|
+
|
|
223870
|
+
let tempArrayRight = []; //右边y轴的数据
|
|
223871
|
+
|
|
223860
223872
|
props.data.forEach(item => {
|
|
223861
|
-
|
|
223873
|
+
if ('yAxisIndex' in item && item.yAxisIndex == 1) {
|
|
223874
|
+
tempArrayRight = tempArrayRight.concat(item.data);
|
|
223875
|
+
} else {
|
|
223876
|
+
tempArray = tempArray.concat(item.data);
|
|
223877
|
+
}
|
|
223862
223878
|
});
|
|
223863
223879
|
|
|
223864
223880
|
if (timeRange.value && tempArray.length != 0) {
|
|
223865
|
-
const {
|
|
223866
|
-
minVal,
|
|
223867
|
-
maxVal
|
|
223868
|
-
} = getMaxAndMinValue();
|
|
223869
223881
|
option = {
|
|
223870
223882
|
xAxis: {
|
|
223871
223883
|
type: "value",
|
|
223872
223884
|
min: new Date(timeRange.value[0]).getTime(),
|
|
223873
223885
|
max: new Date(timeRange.value[1]).getTime(),
|
|
223874
223886
|
interval: 6 * 60 * 60 * 1000,
|
|
223887
|
+
nameTextStyle: {
|
|
223888
|
+
padding: [0, 0, 0, 20]
|
|
223889
|
+
},
|
|
223875
223890
|
axisLabel: {
|
|
223876
223891
|
formatter: function (e) {
|
|
223877
223892
|
let temp;
|
|
@@ -223919,17 +223934,35 @@ const erd = element_resize_detector_default()();
|
|
|
223919
223934
|
tooltip: {
|
|
223920
223935
|
trigger: 'axis',
|
|
223921
223936
|
formatter: params => {
|
|
223922
|
-
|
|
223923
|
-
|
|
223937
|
+
let str = '';
|
|
223938
|
+
params.forEach(item => {
|
|
223939
|
+
str += `<br/>${item.seriesName}:${item.data[1]}`;
|
|
223940
|
+
});
|
|
223941
|
+
return `${dayjs_dayjs_min_default()(params[0].data[0]).format('YYYY-MM-DD HH:mm')}${str}`;
|
|
223924
223942
|
}
|
|
223925
223943
|
},
|
|
223944
|
+
grid: {
|
|
223945
|
+
bottom: 80
|
|
223946
|
+
},
|
|
223926
223947
|
legend: {
|
|
223927
223948
|
data: []
|
|
223928
223949
|
},
|
|
223929
|
-
yAxis:
|
|
223930
|
-
|
|
223931
|
-
|
|
223932
|
-
|
|
223950
|
+
yAxis: [],
|
|
223951
|
+
dataZoom: [{
|
|
223952
|
+
type: 'inside',
|
|
223953
|
+
xAxisIndex: 0
|
|
223954
|
+
}, {
|
|
223955
|
+
type: 'slider',
|
|
223956
|
+
xAxisIndex: 0
|
|
223957
|
+
}],
|
|
223958
|
+
series: props.data
|
|
223959
|
+
};
|
|
223960
|
+
|
|
223961
|
+
if (isDoubleY) {
|
|
223962
|
+
option.yAxis = [{
|
|
223963
|
+
name: props.yLeft,
|
|
223964
|
+
min: 0,
|
|
223965
|
+
max: 0,
|
|
223933
223966
|
minorTick: {
|
|
223934
223967
|
show: true,
|
|
223935
223968
|
lineStyle: {}
|
|
@@ -223946,16 +223979,66 @@ const erd = element_resize_detector_default()();
|
|
|
223946
223979
|
color: '#333'
|
|
223947
223980
|
}
|
|
223948
223981
|
}
|
|
223949
|
-
},
|
|
223950
|
-
dataZoom: [{
|
|
223951
|
-
type: 'inside',
|
|
223952
|
-
xAxisIndex: 0
|
|
223953
223982
|
}, {
|
|
223954
|
-
|
|
223955
|
-
|
|
223956
|
-
|
|
223957
|
-
|
|
223958
|
-
|
|
223983
|
+
name: props.yRight,
|
|
223984
|
+
min: 0,
|
|
223985
|
+
max: 5,
|
|
223986
|
+
minorTick: {
|
|
223987
|
+
show: true,
|
|
223988
|
+
lineStyle: {}
|
|
223989
|
+
},
|
|
223990
|
+
minorSplitLine: {
|
|
223991
|
+
show: true,
|
|
223992
|
+
lineStyle: {
|
|
223993
|
+
color: '#ccc'
|
|
223994
|
+
}
|
|
223995
|
+
},
|
|
223996
|
+
splitLine: {
|
|
223997
|
+
show: true,
|
|
223998
|
+
lineStyle: {
|
|
223999
|
+
color: '#333'
|
|
224000
|
+
}
|
|
224001
|
+
}
|
|
224002
|
+
}];
|
|
224003
|
+
} else {
|
|
224004
|
+
option.yAxis = [{
|
|
224005
|
+
name: props.yLeft,
|
|
224006
|
+
min: 0,
|
|
224007
|
+
max: 0,
|
|
224008
|
+
minorTick: {
|
|
224009
|
+
show: true,
|
|
224010
|
+
lineStyle: {}
|
|
224011
|
+
},
|
|
224012
|
+
minorSplitLine: {
|
|
224013
|
+
show: true,
|
|
224014
|
+
lineStyle: {
|
|
224015
|
+
color: '#ccc'
|
|
224016
|
+
}
|
|
224017
|
+
},
|
|
224018
|
+
splitLine: {
|
|
224019
|
+
show: true,
|
|
224020
|
+
lineStyle: {
|
|
224021
|
+
color: '#333'
|
|
224022
|
+
}
|
|
224023
|
+
}
|
|
224024
|
+
}];
|
|
224025
|
+
}
|
|
224026
|
+
|
|
224027
|
+
const {
|
|
224028
|
+
minVal,
|
|
224029
|
+
maxVal
|
|
224030
|
+
} = getMaxAndMinValue(tempArray);
|
|
224031
|
+
option.yAxis[0].min = minVal;
|
|
224032
|
+
option.yAxis[0].max = maxVal;
|
|
224033
|
+
|
|
224034
|
+
if (isDoubleY) {
|
|
224035
|
+
const {
|
|
224036
|
+
minVal: minValRight,
|
|
224037
|
+
maxValRight
|
|
224038
|
+
} = getMaxAndMinValue(tempArrayRight);
|
|
224039
|
+
option.yAxis[1].min = minValRight;
|
|
224040
|
+
option.yAxis[1].max = maxValRight;
|
|
224041
|
+
}
|
|
223959
224042
|
} else {
|
|
223960
224043
|
option = {
|
|
223961
224044
|
title: {
|
|
@@ -224047,7 +224130,6 @@ const erd = element_resize_detector_default()();
|
|
|
224047
224130
|
option.xAxis.max = maxTime;
|
|
224048
224131
|
option.legend.data = option.series.map(item => item.name);
|
|
224049
224132
|
setGridLine(gridLineConfig);
|
|
224050
|
-
console.log(option, 111);
|
|
224051
224133
|
chartVM.setOption(option, true);
|
|
224052
224134
|
} //监听网格线相关设置操作
|
|
224053
224135
|
|
|
@@ -224064,36 +224146,95 @@ const erd = element_resize_detector_default()();
|
|
|
224064
224146
|
|
|
224065
224147
|
function setGridLine(obj) {
|
|
224066
224148
|
option.xAxis.minorTick.show = obj.tickX;
|
|
224067
|
-
option.yAxis.minorTick.show = obj.tickY;
|
|
224149
|
+
option.yAxis[0].minorTick.show = obj.tickY;
|
|
224150
|
+
|
|
224151
|
+
if (isDoubleY) {
|
|
224152
|
+
option.yAxis[1].minorTick.show = obj.tickY;
|
|
224153
|
+
}
|
|
224154
|
+
|
|
224068
224155
|
option.xAxis.minorSplitLine.show = obj.lineX;
|
|
224069
|
-
option.yAxis.minorSplitLine.show = obj.lineY;
|
|
224156
|
+
option.yAxis[0].minorSplitLine.show = obj.lineY;
|
|
224157
|
+
|
|
224158
|
+
if (isDoubleY) {
|
|
224159
|
+
option.yAxis[1].minorSplitLine.show = obj.lineY;
|
|
224160
|
+
}
|
|
224161
|
+
|
|
224070
224162
|
option.xAxis.minorSplitLine.lineStyle.color = obj.lineColor;
|
|
224071
|
-
option.yAxis.minorSplitLine.lineStyle.color = obj.lineColor;
|
|
224163
|
+
option.yAxis[0].minorSplitLine.lineStyle.color = obj.lineColor;
|
|
224164
|
+
|
|
224165
|
+
if (isDoubleY) {
|
|
224166
|
+
option.yAxis[1].minorSplitLine.lineStyle.color = obj.lineColor;
|
|
224167
|
+
}
|
|
224168
|
+
|
|
224072
224169
|
option.xAxis.minorTick.lineStyle.width = obj.lineWidth;
|
|
224073
|
-
option.yAxis.minorTick.lineStyle.width = obj.lineWidth;
|
|
224170
|
+
option.yAxis[0].minorTick.lineStyle.width = obj.lineWidth;
|
|
224171
|
+
|
|
224172
|
+
if (isDoubleY) {
|
|
224173
|
+
option.yAxis[1].minorTick.lineStyle.width = obj.lineWidth;
|
|
224174
|
+
}
|
|
224175
|
+
|
|
224074
224176
|
option.xAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
|
|
224075
|
-
option.yAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
|
|
224177
|
+
option.yAxis[0].minorSplitLine.lineStyle.width = obj.lineWidth;
|
|
224178
|
+
|
|
224179
|
+
if (isDoubleY) {
|
|
224180
|
+
option.yAxis[1].minorSplitLine.lineStyle.width = obj.lineWidth;
|
|
224181
|
+
}
|
|
224182
|
+
|
|
224076
224183
|
option.xAxis.minorTick.lineStyle.type = obj.lineType;
|
|
224077
|
-
option.yAxis.minorTick.lineStyle.type = obj.lineType;
|
|
224184
|
+
option.yAxis[0].minorTick.lineStyle.type = obj.lineType;
|
|
224185
|
+
|
|
224186
|
+
if (isDoubleY) {
|
|
224187
|
+
option.yAxis[1].minorTick.lineStyle.type = obj.lineType;
|
|
224188
|
+
}
|
|
224189
|
+
|
|
224078
224190
|
option.xAxis.minorSplitLine.lineStyle.type = obj.lineType;
|
|
224079
|
-
option.yAxis.minorSplitLine.lineStyle.type = obj.lineType;
|
|
224191
|
+
option.yAxis[0].minorSplitLine.lineStyle.type = obj.lineType;
|
|
224192
|
+
|
|
224193
|
+
if (isDoubleY) {
|
|
224194
|
+
option.yAxis[1].minorSplitLine.lineStyle.type = obj.lineType;
|
|
224195
|
+
}
|
|
224196
|
+
|
|
224080
224197
|
option.xAxis.minorTick.splitNumber = obj.splitNumber;
|
|
224198
|
+
option.yAxis[0].minorTick.splitNumber = obj.splitNumber;
|
|
224199
|
+
|
|
224200
|
+
if (isDoubleY) {
|
|
224201
|
+
option.yAxis[1].minorTick.splitNumber = obj.splitNumber;
|
|
224202
|
+
}
|
|
224081
224203
|
} //刻度线相关设置
|
|
224082
224204
|
|
|
224083
224205
|
|
|
224084
224206
|
function setTickLine(obj) {
|
|
224085
224207
|
//显隐
|
|
224086
224208
|
option.xAxis.splitLine.show = obj.tickX;
|
|
224087
|
-
option.yAxis.splitLine.show = obj.tickY;
|
|
224209
|
+
option.yAxis[0].splitLine.show = obj.tickY;
|
|
224210
|
+
|
|
224211
|
+
if (isDoubleY) {
|
|
224212
|
+
option.yAxis[1].splitLine.show = obj.tickY;
|
|
224213
|
+
} //颜色
|
|
224214
|
+
|
|
224088
224215
|
|
|
224089
224216
|
option.xAxis.splitLine.lineStyle.color = obj.lineColor;
|
|
224090
|
-
option.yAxis.splitLine.lineStyle.color = obj.lineColor;
|
|
224217
|
+
option.yAxis[0].splitLine.lineStyle.color = obj.lineColor;
|
|
224218
|
+
|
|
224219
|
+
if (isDoubleY) {
|
|
224220
|
+
option.yAxis[1].splitLine.lineStyle.color = obj.lineColor;
|
|
224221
|
+
} //线宽
|
|
224222
|
+
|
|
224091
224223
|
|
|
224092
224224
|
option.xAxis.splitLine.lineStyle.width = obj.lineWidth;
|
|
224093
|
-
option.yAxis.splitLine.lineStyle.width = obj.lineWidth;
|
|
224225
|
+
option.yAxis[0].splitLine.lineStyle.width = obj.lineWidth;
|
|
224226
|
+
|
|
224227
|
+
if (isDoubleY) {
|
|
224228
|
+
option.yAxis[1].splitLine.lineStyle.width = obj.lineWidth;
|
|
224229
|
+
} //类型
|
|
224230
|
+
|
|
224094
224231
|
|
|
224095
224232
|
option.xAxis.splitLine.lineStyle.type = obj.lineType;
|
|
224096
|
-
option.yAxis.splitLine.lineStyle.type = obj.lineType;
|
|
224233
|
+
option.yAxis[0].splitLine.lineStyle.type = obj.lineType;
|
|
224234
|
+
|
|
224235
|
+
if (isDoubleY) {
|
|
224236
|
+
option.yAxis[1].splitLine.lineStyle.type = obj.lineType;
|
|
224237
|
+
}
|
|
224097
224238
|
} //自定义配置持久化
|
|
224098
224239
|
|
|
224099
224240
|
|
|
@@ -224116,13 +224257,19 @@ const erd = element_resize_detector_default()();
|
|
|
224116
224257
|
} //计算图表y轴最大值和最小值
|
|
224117
224258
|
|
|
224118
224259
|
|
|
224119
|
-
function getMaxAndMinValue() {
|
|
224260
|
+
function getMaxAndMinValue(tempArray) {
|
|
224120
224261
|
let minVal, maxVal;
|
|
224121
|
-
const tempArraySort = tempArray.sort((a, b) => {
|
|
224262
|
+
const tempArraySort = tempArray.filter(item => item[1] != null).sort((a, b) => {
|
|
224122
224263
|
return a[1] - b[1];
|
|
224123
224264
|
});
|
|
224124
|
-
|
|
224125
|
-
|
|
224265
|
+
|
|
224266
|
+
if (tempArraySort.length == 0) {
|
|
224267
|
+
minVal = 0, maxVal = 1;
|
|
224268
|
+
} else {
|
|
224269
|
+
minVal = tempArraySort[0][1];
|
|
224270
|
+
maxVal = tempArraySort[tempArraySort.length - 1][1];
|
|
224271
|
+
}
|
|
224272
|
+
|
|
224126
224273
|
const sub = maxVal - minVal;
|
|
224127
224274
|
minVal = Math.floor((minVal - sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
|
|
224128
224275
|
maxVal = Math.ceil((maxVal + sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
|
|
@@ -224148,10 +224295,10 @@ const erd = element_resize_detector_default()();
|
|
|
224148
224295
|
});
|
|
224149
224296
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
|
|
224150
224297
|
/* unplugin-vue-components disabled */
|
|
224151
|
-
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=style&index=0&id=
|
|
224298
|
+
;// CONCATENATED MODULE: ./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[33].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js??ruleSet[1].rules[34].use[0]!./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=style&index=0&id=c5c6e504&lang=scss&scoped=true
|
|
224152
224299
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
224153
224300
|
|
|
224154
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=
|
|
224301
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=c5c6e504&lang=scss&scoped=true
|
|
224155
224302
|
/* unplugin-vue-components disabled */
|
|
224156
224303
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue
|
|
224157
224304
|
/* unplugin-vue-components disabled */
|
|
@@ -224161,7 +224308,7 @@ const erd = element_resize_detector_default()();
|
|
|
224161
224308
|
;
|
|
224162
224309
|
|
|
224163
224310
|
|
|
224164
|
-
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',
|
|
224311
|
+
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_c5c6e504_scoped_true_render],['__scopeId',"data-v-c5c6e504"]])
|
|
224165
224312
|
|
|
224166
224313
|
/* harmony default export */ var echarts = (echarts_exports_);
|
|
224167
224314
|
;// CONCATENATED MODULE: ./packages/echarts/index.js
|