@ecan-bi/datav 1.0.72 → 1.0.73

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
@@ -5340,7 +5340,12 @@ const comboGraphProps = {
5340
5340
  toolboxTop: "top",
5341
5341
  toolboxIconStyleBorderColor: "#666",
5342
5342
  toolboxDownloadUrl: "",
5343
- toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
5343
+ toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
5344
+ areaStyleOpacity: 0,
5345
+ symbolSize: 4,
5346
+ lineStyleWidth: 2,
5347
+ smooth: false,
5348
+ barWidth: "40%"
5344
5349
  };
5345
5350
  const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
5346
5351
  const comboGraphEvents = ["refreshData", "click"];
@@ -5476,22 +5481,42 @@ const _sfc_main$6 = defineComponent({
5476
5481
  }
5477
5482
  dimensions.value = chartData.dimensions;
5478
5483
  const dataset = chartData.dataset;
5479
- console.log("dataset", dataset);
5480
5484
  const temp = [];
5481
5485
  const len = dataset.length;
5482
5486
  const seriesTypes = props2.seriesTypes;
5483
5487
  for (let i = 0; i < len; i++) {
5484
5488
  const seriesType = seriesTypes[i];
5485
- temp.push({
5486
- type: seriesType == null ? void 0 : seriesType.type,
5487
- yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
5489
+ const { type, axisIndex } = seriesType || {};
5490
+ let series2 = {
5491
+ type,
5492
+ yAxisIndex: axisIndex,
5488
5493
  tooltip: {
5489
5494
  valueFormatter(value) {
5490
5495
  return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5491
5496
  }
5492
5497
  },
5493
5498
  ...dataset[i]
5494
- });
5499
+ };
5500
+ if (type === "line") {
5501
+ series2 = {
5502
+ ...series2,
5503
+ symbolSize: props2.symbolSize,
5504
+ smooth: props2.smooth,
5505
+ areaStyle: {
5506
+ opacity: props2.areaStyleOpacity
5507
+ },
5508
+ lineStyle: {
5509
+ width: props2.lineStyleWidth
5510
+ }
5511
+ };
5512
+ }
5513
+ if (type === "bar") {
5514
+ series2 = {
5515
+ ...series2,
5516
+ barWidth: props2.barWidth
5517
+ };
5518
+ }
5519
+ temp.push(series2);
5495
5520
  }
5496
5521
  series.value = temp;
5497
5522
  };
@@ -5513,7 +5538,7 @@ const _sfc_main$6 = defineComponent({
5513
5538
  }
5514
5539
  series.value = temp;
5515
5540
  };
5516
- watch(() => [props2.data, props2.seriesTypes], ([value]) => {
5541
+ watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
5517
5542
  if (props2.dataType === "static" || unref(pageMode) === "design") {
5518
5543
  handleDataset(value);
5519
5544
  }
@@ -5984,7 +6009,7 @@ const tabsProps = {
5984
6009
  type: "ecanTabs",
5985
6010
  name: "\u6807\u7B7E\u9875",
5986
6011
  keyName: "\u6807\u7B7E\u9875",
5987
- width: "200px",
6012
+ width: "500px",
5988
6013
  height: "400px",
5989
6014
  tabFontSize: "14px",
5990
6015
  backgroundColor: "",