@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.umd.js CHANGED
@@ -5346,7 +5346,12 @@
5346
5346
  toolboxTop: "top",
5347
5347
  toolboxIconStyleBorderColor: "#666",
5348
5348
  toolboxDownloadUrl: "",
5349
- toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
5349
+ toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
5350
+ areaStyleOpacity: 0,
5351
+ symbolSize: 4,
5352
+ lineStyleWidth: 2,
5353
+ smooth: false,
5354
+ barWidth: "40%"
5350
5355
  };
5351
5356
  const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
5352
5357
  const comboGraphEvents = ["refreshData", "click"];
@@ -5482,22 +5487,42 @@
5482
5487
  }
5483
5488
  dimensions.value = chartData.dimensions;
5484
5489
  const dataset = chartData.dataset;
5485
- console.log("dataset", dataset);
5486
5490
  const temp = [];
5487
5491
  const len = dataset.length;
5488
5492
  const seriesTypes = props2.seriesTypes;
5489
5493
  for (let i = 0; i < len; i++) {
5490
5494
  const seriesType = seriesTypes[i];
5491
- temp.push({
5492
- type: seriesType == null ? void 0 : seriesType.type,
5493
- yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
5495
+ const { type, axisIndex } = seriesType || {};
5496
+ let series2 = {
5497
+ type,
5498
+ yAxisIndex: axisIndex,
5494
5499
  tooltip: {
5495
5500
  valueFormatter(value) {
5496
5501
  return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
5497
5502
  }
5498
5503
  },
5499
5504
  ...dataset[i]
5500
- });
5505
+ };
5506
+ if (type === "line") {
5507
+ series2 = {
5508
+ ...series2,
5509
+ symbolSize: props2.symbolSize,
5510
+ smooth: props2.smooth,
5511
+ areaStyle: {
5512
+ opacity: props2.areaStyleOpacity
5513
+ },
5514
+ lineStyle: {
5515
+ width: props2.lineStyleWidth
5516
+ }
5517
+ };
5518
+ }
5519
+ if (type === "bar") {
5520
+ series2 = {
5521
+ ...series2,
5522
+ barWidth: props2.barWidth
5523
+ };
5524
+ }
5525
+ temp.push(series2);
5501
5526
  }
5502
5527
  series.value = temp;
5503
5528
  };
@@ -5519,7 +5544,7 @@
5519
5544
  }
5520
5545
  series.value = temp;
5521
5546
  };
5522
- vue.watch(() => [props2.data, props2.seriesTypes], ([value]) => {
5547
+ vue.watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
5523
5548
  if (props2.dataType === "static" || vue.unref(pageMode) === "design") {
5524
5549
  handleDataset(value);
5525
5550
  }
@@ -5990,7 +6015,7 @@
5990
6015
  type: "ecanTabs",
5991
6016
  name: "\u6807\u7B7E\u9875",
5992
6017
  keyName: "\u6807\u7B7E\u9875",
5993
- width: "200px",
6018
+ width: "500px",
5994
6019
  height: "400px",
5995
6020
  tabFontSize: "14px",
5996
6021
  backgroundColor: "",