@ecan-bi/datav 1.0.69 → 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
  }
@@ -4819,7 +4819,7 @@ const _sfc_main$9 = defineComponent({
4819
4819
  const click = emitEvent("click", (e) => {
4820
4820
  const id = props2.id;
4821
4821
  const modal = getGlobalModel(id);
4822
- setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
4822
+ setGlobalModel(id, { ...modal, RECORD: e.data });
4823
4823
  });
4824
4824
  const { setRequest } = inject(REQUEST_MODEL, {
4825
4825
  setRequest: (requestFn, sortNum) => void 0
@@ -5090,7 +5090,6 @@ const _sfc_main$8 = defineComponent({
5090
5090
  const handleDataset = (data = [], dataFieldNames) => {
5091
5091
  const { name: x = "name", value: y = "value" } = dataFieldNames || {};
5092
5092
  dataset.value = data.map((item) => ({ value: [item[x], item[y]], record: item }));
5093
- console.log(data.map((item) => ({ value: [item[x], item[y]], record: item })));
5094
5093
  };
5095
5094
  watch(() => props2.data, (value) => {
5096
5095
  if (props2.dataType === "static" || unref(pageMode) === "design") {