@ecan-bi/datav 1.0.71 → 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 === "")
|
|
@@ -5474,6 +5476,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
5474
5476
|
}
|
|
5475
5477
|
dimensions.value = chartData.dimensions;
|
|
5476
5478
|
const dataset = chartData.dataset;
|
|
5479
|
+
console.log("dataset", dataset);
|
|
5477
5480
|
const temp = [];
|
|
5478
5481
|
const len = dataset.length;
|
|
5479
5482
|
const seriesTypes = props2.seriesTypes;
|
|
@@ -5484,7 +5487,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
5484
5487
|
yAxisIndex: seriesType == null ? void 0 : seriesType.axisIndex,
|
|
5485
5488
|
tooltip: {
|
|
5486
5489
|
valueFormatter(value) {
|
|
5487
|
-
return useValueFormatter(
|
|
5490
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5488
5491
|
}
|
|
5489
5492
|
},
|
|
5490
5493
|
...dataset[i]
|