@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.es.js
CHANGED
|
@@ -2203,10 +2203,12 @@ const useRequestDiagramData = (props2) => {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
};
|
|
2205
2205
|
};
|
|
2206
|
-
const useValueFormatter = (formatter
|
|
2206
|
+
const useValueFormatter = (formatter, value) => {
|
|
2207
|
+
if (formatter == null)
|
|
2208
|
+
return value;
|
|
2207
2209
|
const variables = formatter.match(/\{.*\}/g);
|
|
2208
2210
|
if (variables == null || variables.length === 0)
|
|
2209
|
-
return
|
|
2211
|
+
return value;
|
|
2210
2212
|
for (let i = 0; i < variables.length; i++) {
|
|
2211
2213
|
const variable = variables[i];
|
|
2212
2214
|
if (variable == null || variable === "")
|
|
@@ -2429,10 +2431,14 @@ const useHrefParamsToGlobalVariables = () => {
|
|
|
2429
2431
|
const len = params.length;
|
|
2430
2432
|
for (let i = 0; i < len; i++) {
|
|
2431
2433
|
const param = params[i];
|
|
2434
|
+
if (param == null || param === "")
|
|
2435
|
+
continue;
|
|
2432
2436
|
const keyAndValue = param.split("=");
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2437
|
+
if (Array.isArray(keyAndValue)) {
|
|
2438
|
+
const key = keyAndValue[0];
|
|
2439
|
+
const value = keyAndValue[1];
|
|
2440
|
+
window.config[key] = value;
|
|
2441
|
+
}
|
|
2436
2442
|
}
|
|
2437
2443
|
};
|
|
2438
2444
|
const PageConfig_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
@@ -5470,6 +5476,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
5470
5476
|
}
|
|
5471
5477
|
dimensions.value = chartData.dimensions;
|
|
5472
5478
|
const dataset = chartData.dataset;
|
|
5479
|
+
console.log("dataset", dataset);
|
|
5473
5480
|
const temp = [];
|
|
5474
5481
|
const len = dataset.length;
|
|
5475
5482
|
const seriesTypes = props2.seriesTypes;
|
|
@@ -5480,7 +5487,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
5480
5487
|
yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
|
|
5481
5488
|
tooltip: {
|
|
5482
5489
|
valueFormatter(value) {
|
|
5483
|
-
return useValueFormatter(
|
|
5490
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5484
5491
|
}
|
|
5485
5492
|
},
|
|
5486
5493
|
...dataset[i]
|