@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.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
  }
@@ -2429,10 +2429,14 @@ const useHrefParamsToGlobalVariables = () => {
2429
2429
  const len = params.length;
2430
2430
  for (let i = 0; i < len; i++) {
2431
2431
  const param = params[i];
2432
+ if (param == null || param === "")
2433
+ continue;
2432
2434
  const keyAndValue = param.split("=");
2433
- const key = keyAndValue[0];
2434
- const value = keyAndValue[1];
2435
- window.config[key] = value;
2435
+ if (Array.isArray(keyAndValue)) {
2436
+ const key = keyAndValue[0];
2437
+ const value = keyAndValue[1];
2438
+ window.config[key] = value;
2439
+ }
2436
2440
  }
2437
2441
  };
2438
2442
  const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
@@ -4819,7 +4823,7 @@ const _sfc_main$9 = defineComponent({
4819
4823
  const click = emitEvent("click", (e) => {
4820
4824
  const id = props2.id;
4821
4825
  const modal = getGlobalModel(id);
4822
- setGlobalModel(id, { ...modal, RECORD: e == null ? void 0 : e.data });
4826
+ setGlobalModel(id, { ...modal, RECORD: e.data });
4823
4827
  });
4824
4828
  const { setRequest } = inject(REQUEST_MODEL, {
4825
4829
  setRequest: (requestFn, sortNum) => void 0
@@ -5090,7 +5094,6 @@ const _sfc_main$8 = defineComponent({
5090
5094
  const handleDataset = (data = [], dataFieldNames) => {
5091
5095
  const { name: x = "name", value: y = "value" } = dataFieldNames || {};
5092
5096
  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
5097
  };
5095
5098
  watch(() => props2.data, (value) => {
5096
5099
  if (props2.dataType === "static" || unref(pageMode) === "design") {