@ecan-bi/datav 1.0.72 → 1.0.74
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 +34 -8
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +34 -8
- package/dist/index.umd.js.map +1 -1
- package/dist/style.css +1 -0
- package/package.json +4 -3
- 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
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/*! @ecan-bi/datav@1.0.74 */
|
|
1
2
|
(function(global, factory) {
|
|
2
3
|
typeof exports === "object" && typeof module !== "undefined" ? factory(exports, require("vue"), require("echarts/core"), require("resize-detector"), require("ant-design-vue"), require("ant-design-vue/es/spin/style"), require("ant-design-vue/es/skeleton/style"), require("lodash-es"), require("axios"), require("mitt"), require("dayjs"), require("ant-design-vue/es/progress/style"), require("ant-design-vue/es/input/style"), require("ant-design-vue/es/date-picker/style"), require("ant-design-vue/es/date-picker/locale/zh_CN"), require("ant-design-vue/es/select/style"), require("ant-design-vue/es/button/style"), require("echarts/renderers"), require("echarts/charts"), require("echarts/components"), require("echarts"), require("ant-design-vue/es/modal/style"), require("ant-design-vue/es/table/style")) : typeof define === "function" && define.amd ? define(["exports", "vue", "echarts/core", "resize-detector", "ant-design-vue", "ant-design-vue/es/spin/style", "ant-design-vue/es/skeleton/style", "lodash-es", "axios", "mitt", "dayjs", "ant-design-vue/es/progress/style", "ant-design-vue/es/input/style", "ant-design-vue/es/date-picker/style", "ant-design-vue/es/date-picker/locale/zh_CN", "ant-design-vue/es/select/style", "ant-design-vue/es/button/style", "echarts/renderers", "echarts/charts", "echarts/components", "echarts", "ant-design-vue/es/modal/style", "ant-design-vue/es/table/style"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global["@ecan/bi-datav"] = {}, global.vue, global["echarts/core"], global["resize-detector"], global["ant-design-vue"], null, null, global["lodash-es"], global.axios, global.mitt, global.dayjs, null, null, null, global["ant-design-vue/es/date-picker/locale/zh_CN"], null, null, global["echarts/renderers"], global["echarts/charts"], global["echarts/components"], global.echarts));
|
|
3
4
|
})(this, function(exports2, vue, core, resizeDetector, antDesignVue, style$1, style$2, lodashEs, axios, mitt, dayjs, style$3, style$4, style$5, locale, style$6, style$7, renderers, charts, components$1, echarts) {
|
|
@@ -5346,7 +5347,12 @@
|
|
|
5346
5347
|
toolboxTop: "top",
|
|
5347
5348
|
toolboxIconStyleBorderColor: "#666",
|
|
5348
5349
|
toolboxDownloadUrl: "",
|
|
5349
|
-
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F"
|
|
5350
|
+
toolboxInfoText: "\u5F53\u524D\u65E0\u8BF4\u660E\u4FE1\u606F",
|
|
5351
|
+
areaStyleOpacity: 0,
|
|
5352
|
+
symbolSize: 4,
|
|
5353
|
+
lineStyleWidth: 2,
|
|
5354
|
+
smooth: false,
|
|
5355
|
+
barWidth: "40%"
|
|
5350
5356
|
};
|
|
5351
5357
|
const comboGraphComponentProps = transformToComponentProps(comboGraphProps);
|
|
5352
5358
|
const comboGraphEvents = ["refreshData", "click"];
|
|
@@ -5482,22 +5488,42 @@
|
|
|
5482
5488
|
}
|
|
5483
5489
|
dimensions.value = chartData.dimensions;
|
|
5484
5490
|
const dataset = chartData.dataset;
|
|
5485
|
-
console.log("dataset", dataset);
|
|
5486
5491
|
const temp = [];
|
|
5487
5492
|
const len = dataset.length;
|
|
5488
5493
|
const seriesTypes = props2.seriesTypes;
|
|
5489
5494
|
for (let i = 0; i < len; i++) {
|
|
5490
5495
|
const seriesType = seriesTypes[i];
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5496
|
+
const { type, axisIndex } = seriesType || {};
|
|
5497
|
+
let series2 = {
|
|
5498
|
+
type,
|
|
5499
|
+
yAxisIndex: axisIndex,
|
|
5494
5500
|
tooltip: {
|
|
5495
5501
|
valueFormatter(value) {
|
|
5496
5502
|
return useValueFormatter(props2 == null ? void 0 : props2.tooltipFormatter, value);
|
|
5497
5503
|
}
|
|
5498
5504
|
},
|
|
5499
5505
|
...dataset[i]
|
|
5500
|
-
}
|
|
5506
|
+
};
|
|
5507
|
+
if (type === "line") {
|
|
5508
|
+
series2 = {
|
|
5509
|
+
...series2,
|
|
5510
|
+
symbolSize: props2.symbolSize,
|
|
5511
|
+
smooth: props2.smooth,
|
|
5512
|
+
areaStyle: {
|
|
5513
|
+
opacity: props2.areaStyleOpacity
|
|
5514
|
+
},
|
|
5515
|
+
lineStyle: {
|
|
5516
|
+
width: props2.lineStyleWidth
|
|
5517
|
+
}
|
|
5518
|
+
};
|
|
5519
|
+
}
|
|
5520
|
+
if (type === "bar") {
|
|
5521
|
+
series2 = {
|
|
5522
|
+
...series2,
|
|
5523
|
+
barWidth: props2.barWidth
|
|
5524
|
+
};
|
|
5525
|
+
}
|
|
5526
|
+
temp.push(series2);
|
|
5501
5527
|
}
|
|
5502
5528
|
series.value = temp;
|
|
5503
5529
|
};
|
|
@@ -5519,7 +5545,7 @@
|
|
|
5519
5545
|
}
|
|
5520
5546
|
series.value = temp;
|
|
5521
5547
|
};
|
|
5522
|
-
vue.watch(() => [props2.data, props2.seriesTypes], ([value]) => {
|
|
5548
|
+
vue.watch(() => [props2.data, props2.seriesTypes, props2.symbolSize, props2.smooth, props2.areaStyleOpacity, props2.lineStyleWidth, props2.barWidth], ([value]) => {
|
|
5523
5549
|
if (props2.dataType === "static" || vue.unref(pageMode) === "design") {
|
|
5524
5550
|
handleDataset(value);
|
|
5525
5551
|
}
|
|
@@ -5990,7 +6016,7 @@
|
|
|
5990
6016
|
type: "ecanTabs",
|
|
5991
6017
|
name: "\u6807\u7B7E\u9875",
|
|
5992
6018
|
keyName: "\u6807\u7B7E\u9875",
|
|
5993
|
-
width: "
|
|
6019
|
+
width: "500px",
|
|
5994
6020
|
height: "400px",
|
|
5995
6021
|
tabFontSize: "14px",
|
|
5996
6022
|
backgroundColor: "",
|