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.
@@ -105096,7 +105096,7 @@ const ElColorPicker = _ColorPicker;
105096
105096
 
105097
105097
 
105098
105098
 
105099
- ;// 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-82.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=422c2ffa&scoped=true
105099
+ ;// 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-82.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
105100
105100
  /* unplugin-vue-components disabled */
105101
105101
 
105102
105102
 
@@ -105106,26 +105106,26 @@ const ElColorPicker = _ColorPicker;
105106
105106
 
105107
105107
 
105108
105108
 
105109
- const echartsvue_type_template_id_422c2ffa_scoped_true_withScopeId = n => (_pushScopeId("data-v-422c2ffa"), n = n(), _popScopeId(), n);
105109
+ const echartsvue_type_template_id_c5c6e504_scoped_true_withScopeId = n => (_pushScopeId("data-v-c5c6e504"), n = n(), _popScopeId(), n);
105110
105110
 
105111
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_1 = {
105111
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_1 = {
105112
105112
  class: "echarts-wapper"
105113
105113
  };
105114
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_2 = ["id"];
105114
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2 = ["id"];
105115
105115
 
105116
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105116
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105117
105117
 
105118
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105118
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105119
105119
 
105120
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105120
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105121
105121
 
105122
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105122
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
105123
105123
 
105124
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105124
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
105125
105125
 
105126
- const echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105126
+ const echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
105127
105127
 
105128
- function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
105128
+ function echartsvue_type_template_id_c5c6e504_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
105129
105129
  const _component_el_switch = ElSwitch;
105130
105130
 
105131
105131
  const _component_el_form_item = ElFormItem;
@@ -105140,11 +105140,11 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105140
105140
 
105141
105141
  const _component_el_dialog = ElDialog;
105142
105142
 
105143
- return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
105143
+ 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", {
105144
105144
  ref: el => $setup.setRef(el),
105145
105145
  id: $props.id,
105146
105146
  class: "jt-chart-vm"
105147
- }, null, 8, echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
105147
+ }, null, 8, echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
105148
105148
  class: "jtIcon iconpeizhi41 eitid-icon",
105149
105149
  onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
105150
105150
  }), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
@@ -105227,21 +105227,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105227
105227
  "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
105228
105228
  label: "solid"
105229
105229
  }, {
105230
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_3]),
105230
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_3]),
105231
105231
  _: 1
105232
105232
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105233
105233
  modelValue: $setup.gridLineConfig.lineType,
105234
105234
  "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
105235
105235
  label: "dashed"
105236
105236
  }, {
105237
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_4]),
105237
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_4]),
105238
105238
  _: 1
105239
105239
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105240
105240
  modelValue: $setup.gridLineConfig.lineType,
105241
105241
  "onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
105242
105242
  label: "dotted"
105243
105243
  }, {
105244
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_5]),
105244
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_5]),
105245
105245
  _: 1
105246
105246
  }, 8, ["modelValue"])]),
105247
105247
  _: 1
@@ -105288,21 +105288,21 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105288
105288
  "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
105289
105289
  label: "solid"
105290
105290
  }, {
105291
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_6]),
105291
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_6]),
105292
105292
  _: 1
105293
105293
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105294
105294
  modelValue: $setup.tickLineConfig.lineType,
105295
105295
  "onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
105296
105296
  label: "dashed"
105297
105297
  }, {
105298
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_7]),
105298
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_7]),
105299
105299
  _: 1
105300
105300
  }, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
105301
105301
  modelValue: $setup.tickLineConfig.lineType,
105302
105302
  "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
105303
105303
  label: "dotted"
105304
105304
  }, {
105305
- default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_422c2ffa_scoped_true_hoisted_8]),
105305
+ default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_c5c6e504_scoped_true_hoisted_8]),
105306
105306
  _: 1
105307
105307
  }, 8, ["modelValue"])]),
105308
105308
  _: 1
@@ -105312,7 +105312,7 @@ function echartsvue_type_template_id_422c2ffa_scoped_true_render(_ctx, _cache, $
105312
105312
  _: 1
105313
105313
  }, 8, ["modelValue"])]);
105314
105314
  }
105315
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=422c2ffa&scoped=true
105315
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=c5c6e504&scoped=true
105316
105316
  /* unplugin-vue-components disabled */
105317
105317
  ;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
105318
105318
 
@@ -223848,6 +223848,14 @@ const erd = element_resize_detector_default()();
223848
223848
  //自定义事件间隔
223849
223849
  customIntrerVal: {
223850
223850
  type: Number
223851
+ },
223852
+ yLeft: {
223853
+ type: String,
223854
+ default: ''
223855
+ },
223856
+ yRight: {
223857
+ type: String,
223858
+ default: ''
223851
223859
  }
223852
223860
  },
223853
223861
 
@@ -223866,22 +223874,29 @@ const erd = element_resize_detector_default()();
223866
223874
 
223867
223875
  let chartVM;
223868
223876
  let option;
223869
- let tempArray = [];
223877
+ const isDoubleY = props.data.findIndex(item => 'yAxisIndex' in item && item.yAxisIndex == 1) != -1;
223878
+ let tempArray = []; //左边y轴的数据
223879
+
223880
+ let tempArrayRight = []; //右边y轴的数据
223881
+
223870
223882
  props.data.forEach(item => {
223871
- tempArray = tempArray.concat(item.data);
223883
+ if ('yAxisIndex' in item && item.yAxisIndex == 1) {
223884
+ tempArrayRight = tempArrayRight.concat(item.data);
223885
+ } else {
223886
+ tempArray = tempArray.concat(item.data);
223887
+ }
223872
223888
  });
223873
223889
 
223874
223890
  if (timeRange.value && tempArray.length != 0) {
223875
- const {
223876
- minVal,
223877
- maxVal
223878
- } = getMaxAndMinValue();
223879
223891
  option = {
223880
223892
  xAxis: {
223881
223893
  type: "value",
223882
223894
  min: new Date(timeRange.value[0]).getTime(),
223883
223895
  max: new Date(timeRange.value[1]).getTime(),
223884
223896
  interval: 6 * 60 * 60 * 1000,
223897
+ nameTextStyle: {
223898
+ padding: [0, 0, 0, 20]
223899
+ },
223885
223900
  axisLabel: {
223886
223901
  formatter: function (e) {
223887
223902
  let temp;
@@ -223929,17 +223944,35 @@ const erd = element_resize_detector_default()();
223929
223944
  tooltip: {
223930
223945
  trigger: 'axis',
223931
223946
  formatter: params => {
223932
- return `${dayjs_dayjs_min_default()(params[0].data[0]).format('YYYY-MM-DD HH:mm')}
223933
- <br/>${params[0].seriesName}:${params[0].data[1]}`;
223947
+ let str = '';
223948
+ params.forEach(item => {
223949
+ str += `<br/>${item.seriesName}:${item.data[1]}`;
223950
+ });
223951
+ return `${dayjs_dayjs_min_default()(params[0].data[0]).format('YYYY-MM-DD HH:mm')}${str}`;
223934
223952
  }
223935
223953
  },
223954
+ grid: {
223955
+ bottom: 80
223956
+ },
223936
223957
  legend: {
223937
223958
  data: []
223938
223959
  },
223939
- yAxis: {
223940
- type: 'value',
223941
- min: minVal,
223942
- max: maxVal,
223960
+ yAxis: [],
223961
+ dataZoom: [{
223962
+ type: 'inside',
223963
+ xAxisIndex: 0
223964
+ }, {
223965
+ type: 'slider',
223966
+ xAxisIndex: 0
223967
+ }],
223968
+ series: props.data
223969
+ };
223970
+
223971
+ if (isDoubleY) {
223972
+ option.yAxis = [{
223973
+ name: props.yLeft,
223974
+ min: 0,
223975
+ max: 0,
223943
223976
  minorTick: {
223944
223977
  show: true,
223945
223978
  lineStyle: {}
@@ -223956,16 +223989,66 @@ const erd = element_resize_detector_default()();
223956
223989
  color: '#333'
223957
223990
  }
223958
223991
  }
223959
- },
223960
- dataZoom: [{
223961
- type: 'inside',
223962
- xAxisIndex: 0
223963
223992
  }, {
223964
- type: 'slider',
223965
- xAxisIndex: 0
223966
- }],
223967
- series: props.data
223968
- };
223993
+ name: props.yRight,
223994
+ min: 0,
223995
+ max: 5,
223996
+ minorTick: {
223997
+ show: true,
223998
+ lineStyle: {}
223999
+ },
224000
+ minorSplitLine: {
224001
+ show: true,
224002
+ lineStyle: {
224003
+ color: '#ccc'
224004
+ }
224005
+ },
224006
+ splitLine: {
224007
+ show: true,
224008
+ lineStyle: {
224009
+ color: '#333'
224010
+ }
224011
+ }
224012
+ }];
224013
+ } else {
224014
+ option.yAxis = [{
224015
+ name: props.yLeft,
224016
+ min: 0,
224017
+ max: 0,
224018
+ minorTick: {
224019
+ show: true,
224020
+ lineStyle: {}
224021
+ },
224022
+ minorSplitLine: {
224023
+ show: true,
224024
+ lineStyle: {
224025
+ color: '#ccc'
224026
+ }
224027
+ },
224028
+ splitLine: {
224029
+ show: true,
224030
+ lineStyle: {
224031
+ color: '#333'
224032
+ }
224033
+ }
224034
+ }];
224035
+ }
224036
+
224037
+ const {
224038
+ minVal,
224039
+ maxVal
224040
+ } = getMaxAndMinValue(tempArray);
224041
+ option.yAxis[0].min = minVal;
224042
+ option.yAxis[0].max = maxVal;
224043
+
224044
+ if (isDoubleY) {
224045
+ const {
224046
+ minVal: minValRight,
224047
+ maxValRight
224048
+ } = getMaxAndMinValue(tempArrayRight);
224049
+ option.yAxis[1].min = minValRight;
224050
+ option.yAxis[1].max = maxValRight;
224051
+ }
223969
224052
  } else {
223970
224053
  option = {
223971
224054
  title: {
@@ -224057,7 +224140,6 @@ const erd = element_resize_detector_default()();
224057
224140
  option.xAxis.max = maxTime;
224058
224141
  option.legend.data = option.series.map(item => item.name);
224059
224142
  setGridLine(gridLineConfig);
224060
- console.log(option, 111);
224061
224143
  chartVM.setOption(option, true);
224062
224144
  } //监听网格线相关设置操作
224063
224145
 
@@ -224074,36 +224156,95 @@ const erd = element_resize_detector_default()();
224074
224156
 
224075
224157
  function setGridLine(obj) {
224076
224158
  option.xAxis.minorTick.show = obj.tickX;
224077
- option.yAxis.minorTick.show = obj.tickY;
224159
+ option.yAxis[0].minorTick.show = obj.tickY;
224160
+
224161
+ if (isDoubleY) {
224162
+ option.yAxis[1].minorTick.show = obj.tickY;
224163
+ }
224164
+
224078
224165
  option.xAxis.minorSplitLine.show = obj.lineX;
224079
- option.yAxis.minorSplitLine.show = obj.lineY;
224166
+ option.yAxis[0].minorSplitLine.show = obj.lineY;
224167
+
224168
+ if (isDoubleY) {
224169
+ option.yAxis[1].minorSplitLine.show = obj.lineY;
224170
+ }
224171
+
224080
224172
  option.xAxis.minorSplitLine.lineStyle.color = obj.lineColor;
224081
- option.yAxis.minorSplitLine.lineStyle.color = obj.lineColor;
224173
+ option.yAxis[0].minorSplitLine.lineStyle.color = obj.lineColor;
224174
+
224175
+ if (isDoubleY) {
224176
+ option.yAxis[1].minorSplitLine.lineStyle.color = obj.lineColor;
224177
+ }
224178
+
224082
224179
  option.xAxis.minorTick.lineStyle.width = obj.lineWidth;
224083
- option.yAxis.minorTick.lineStyle.width = obj.lineWidth;
224180
+ option.yAxis[0].minorTick.lineStyle.width = obj.lineWidth;
224181
+
224182
+ if (isDoubleY) {
224183
+ option.yAxis[1].minorTick.lineStyle.width = obj.lineWidth;
224184
+ }
224185
+
224084
224186
  option.xAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
224085
- option.yAxis.minorSplitLine.lineStyle.width = obj.lineWidth;
224187
+ option.yAxis[0].minorSplitLine.lineStyle.width = obj.lineWidth;
224188
+
224189
+ if (isDoubleY) {
224190
+ option.yAxis[1].minorSplitLine.lineStyle.width = obj.lineWidth;
224191
+ }
224192
+
224086
224193
  option.xAxis.minorTick.lineStyle.type = obj.lineType;
224087
- option.yAxis.minorTick.lineStyle.type = obj.lineType;
224194
+ option.yAxis[0].minorTick.lineStyle.type = obj.lineType;
224195
+
224196
+ if (isDoubleY) {
224197
+ option.yAxis[1].minorTick.lineStyle.type = obj.lineType;
224198
+ }
224199
+
224088
224200
  option.xAxis.minorSplitLine.lineStyle.type = obj.lineType;
224089
- option.yAxis.minorSplitLine.lineStyle.type = obj.lineType;
224201
+ option.yAxis[0].minorSplitLine.lineStyle.type = obj.lineType;
224202
+
224203
+ if (isDoubleY) {
224204
+ option.yAxis[1].minorSplitLine.lineStyle.type = obj.lineType;
224205
+ }
224206
+
224090
224207
  option.xAxis.minorTick.splitNumber = obj.splitNumber;
224208
+ option.yAxis[0].minorTick.splitNumber = obj.splitNumber;
224209
+
224210
+ if (isDoubleY) {
224211
+ option.yAxis[1].minorTick.splitNumber = obj.splitNumber;
224212
+ }
224091
224213
  } //刻度线相关设置
224092
224214
 
224093
224215
 
224094
224216
  function setTickLine(obj) {
224095
224217
  //显隐
224096
224218
  option.xAxis.splitLine.show = obj.tickX;
224097
- option.yAxis.splitLine.show = obj.tickY; //颜色
224219
+ option.yAxis[0].splitLine.show = obj.tickY;
224220
+
224221
+ if (isDoubleY) {
224222
+ option.yAxis[1].splitLine.show = obj.tickY;
224223
+ } //颜色
224224
+
224098
224225
 
224099
224226
  option.xAxis.splitLine.lineStyle.color = obj.lineColor;
224100
- option.yAxis.splitLine.lineStyle.color = obj.lineColor; //线宽
224227
+ option.yAxis[0].splitLine.lineStyle.color = obj.lineColor;
224228
+
224229
+ if (isDoubleY) {
224230
+ option.yAxis[1].splitLine.lineStyle.color = obj.lineColor;
224231
+ } //线宽
224232
+
224101
224233
 
224102
224234
  option.xAxis.splitLine.lineStyle.width = obj.lineWidth;
224103
- option.yAxis.splitLine.lineStyle.width = obj.lineWidth; //类型
224235
+ option.yAxis[0].splitLine.lineStyle.width = obj.lineWidth;
224236
+
224237
+ if (isDoubleY) {
224238
+ option.yAxis[1].splitLine.lineStyle.width = obj.lineWidth;
224239
+ } //类型
224240
+
224104
224241
 
224105
224242
  option.xAxis.splitLine.lineStyle.type = obj.lineType;
224106
- option.yAxis.splitLine.lineStyle.type = obj.lineType;
224243
+ option.yAxis[0].splitLine.lineStyle.type = obj.lineType;
224244
+
224245
+ if (isDoubleY) {
224246
+ option.yAxis[1].splitLine.lineStyle.type = obj.lineType;
224247
+ }
224107
224248
  } //自定义配置持久化
224108
224249
 
224109
224250
 
@@ -224126,13 +224267,19 @@ const erd = element_resize_detector_default()();
224126
224267
  } //计算图表y轴最大值和最小值
224127
224268
 
224128
224269
 
224129
- function getMaxAndMinValue() {
224270
+ function getMaxAndMinValue(tempArray) {
224130
224271
  let minVal, maxVal;
224131
- const tempArraySort = tempArray.sort((a, b) => {
224272
+ const tempArraySort = tempArray.filter(item => item[1] != null).sort((a, b) => {
224132
224273
  return a[1] - b[1];
224133
224274
  });
224134
- minVal = tempArraySort[0][1];
224135
- maxVal = tempArraySort[tempArraySort.length - 1][1];
224275
+
224276
+ if (tempArraySort.length == 0) {
224277
+ minVal = 0, maxVal = 1;
224278
+ } else {
224279
+ minVal = tempArraySort[0][1];
224280
+ maxVal = tempArraySort[tempArraySort.length - 1][1];
224281
+ }
224282
+
224136
224283
  const sub = maxVal - minVal;
224137
224284
  minVal = Math.floor((minVal - sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
224138
224285
  maxVal = Math.ceil((maxVal + sub * props.maxAndMinLevel) * Math.pow(10, props.yMaxAndMinkeepDecimal)) / Math.pow(10, props.yMaxAndMinkeepDecimal);
@@ -224158,10 +224305,10 @@ const erd = element_resize_detector_default()();
224158
224305
  });
224159
224306
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
224160
224307
  /* unplugin-vue-components disabled */
224161
- ;// 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-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.use[3]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/echarts/index.vue?vue&type=style&index=0&id=422c2ffa&lang=scss&scoped=true
224308
+ ;// 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-64.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-64.use[1]!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-64.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-64.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
224162
224309
  /* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
224163
224310
 
224164
- ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=422c2ffa&lang=scss&scoped=true
224311
+ ;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=c5c6e504&lang=scss&scoped=true
224165
224312
  /* unplugin-vue-components disabled */
224166
224313
  ;// CONCATENATED MODULE: ./packages/echarts/index.vue
224167
224314
  /* unplugin-vue-components disabled */
@@ -224171,7 +224318,7 @@ const erd = element_resize_detector_default()();
224171
224318
  ;
224172
224319
 
224173
224320
 
224174
- const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_422c2ffa_scoped_true_render],['__scopeId',"data-v-422c2ffa"]])
224321
+ 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"]])
224175
224322
 
224176
224323
  /* harmony default export */ var echarts = (echarts_exports_);
224177
224324
  ;// CONCATENATED MODULE: ./packages/echarts/index.js