@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.umd.js CHANGED
@@ -1777,10 +1777,10 @@
1777
1777
  const typesLen = types.length;
1778
1778
  if (dataLen === 1) {
1779
1779
  const vs = [];
1780
- for (let j = 0; j < typesLen; j++) {
1781
- const type = types[j];
1780
+ for (let i = 0; i < typesLen; i++) {
1781
+ const type = types[i];
1782
1782
  const { label, value } = type;
1783
- const v = data[0][value];
1783
+ const v = { ...data[0], value: data[0][value] };
1784
1784
  set.add(label);
1785
1785
  vs.push(v);
1786
1786
  }
@@ -1794,13 +1794,13 @@
1794
1794
  for (let j = 0; j < typesLen; j++) {
1795
1795
  const type = types[j];
1796
1796
  const { label, value } = type;
1797
- const t = item[value];
1797
+ const v = { ...item, value: item[value] };
1798
1798
  if (map.has(label)) {
1799
1799
  const m = map.get(label);
1800
- m.push(t);
1800
+ m.push(v);
1801
1801
  map.set(label, m);
1802
1802
  } else {
1803
- map.set(label, [t]);
1803
+ map.set(label, [v]);
1804
1804
  }
1805
1805
  }
1806
1806
  }
@@ -4825,7 +4825,7 @@
4825
4825
  const click = emitEvent("click", (e) => {
4826
4826
  const id = props2.id;
4827
4827
  const modal = getGlobalModel(id);
4828
- setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
4828
+ setGlobalModel(id, { ...modal, RECORD: e.data });
4829
4829
  });
4830
4830
  const { setRequest } = vue.inject(REQUEST_MODEL, {
4831
4831
  setRequest: (requestFn, sortNum) => void 0
@@ -5096,7 +5096,6 @@
5096
5096
  const handleDataset = (data = [], dataFieldNames) => {
5097
5097
  const { name: x = "name", value: y = "value" } = dataFieldNames || {};
5098
5098
  dataset.value = data.map((item) => ({ value: [item[x], item[y]], record: item }));
5099
- console.log(data.map((item) => ({ value: [item[x], item[y]], record: item })));
5100
5099
  };
5101
5100
  vue.watch(() => props2.data, (value) => {
5102
5101
  if (props2.dataType === "static" || vue.unref(pageMode) === "design") {