@ecan-bi/datav 1.0.71 → 1.0.73
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 +38 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +38 -10
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
- package/types/_utils/hooks/useValueFormatter.d.ts +1 -1
- package/types/graph/combo-graph/ComboGraph.vue.d.ts +70 -0
- package/types/graph/combo-graph/index.d.ts +70 -0
- package/types/graph/combo-graph/props.d.ts +40 -0
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 === "")
|
|
@@ -5344,7 +5346,12 @@
|
|
|
5344
5346
|
toolboxTop: "top",
|
|
5345
5347
|
toolboxIconStyleBorderColor: "#666",
|
|
5346
5348
|
toolboxDownloadUrl: "",
|
|
5347
|
-
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
|
|
5349
|
+
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
|
|
5350
|
+
areaStyleOpacity: 0,
|
|
5351
|
+
symbolSize: 4,
|
|
5352
|
+
lineStyleWidth: 2,
|
|
5353
|
+
smooth: false,
|
|
5354
|
+
barWidth: "40%"
|
|
5348
5355
|
};
|
|
5349
5356
|
const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
|
|
5350
5357
|
const comboGraphEvents = ["refreshData", "click"];
|
|
@@ -5485,16 +5492,37 @@
|
|
|
5485
5492
|
const seriesTypes = props2.seriesTypes;
|
|
5486
5493
|
for (let i = 0; i < len; i++) {
|
|
5487
5494
|
const seriesType = seriesTypes[i];
|
|
5488
|
-
|
|
5489
|
-
|
|
5490
|
-
|
|
5495
|
+
const { type, axisIndex } = seriesType || {};
|
|
5496
|
+
let series2 = {
|
|
5497
|
+
type,
|
|
5498
|
+
yAxisIndex: axisIndex,
|
|
5491
5499
|
tooltip: {
|
|
5492
5500
|
valueFormatter(value) {
|
|
5493
|
-
return useValueFormatter(
|
|
5501
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5494
5502
|
}
|
|
5495
5503
|
},
|
|
5496
5504
|
...dataset[i]
|
|
5497
|
-
}
|
|
5505
|
+
};
|
|
5506
|
+
if (type === "line") {
|
|
5507
|
+
series2 = {
|
|
5508
|
+
...series2,
|
|
5509
|
+
symbolSize: props2.symbolSize,
|
|
5510
|
+
smooth: props2.smooth,
|
|
5511
|
+
areaStyle: {
|
|
5512
|
+
opacity: props2.areaStyleOpacity
|
|
5513
|
+
},
|
|
5514
|
+
lineStyle: {
|
|
5515
|
+
width: props2.lineStyleWidth
|
|
5516
|
+
}
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
5519
|
+
if (type === "bar") {
|
|
5520
|
+
series2 = {
|
|
5521
|
+
...series2,
|
|
5522
|
+
barWidth: props2.barWidth
|
|
5523
|
+
};
|
|
5524
|
+
}
|
|
5525
|
+
temp.push(series2);
|
|
5498
5526
|
}
|
|
5499
5527
|
series.value = temp;
|
|
5500
5528
|
};
|
|
@@ -5516,7 +5544,7 @@
|
|
|
5516
5544
|
}
|
|
5517
5545
|
series.value = temp;
|
|
5518
5546
|
};
|
|
5519
|
-
vue.watch(() => [props2.data, props2.seriesTypes], ([value]) => {
|
|
5547
|
+
vue.watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
|
|
5520
5548
|
if (props2.dataType === "static" || vue.unref(pageMode) === "design") {
|
|
5521
5549
|
handleDataset(value);
|
|
5522
5550
|
}
|
|
@@ -5987,7 +6015,7 @@
|
|
|
5987
6015
|
type: "ecanTabs",
|
|
5988
6016
|
name: "\u6807\u7B7E\u9875",
|
|
5989
6017
|
keyName: "\u6807\u7B7E\u9875",
|
|
5990
|
-
width: "
|
|
6018
|
+
width: "500px",
|
|
5991
6019
|
height: "400px",
|
|
5992
6020
|
tabFontSize: "14px",
|
|
5993
6021
|
backgroundColor: "",
|