@ecan-bi/datav 1.0.70 → 1.0.72
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
|
@@ -2209,10 +2209,12 @@
|
|
|
2209
2209
|
}
|
|
2210
2210
|
};
|
|
2211
2211
|
};
|
|
2212
|
-
const useValueFormatter = (formatter
|
|
2212
|
+
const useValueFormatter = (formatter, value) => {
|
|
2213
|
+
if (formatter == null)
|
|
2214
|
+
return value;
|
|
2213
2215
|
const variables = formatter.match(/\{.*\}/g);
|
|
2214
2216
|
if (variables == null || variables.length === 0)
|
|
2215
|
-
return
|
|
2217
|
+
return value;
|
|
2216
2218
|
for (let i = 0; i < variables.length; i++) {
|
|
2217
2219
|
const variable = variables[i];
|
|
2218
2220
|
if (variable == null || variable === "")
|
|
@@ -2435,10 +2437,14 @@
|
|
|
2435
2437
|
const len = params.length;
|
|
2436
2438
|
for (let i = 0; i < len; i++) {
|
|
2437
2439
|
const param = params[i];
|
|
2440
|
+
if (param == null || param === "")
|
|
2441
|
+
continue;
|
|
2438
2442
|
const keyAndValue = param.split("=");
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2443
|
+
if (Array.isArray(keyAndValue)) {
|
|
2444
|
+
const key = keyAndValue[0];
|
|
2445
|
+
const value = keyAndValue[1];
|
|
2446
|
+
window.config[key] = value;
|
|
2447
|
+
}
|
|
2442
2448
|
}
|
|
2443
2449
|
};
|
|
2444
2450
|
const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -5476,6 +5482,7 @@
|
|
|
5476
5482
|
}
|
|
5477
5483
|
dimensions.value = chartData.dimensions;
|
|
5478
5484
|
const dataset = chartData.dataset;
|
|
5485
|
+
console.log("dataset", dataset);
|
|
5479
5486
|
const temp = [];
|
|
5480
5487
|
const len = dataset.length;
|
|
5481
5488
|
const seriesTypes = props2.seriesTypes;
|
|
@@ -5486,7 +5493,7 @@
|
|
|
5486
5493
|
yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
|
|
5487
5494
|
tooltip: {
|
|
5488
5495
|
valueFormatter(value) {
|
|
5489
|
-
return useValueFormatter(
|
|
5496
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5490
5497
|
}
|
|
5491
5498
|
},
|
|
5492
5499
|
...dataset[i]
|