@ecan-bi/datav 1.0.68 → 1.0.70

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
@@ -1771,10 +1771,10 @@ const useTransformChartDataByAttrKey = (data = [], dataFieldNames) => {
1771
1771
  const typesLen = types.length;
1772
1772
  if (dataLen === 1) {
1773
1773
  const vs = [];
1774
- for (let j = 0; j < typesLen; j++) {
1775
- const type = types[j];
1774
+ for (let i = 0; i < typesLen; i++) {
1775
+ const type = types[i];
1776
1776
  const { label, value } = type;
1777
- const v = data[0][value];
1777
+ const v = { ...data[0], value: data[0][value] };
1778
1778
  set.add(label);
1779
1779
  vs.push(v);
1780
1780
  }
@@ -1788,13 +1788,13 @@ const useTransformChartDataByAttrKey = (data = [], dataFieldNames) => {
1788
1788
  for (let j = 0; j < typesLen; j++) {
1789
1789
  const type = types[j];
1790
1790
  const { label, value } = type;
1791
- const t = item[value];
1791
+ const v = { ...item, value: item[value] };
1792
1792
  if (map.has(label)) {
1793
1793
  const m = map.get(label);
1794
- m.push(t);
1794
+ m.push(v);
1795
1795
  map.set(label, m);
1796
1796
  } else {
1797
- map.set(label, [t]);
1797
+ map.set(label, [v]);
1798
1798
  }
1799
1799
  }
1800
1800
  }
@@ -4531,6 +4531,9 @@ const barProps = {
4531
4531
  xAxisSplitLineShow: true,
4532
4532
  xAxisSplitLineStyleColor: "#333",
4533
4533
  xAxisLabelColor: "#333",
4534
+ xAxisLabelWidth: void 0,
4535
+ xAxisLabelRotate: 0,
4536
+ xAxisLabelOverflow: "none",
4534
4537
  xAxisLineStyleColor: "#333",
4535
4538
  xAxisTickShow: true,
4536
4539
  yAxisSplitLineShow: true,
@@ -4684,7 +4687,11 @@ const _sfc_main$9 = defineComponent({
4684
4687
  }
4685
4688
  },
4686
4689
  axisLabel: {
4687
- color: props2.xAxisLabelColor
4690
+ color: props2.xAxisLabelColor,
4691
+ interval: 0,
4692
+ rotate: props2.xAxisLabelRotate,
4693
+ width: props2.xAxisLabelWidth,
4694
+ overflow: props2.xAxisLabelOverflow
4688
4695
  },
4689
4696
  axisLine: {
4690
4697
  lineStyle: {
@@ -4812,7 +4819,7 @@ const _sfc_main$9 = defineComponent({
4812
4819
  const click = emitEvent("click", (e) => {
4813
4820
  const id = props2.id;
4814
4821
  const modal = getGlobalModel(id);
4815
- setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
4822
+ setGlobalModel(id, { ...modal, RECORD: e.data });
4816
4823
  });
4817
4824
  const { setRequest } = inject(REQUEST_MODEL, {
4818
4825
  setRequest: (requestFn, sortNum) => void 0
@@ -5083,7 +5090,6 @@ const _sfc_main$8 = defineComponent({
5083
5090
  const handleDataset = (data = [], dataFieldNames) => {
5084
5091
  const { name: x = "name", value: y = "value" } = dataFieldNames || {};
5085
5092
  dataset.value = data.map((item) => ({ value: [item[x], item[y]], record: item }));
5086
- console.log(data.map((item) => ({ value: [item[x], item[y]], record: item })));
5087
5093
  };
5088
5094
  watch(() => props2.data, (value) => {
5089
5095
  if (props2.dataType === "static" || unref(pageMode) === "design") {