@ecan-bi/datav 1.0.72 → 1.0.74

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/dist/index.es.js CHANGED
@@ -1,3 +1,4 @@
1
+ /*! @ecan-bi/datav@1.0.74 */
1
2
  var _a, _b, _c;
2
3
  import { watch, inject, computed, unref, watchEffect, defineComponent, shallowRef, toRefs, onMounted, onUnmounted, h, nextTick, createVNode, resolveComponent, openBlock, createElementBlock, createBlock, renderSlot, withCtx, ref, normalizeStyle, createCommentVNode, provide, toDisplayString, Fragment, renderList, createElementVNode, normalizeClass, pushScopeId, popScopeId, createSlots, resolveDynamicComponent, mergeProps, withModifiers, withDirectives, vShow } from "vue";
3
4
  import { throttle, init, use, registerMap } from "echarts/core";
@@ -5340,7 +5341,12 @@ const comboGraphProps = {
5340
5341
  toolboxTop: "top",
5341
5342
  toolboxIconStyleBorderColor: "#666",
5342
5343
  toolboxDownloadUrl: "",
5343
- toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
5344
+ toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
5345
+ areaStyleOpacity: 0,
5346
+ symbolSize: 4,
5347
+ lineStyleWidth: 2,
5348
+ smooth: false,
5349
+ barWidth: "40%"
5344
5350
  };
5345
5351
  const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
5346
5352
  const comboGraphEvents = ["refreshData", "click"];
@@ -5476,22 +5482,42 @@ const _sfc_main$6 = defineComponent({
5476
5482
  }
5477
5483
  dimensions.value = chartData.dimensions;
5478
5484
  const dataset = chartData.dataset;
5479
- console.log("dataset", dataset);
5480
5485
  const temp = [];
5481
5486
  const len = dataset.length;
5482
5487
  const seriesTypes = props2.seriesTypes;
5483
5488
  for (let i = 0; i < len; i++) {
5484
5489
  const seriesType = seriesTypes[i];
5485
- temp.push({
5486
- type: seriesType == null ? void 0 : seriesType.type,
5487
- yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
5490
+ const { type, axisIndex } = seriesType || {};
5491
+ let series2 = {
5492
+ type,
5493
+ yAxisIndex: axisIndex,
5488
5494
  tooltip: {
5489
5495
  valueFormatter(value) {
5490
5496
  return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5491
5497
  }
5492
5498
  },
5493
5499
  ...dataset[i]
5494
- });
5500
+ };
5501
+ if (type === "line") {
5502
+ series2 = {
5503
+ ...series2,
5504
+ symbolSize: props2.symbolSize,
5505
+ smooth: props2.smooth,
5506
+ areaStyle: {
5507
+ opacity: props2.areaStyleOpacity
5508
+ },
5509
+ lineStyle: {
5510
+ width: props2.lineStyleWidth
5511
+ }
5512
+ };
5513
+ }
5514
+ if (type === "bar") {
5515
+ series2 = {
5516
+ ...series2,
5517
+ barWidth: props2.barWidth
5518
+ };
5519
+ }
5520
+ temp.push(series2);
5495
5521
  }
5496
5522
  series.value = temp;
5497
5523
  };
@@ -5513,7 +5539,7 @@ const _sfc_main$6 = defineComponent({
5513
5539
  }
5514
5540
  series.value = temp;
5515
5541
  };
5516
- watch(() => [props2.data, props2.seriesTypes], ([value]) => {
5542
+ watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
5517
5543
  if (props2.dataType === "static" || unref(pageMode) === "design") {
5518
5544
  handleDataset(value);
5519
5545
  }
@@ -5984,7 +6010,7 @@ const tabsProps = {
5984
6010
  type: "ecanTabs",
5985
6011
  name: "\u6807\u7B7E\u9875",
5986
6012
  keyName: "\u6807\u7B7E\u9875",
5987
- width: "200px",
6013
+ width: "500px",
5988
6014
  height: "400px",
5989
6015
  tabFontSize: "14px",
5990
6016
  backgroundColor: "",