@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.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 === "")
|
|
@@ -5338,7 +5340,12 @@ const comboGraphProps = {
|
|
|
5338
5340
|
toolboxTop: "top",
|
|
5339
5341
|
toolboxIconStyleBorderColor: "#666",
|
|
5340
5342
|
toolboxDownloadUrl: "",
|
|
5341
|
-
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
|
|
5343
|
+
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
|
|
5344
|
+
areaStyleOpacity: 0,
|
|
5345
|
+
symbolSize: 4,
|
|
5346
|
+
lineStyleWidth: 2,
|
|
5347
|
+
smooth: false,
|
|
5348
|
+
barWidth: "40%"
|
|
5342
5349
|
};
|
|
5343
5350
|
const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
|
|
5344
5351
|
const comboGraphEvents = ["refreshData", "click"];
|
|
@@ -5479,16 +5486,37 @@ const _sfc_main$6 = defineComponent({
|
|
|
5479
5486
|
const seriesTypes = props2.seriesTypes;
|
|
5480
5487
|
for (let i = 0; i < len; i++) {
|
|
5481
5488
|
const seriesType = seriesTypes[i];
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5489
|
+
const { type, axisIndex } = seriesType || {};
|
|
5490
|
+
let series2 = {
|
|
5491
|
+
type,
|
|
5492
|
+
yAxisIndex: axisIndex,
|
|
5485
5493
|
tooltip: {
|
|
5486
5494
|
valueFormatter(value) {
|
|
5487
|
-
return useValueFormatter(
|
|
5495
|
+
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5488
5496
|
}
|
|
5489
5497
|
},
|
|
5490
5498
|
...dataset[i]
|
|
5491
|
-
}
|
|
5499
|
+
};
|
|
5500
|
+
if (type === "line") {
|
|
5501
|
+
series2 = {
|
|
5502
|
+
...series2,
|
|
5503
|
+
symbolSize: props2.symbolSize,
|
|
5504
|
+
smooth: props2.smooth,
|
|
5505
|
+
areaStyle: {
|
|
5506
|
+
opacity: props2.areaStyleOpacity
|
|
5507
|
+
},
|
|
5508
|
+
lineStyle: {
|
|
5509
|
+
width: props2.lineStyleWidth
|
|
5510
|
+
}
|
|
5511
|
+
};
|
|
5512
|
+
}
|
|
5513
|
+
if (type === "bar") {
|
|
5514
|
+
series2 = {
|
|
5515
|
+
...series2,
|
|
5516
|
+
barWidth: props2.barWidth
|
|
5517
|
+
};
|
|
5518
|
+
}
|
|
5519
|
+
temp.push(series2);
|
|
5492
5520
|
}
|
|
5493
5521
|
series.value = temp;
|
|
5494
5522
|
};
|
|
@@ -5510,7 +5538,7 @@ const _sfc_main$6 = defineComponent({
|
|
|
5510
5538
|
}
|
|
5511
5539
|
series.value = temp;
|
|
5512
5540
|
};
|
|
5513
|
-
watch(() => [props2.data, props2.seriesTypes], ([value]) => {
|
|
5541
|
+
watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
|
|
5514
5542
|
if (props2.dataType === "static" || unref(pageMode) === "design") {
|
|
5515
5543
|
handleDataset(value);
|
|
5516
5544
|
}
|
|
@@ -5981,7 +6009,7 @@ const tabsProps = {
|
|
|
5981
6009
|
type: "ecanTabs",
|
|
5982
6010
|
name: "\u6807\u7B7E\u9875",
|
|
5983
6011
|
keyName: "\u6807\u7B7E\u9875",
|
|
5984
|
-
width: "
|
|
6012
|
+
width: "500px",
|
|
5985
6013
|
height: "400px",
|
|
5986
6014
|
tabFontSize: "14px",
|
|
5987
6015
|
backgroundColor: "",
|