@ecan-bi/datav 1.0.68 → 1.0.70
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 +15 -9
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +15 -9
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -2
- package/types/graph/bar/Bar.vue.d.ts +94 -0
- package/types/graph/bar/index.d.ts +94 -0
- package/types/graph/bar/props.d.ts +45 -0
package/dist/index.umd.js
CHANGED
|
@@ -1777,10 +1777,10 @@
|
|
|
1777
1777
|
const typesLen = types.length;
|
|
1778
1778
|
if (dataLen === 1) {
|
|
1779
1779
|
const vs = [];
|
|
1780
|
-
for (let
|
|
1781
|
-
const type = types[
|
|
1780
|
+
for (let i = 0; i < typesLen; i++) {
|
|
1781
|
+
const type = types[i];
|
|
1782
1782
|
const { label, value } = type;
|
|
1783
|
-
const v = data[0][value];
|
|
1783
|
+
const v = { ...data[0], value: data[0][value] };
|
|
1784
1784
|
set.add(label);
|
|
1785
1785
|
vs.push(v);
|
|
1786
1786
|
}
|
|
@@ -1794,13 +1794,13 @@
|
|
|
1794
1794
|
for (let j = 0; j < typesLen; j++) {
|
|
1795
1795
|
const type = types[j];
|
|
1796
1796
|
const { label, value } = type;
|
|
1797
|
-
const
|
|
1797
|
+
const v = { ...item, value: item[value] };
|
|
1798
1798
|
if (map.has(label)) {
|
|
1799
1799
|
const m = map.get(label);
|
|
1800
|
-
m.push(
|
|
1800
|
+
m.push(v);
|
|
1801
1801
|
map.set(label, m);
|
|
1802
1802
|
} else {
|
|
1803
|
-
map.set(label, [
|
|
1803
|
+
map.set(label, [v]);
|
|
1804
1804
|
}
|
|
1805
1805
|
}
|
|
1806
1806
|
}
|
|
@@ -4537,6 +4537,9 @@
|
|
|
4537
4537
|
xAxisSplitLineShow: true,
|
|
4538
4538
|
xAxisSplitLineStyleColor: "#333",
|
|
4539
4539
|
xAxisLabelColor: "#333",
|
|
4540
|
+
xAxisLabelWidth: void 0,
|
|
4541
|
+
xAxisLabelRotate: 0,
|
|
4542
|
+
xAxisLabelOverflow: "none",
|
|
4540
4543
|
xAxisLineStyleColor: "#333",
|
|
4541
4544
|
xAxisTickShow: true,
|
|
4542
4545
|
yAxisSplitLineShow: true,
|
|
@@ -4690,7 +4693,11 @@
|
|
|
4690
4693
|
}
|
|
4691
4694
|
},
|
|
4692
4695
|
axisLabel: {
|
|
4693
|
-
color: props2.xAxisLabelColor
|
|
4696
|
+
color: props2.xAxisLabelColor,
|
|
4697
|
+
interval: 0,
|
|
4698
|
+
rotate: props2.xAxisLabelRotate,
|
|
4699
|
+
width: props2.xAxisLabelWidth,
|
|
4700
|
+
overflow: props2.xAxisLabelOverflow
|
|
4694
4701
|
},
|
|
4695
4702
|
axisLine: {
|
|
4696
4703
|
lineStyle: {
|
|
@@ -4818,7 +4825,7 @@
|
|
|
4818
4825
|
const click = emitEvent("click", (e) => {
|
|
4819
4826
|
const id = props2.id;
|
|
4820
4827
|
const modal = getGlobalModel(id);
|
|
4821
|
-
setGlobalModel(id, { ...modal, RECORD: e
|
|
4828
|
+
setGlobalModel(id, { ...modal, RECORD: e.data });
|
|
4822
4829
|
});
|
|
4823
4830
|
const { setRequest } = vue.inject(REQUEST_MODEL, {
|
|
4824
4831
|
setRequest: (requestFn, sortNum) => void 0
|
|
@@ -5089,7 +5096,6 @@
|
|
|
5089
5096
|
const handleDataset = (data = [], dataFieldNames) => {
|
|
5090
5097
|
const { name: x = "name", value: y = "value" } = dataFieldNames || {};
|
|
5091
5098
|
dataset.value = data.map((item) => ({ value: [item[x], item[y]], record: item }));
|
|
5092
|
-
console.log(data.map((item) => ({ value: [item[x], item[y]], record: item })));
|
|
5093
5099
|
};
|
|
5094
5100
|
vue.watch(() => props2.data, (value) => {
|
|
5095
5101
|
if (props2.dataType === "static" || vue.unref(pageMode) === "design") {
|