@ecan-bi/datav 1.0.69 → 1.0.71

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
  }
@@ -2435,10 +2435,14 @@
2435
2435
  const len = params.length;
2436
2436
  for (let i = 0; i < len; i++) {
2437
2437
  const param = params[i];
2438
+ if (param == null || param === "")
2439
+ continue;
2438
2440
  const keyAndValue = param.split("=");
2439
- const key = keyAndValue[0];
2440
- const value = keyAndValue[1];
2441
- window.config[key] = value;
2441
+ if (Array.isArray(keyAndValue)) {
2442
+ const key = keyAndValue[0];
2443
+ const value = keyAndValue[1];
2444
+ window.config[key] = value;
2445
+ }
2442
2446
  }
2443
2447
  };
2444
2448
  const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
@@ -4825,7 +4829,7 @@
4825
4829
  const click = emitEvent("click", (e) => {
4826
4830
  const id = props2.id;
4827
4831
  const modal = getGlobalModel(id);
4828
- setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
4832
+ setGlobalModel(id, { ...modal, RECORD: e.data });
4829
4833
  });
4830
4834
  const { setRequest } = vue.inject(REQUEST_MODEL, {
4831
4835
  setRequest: (requestFn, sortNum) => void 0
@@ -5096,7 +5100,6 @@
5096
5100
  const handleDataset = (data = [], dataFieldNames) => {
5097
5101
  const { name: x = "name", value: y = "value" } = dataFieldNames || {};
5098
5102
  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
5103
  };
5101
5104
  vue.watch(() => props2.data, (value) => {
5102
5105
  if (props2.dataType === "static" || vue.unref(pageMode) === "design") {