jtui3.0 1.0.21 → 1.0.23
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 +67 -45
- package/lib/jtui3.0.css +1 -1
- package/lib/jtui3.0.umd.js +63 -41
- package/lib/jtui3.0.umd.min.js +1 -1
- package/package.json +1 -1
package/lib/jtui3.0.umd.js
CHANGED
|
@@ -93520,7 +93520,7 @@ const ElColorPicker = _ColorPicker;
|
|
|
93520
93520
|
|
|
93521
93521
|
;// CONCATENATED MODULE: ./node_modules/element-plus/es/components/color-picker/style/css.mjs
|
|
93522
93522
|
|
|
93523
|
-
;// 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=
|
|
93523
|
+
;// 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=64f322f8&scoped=true
|
|
93524
93524
|
/* unplugin-vue-components disabled */
|
|
93525
93525
|
|
|
93526
93526
|
|
|
@@ -93530,26 +93530,26 @@ const ElColorPicker = _ColorPicker;
|
|
|
93530
93530
|
|
|
93531
93531
|
|
|
93532
93532
|
|
|
93533
|
-
const
|
|
93533
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_withScopeId = n => (_pushScopeId("data-v-64f322f8"), n = n(), _popScopeId(), n);
|
|
93534
93534
|
|
|
93535
|
-
const
|
|
93535
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_1 = {
|
|
93536
93536
|
class: "echarts-wapper"
|
|
93537
93537
|
};
|
|
93538
|
-
const
|
|
93538
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_2 = ["id"];
|
|
93539
93539
|
|
|
93540
|
-
const
|
|
93540
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_3 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
93541
93541
|
|
|
93542
|
-
const
|
|
93542
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_4 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
93543
93543
|
|
|
93544
|
-
const
|
|
93544
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_5 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
93545
93545
|
|
|
93546
|
-
const
|
|
93546
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_6 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("实线");
|
|
93547
93547
|
|
|
93548
|
-
const
|
|
93548
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_7 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("虚线");
|
|
93549
93549
|
|
|
93550
|
-
const
|
|
93550
|
+
const echartsvue_type_template_id_64f322f8_scoped_true_hoisted_8 = /*#__PURE__*/(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createTextVNode)("点");
|
|
93551
93551
|
|
|
93552
|
-
function
|
|
93552
|
+
function echartsvue_type_template_id_64f322f8_scoped_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
93553
93553
|
const _component_el_switch = ElSwitch;
|
|
93554
93554
|
|
|
93555
93555
|
const _component_el_form_item = ElFormItem;
|
|
@@ -93564,11 +93564,11 @@ function echartsvue_type_template_id_08e8c55e_scoped_true_render(_ctx, _cache, $
|
|
|
93564
93564
|
|
|
93565
93565
|
const _component_el_dialog = ElDialog;
|
|
93566
93566
|
|
|
93567
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div",
|
|
93567
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", echartsvue_type_template_id_64f322f8_scoped_true_hoisted_1, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("div", {
|
|
93568
93568
|
ref: el => $setup.setRef(el),
|
|
93569
93569
|
id: $props.id,
|
|
93570
93570
|
class: "jt-chart-vm"
|
|
93571
|
-
}, null, 8,
|
|
93571
|
+
}, null, 8, echartsvue_type_template_id_64f322f8_scoped_true_hoisted_2), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementVNode)("span", {
|
|
93572
93572
|
class: "jtIcon iconpeizhi41 eitid-icon",
|
|
93573
93573
|
onClick: _cache[0] || (_cache[0] = $event => $setup.dialogVisible = true)
|
|
93574
93574
|
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_dialog, {
|
|
@@ -93651,21 +93651,21 @@ function echartsvue_type_template_id_08e8c55e_scoped_true_render(_ctx, _cache, $
|
|
|
93651
93651
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => $setup.gridLineConfig.lineType = $event),
|
|
93652
93652
|
label: "solid"
|
|
93653
93653
|
}, {
|
|
93654
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93654
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_3]),
|
|
93655
93655
|
_: 1
|
|
93656
93656
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
93657
93657
|
modelValue: $setup.gridLineConfig.lineType,
|
|
93658
93658
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => $setup.gridLineConfig.lineType = $event),
|
|
93659
93659
|
label: "dashed"
|
|
93660
93660
|
}, {
|
|
93661
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93661
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_4]),
|
|
93662
93662
|
_: 1
|
|
93663
93663
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
93664
93664
|
modelValue: $setup.gridLineConfig.lineType,
|
|
93665
93665
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => $setup.gridLineConfig.lineType = $event),
|
|
93666
93666
|
label: "dotted"
|
|
93667
93667
|
}, {
|
|
93668
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93668
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_5]),
|
|
93669
93669
|
_: 1
|
|
93670
93670
|
}, 8, ["modelValue"])]),
|
|
93671
93671
|
_: 1
|
|
@@ -93712,21 +93712,21 @@ function echartsvue_type_template_id_08e8c55e_scoped_true_render(_ctx, _cache, $
|
|
|
93712
93712
|
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => $setup.tickLineConfig.lineType = $event),
|
|
93713
93713
|
label: "solid"
|
|
93714
93714
|
}, {
|
|
93715
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93715
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_6]),
|
|
93716
93716
|
_: 1
|
|
93717
93717
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
93718
93718
|
modelValue: $setup.tickLineConfig.lineType,
|
|
93719
93719
|
"onUpdate:modelValue": _cache[16] || (_cache[16] = $event => $setup.tickLineConfig.lineType = $event),
|
|
93720
93720
|
label: "dashed"
|
|
93721
93721
|
}, {
|
|
93722
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93722
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_7]),
|
|
93723
93723
|
_: 1
|
|
93724
93724
|
}, 8, ["modelValue"]), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createVNode)(_component_el_radio, {
|
|
93725
93725
|
modelValue: $setup.tickLineConfig.lineType,
|
|
93726
93726
|
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => $setup.tickLineConfig.lineType = $event),
|
|
93727
93727
|
label: "dotted"
|
|
93728
93728
|
}, {
|
|
93729
|
-
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [
|
|
93729
|
+
default: (0,external_commonjs_vue_commonjs2_vue_root_Vue_.withCtx)(() => [echartsvue_type_template_id_64f322f8_scoped_true_hoisted_8]),
|
|
93730
93730
|
_: 1
|
|
93731
93731
|
}, 8, ["modelValue"])]),
|
|
93732
93732
|
_: 1
|
|
@@ -93736,7 +93736,7 @@ function echartsvue_type_template_id_08e8c55e_scoped_true_render(_ctx, _cache, $
|
|
|
93736
93736
|
_: 1
|
|
93737
93737
|
}, 8, ["modelValue"])]);
|
|
93738
93738
|
}
|
|
93739
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=
|
|
93739
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=template&id=64f322f8&scoped=true
|
|
93740
93740
|
/* unplugin-vue-components disabled */
|
|
93741
93741
|
;// CONCATENATED MODULE: ./node_modules/echarts/node_modules/tslib/tslib.es6.js
|
|
93742
93742
|
|
|
@@ -212263,12 +212263,17 @@ function getInterval(min, max, total) {
|
|
|
212263
212263
|
maxAndMinLevel: {
|
|
212264
212264
|
type: Number,
|
|
212265
212265
|
default: 0.05
|
|
212266
|
+
},
|
|
212267
|
+
//自定义事件间隔
|
|
212268
|
+
customIntrerVal: {
|
|
212269
|
+
type: Number
|
|
212266
212270
|
}
|
|
212267
212271
|
},
|
|
212268
212272
|
|
|
212269
212273
|
setup(props) {
|
|
212270
212274
|
const {
|
|
212271
|
-
timeRange
|
|
212275
|
+
timeRange,
|
|
212276
|
+
customIntrerVal
|
|
212272
212277
|
} = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toRefs)(props);
|
|
212273
212278
|
let prevTime = 0;
|
|
212274
212279
|
const activeRef = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(null);
|
|
@@ -212278,14 +212283,18 @@ function getInterval(min, max, total) {
|
|
|
212278
212283
|
activeRef.value = el;
|
|
212279
212284
|
}
|
|
212280
212285
|
|
|
212281
|
-
const {
|
|
212282
|
-
minVal,
|
|
212283
|
-
maxVal
|
|
212284
|
-
} = getMaxAndMinValue();
|
|
212285
212286
|
let chartVM;
|
|
212286
212287
|
let option;
|
|
212288
|
+
let tempArray = [];
|
|
212289
|
+
props.data.forEach(item => {
|
|
212290
|
+
tempArray = tempArray.concat(item.data);
|
|
212291
|
+
});
|
|
212287
212292
|
|
|
212288
|
-
if (timeRange.value) {
|
|
212293
|
+
if (timeRange.value && tempArray.length != 0) {
|
|
212294
|
+
const {
|
|
212295
|
+
minVal,
|
|
212296
|
+
maxVal
|
|
212297
|
+
} = getMaxAndMinValue();
|
|
212289
212298
|
option = {
|
|
212290
212299
|
xAxis: {
|
|
212291
212300
|
type: "value",
|
|
@@ -212367,6 +212376,13 @@ function getInterval(min, max, total) {
|
|
|
212367
212376
|
}
|
|
212368
212377
|
}
|
|
212369
212378
|
},
|
|
212379
|
+
dataZoom: [{
|
|
212380
|
+
type: 'inside',
|
|
212381
|
+
xAxisIndex: 0
|
|
212382
|
+
}, {
|
|
212383
|
+
type: 'slider',
|
|
212384
|
+
xAxisIndex: 0
|
|
212385
|
+
}],
|
|
212370
212386
|
series: props.data
|
|
212371
212387
|
};
|
|
212372
212388
|
} else {
|
|
@@ -212386,15 +212402,19 @@ function getInterval(min, max, total) {
|
|
|
212386
212402
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
212387
212403
|
chartVM = echarts_init(document.getElementById(props.id));
|
|
212388
212404
|
|
|
212389
|
-
if (timeRange.value) {
|
|
212405
|
+
if (timeRange.value && tempArray.length != 0) {
|
|
212390
212406
|
computedTimeInterval(timeRange.value);
|
|
212391
212407
|
} else {
|
|
212392
212408
|
chartVM.setOption(option);
|
|
212393
212409
|
}
|
|
212410
|
+
|
|
212411
|
+
window.addEventListener('resize', () => {
|
|
212412
|
+
chartVM.resize();
|
|
212413
|
+
});
|
|
212394
212414
|
}); //监听外部时间选择
|
|
212395
212415
|
|
|
212396
212416
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(timeRange, newVal => {
|
|
212397
|
-
if (chartVM) {
|
|
212417
|
+
if (chartVM && tempArray.length != 0) {
|
|
212398
212418
|
prevTime = 0;
|
|
212399
212419
|
computedTimeInterval(newVal);
|
|
212400
212420
|
}
|
|
@@ -212432,12 +212452,19 @@ function getInterval(min, max, total) {
|
|
|
212432
212452
|
function computedTimeInterval(time) {
|
|
212433
212453
|
const minTime = new Date(time[0]).getTime();
|
|
212434
212454
|
const maxTime = new Date(time[1]).getTime();
|
|
212435
|
-
|
|
212436
|
-
|
|
212437
|
-
|
|
212455
|
+
|
|
212456
|
+
if (!customIntrerVal.value) {
|
|
212457
|
+
const total = (activeRef.value.offsetWidth - 120) / 60;
|
|
212458
|
+
const timeInterVal = getInterval(minTime, maxTime, total);
|
|
212459
|
+
option.xAxis.interval = timeInterVal.interval;
|
|
212460
|
+
option.xAxis.name = timeInterVal.xAxisLabel;
|
|
212461
|
+
} else {
|
|
212462
|
+
option.xAxis.interval = customIntrerVal.value.interval;
|
|
212463
|
+
option.xAxis.name = customIntrerVal.value.xName;
|
|
212464
|
+
}
|
|
212465
|
+
|
|
212438
212466
|
option.xAxis.min = minTime;
|
|
212439
212467
|
option.xAxis.max = maxTime;
|
|
212440
|
-
option.xAxis.name = timeInterVal.xAxisLabel;
|
|
212441
212468
|
option.legend.data = option.series.map(item => item.name);
|
|
212442
212469
|
setGridLine(gridLineConfig);
|
|
212443
212470
|
chartVM.setOption(option, true);
|
|
@@ -212509,12 +212536,7 @@ function getInterval(min, max, total) {
|
|
|
212509
212536
|
|
|
212510
212537
|
|
|
212511
212538
|
function getMaxAndMinValue() {
|
|
212512
|
-
let minVal,
|
|
212513
|
-
maxVal,
|
|
212514
|
-
tempArray = [];
|
|
212515
|
-
props.data.forEach(item => {
|
|
212516
|
-
tempArray = tempArray.concat(item.data);
|
|
212517
|
-
});
|
|
212539
|
+
let minVal, maxVal;
|
|
212518
212540
|
const tempArraySort = tempArray.sort((a, b) => {
|
|
212519
212541
|
return a[1] - b[1];
|
|
212520
212542
|
});
|
|
@@ -212540,10 +212562,10 @@ function getInterval(min, max, total) {
|
|
|
212540
212562
|
});
|
|
212541
212563
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=script&lang=js
|
|
212542
212564
|
/* unplugin-vue-components disabled */
|
|
212543
|
-
;// 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=
|
|
212565
|
+
;// 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=64f322f8&lang=scss&scoped=true
|
|
212544
212566
|
/* unplugin-vue-components disabled */// extracted by mini-css-extract-plugin
|
|
212545
212567
|
|
|
212546
|
-
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=
|
|
212568
|
+
;// CONCATENATED MODULE: ./packages/echarts/index.vue?vue&type=style&index=0&id=64f322f8&lang=scss&scoped=true
|
|
212547
212569
|
/* unplugin-vue-components disabled */
|
|
212548
212570
|
;// CONCATENATED MODULE: ./packages/echarts/index.vue
|
|
212549
212571
|
/* unplugin-vue-components disabled */
|
|
@@ -212553,7 +212575,7 @@ function getInterval(min, max, total) {
|
|
|
212553
212575
|
;
|
|
212554
212576
|
|
|
212555
212577
|
|
|
212556
|
-
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',
|
|
212578
|
+
const echarts_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(echartsvue_type_script_lang_js, [['render',echartsvue_type_template_id_64f322f8_scoped_true_render],['__scopeId',"data-v-64f322f8"]])
|
|
212557
212579
|
|
|
212558
212580
|
/* harmony default export */ var echarts = (echarts_exports_);
|
|
212559
212581
|
;// CONCATENATED MODULE: ./packages/echarts/index.js
|