g-ui-web 1.1.10 → 1.1.11
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/lib/g-ui-web.js +17 -11
- package/lib/g-ui-web.js.gz +0 -0
- package/lib/g-ui-web.umd.cjs +2 -2
- package/lib/style.css +1 -1
- package/lib/style.css.gz +0 -0
- package/package.json +1 -1
package/lib/g-ui-web.js
CHANGED
|
@@ -94801,11 +94801,17 @@ const n_ = Tr(), Wre = (e, t, r) => {
|
|
|
94801
94801
|
}
|
|
94802
94802
|
return a;
|
|
94803
94803
|
};
|
|
94804
|
-
function ylt([e], t) {
|
|
94804
|
+
function ylt([e], t, r) {
|
|
94805
|
+
var l;
|
|
94805
94806
|
if (!e) return "";
|
|
94806
94807
|
e.value && (e.value = Wre(e.value));
|
|
94807
|
-
|
|
94808
|
-
|
|
94808
|
+
let n = r.map((u) => u.name), a = "", o = n.indexOf(e == null ? void 0 : e.axisValue);
|
|
94809
|
+
if (o > -1) {
|
|
94810
|
+
let u = (l = r[o]) == null ? void 0 : l.title;
|
|
94811
|
+
a = `<p class='tooltip-text'> <span>当前节点:</span><span style="color:${e.color};">${u}</span></p>`;
|
|
94812
|
+
}
|
|
94813
|
+
const i = `<p class='tooltip-text'> <span>当前时间:</span><span style="color:${e.color};">${e.name}</span></p>`, s = `<p class='tooltip-text'> <span>${e.seriesName}</span><span style="color:${e.color};">${e.value}万元</span></p>`;
|
|
94814
|
+
return `<div class="tooltip-cash">${a} ${i}${s}</div>`;
|
|
94809
94815
|
}
|
|
94810
94816
|
const blt = (e = 8, t = "rgba(229, 159, 98, 0.1)", r = { x: 0, y: 0, x2: 1, y2: 0.3 }) => {
|
|
94811
94817
|
const n = 1 / e, a = Math.round(n / 10 * 1e3) / 1e3, o = [];
|
|
@@ -95003,11 +95009,8 @@ function _lt(e) {
|
|
|
95003
95009
|
// borderColor: 'rgba(0,0,0,0)',
|
|
95004
95010
|
// shadowColor: 'rgba(0,0,0,0)',
|
|
95005
95011
|
// backgroundColor: 'rgba(0,0,0,0)',
|
|
95006
|
-
formatter: (v) => ylt(v),
|
|
95007
|
-
position:
|
|
95008
|
-
const w = g[0].dataIndex, C = s.data.length;
|
|
95009
|
-
return [(_.viewSize[0] - 130) / (C - 1) * w, d];
|
|
95010
|
-
}
|
|
95012
|
+
formatter: (v) => ylt(v, { unit: ["万元"] }, u.data),
|
|
95013
|
+
position: "right"
|
|
95011
95014
|
}
|
|
95012
95015
|
};
|
|
95013
95016
|
}
|
|
@@ -95036,6 +95039,7 @@ const wlt = (e, t) => {
|
|
|
95036
95039
|
{
|
|
95037
95040
|
name: A,
|
|
95038
95041
|
title: "当前时间",
|
|
95042
|
+
active: !0,
|
|
95039
95043
|
value: Date.parse(A)
|
|
95040
95044
|
},
|
|
95041
95045
|
...x.map((B) => ({
|
|
@@ -95506,10 +95510,12 @@ const wlt = (e, t) => {
|
|
|
95506
95510
|
) : x = o.dbOptions.columns, x.map((S) => {
|
|
95507
95511
|
let E = {
|
|
95508
95512
|
name: "",
|
|
95509
|
-
type: "line",
|
|
95513
|
+
type: S.type || "line",
|
|
95510
95514
|
yAxisIndex: S.yAxisIndex,
|
|
95511
95515
|
stack: S.stack,
|
|
95512
|
-
data: []
|
|
95516
|
+
data: [],
|
|
95517
|
+
lineStyle: S.lineStyle,
|
|
95518
|
+
areaStyle: S.areaStyle
|
|
95513
95519
|
};
|
|
95514
95520
|
m.value.map((T) => {
|
|
95515
95521
|
E.name = T[S.title] || S.title, E.data.push(T[S.field]);
|
|
@@ -95584,7 +95590,7 @@ const wlt = (e, t) => {
|
|
|
95584
95590
|
]);
|
|
95585
95591
|
};
|
|
95586
95592
|
}
|
|
95587
|
-
}), Hlt = /* @__PURE__ */ Qn(zlt, [["__scopeId", "data-v-
|
|
95593
|
+
}), Hlt = /* @__PURE__ */ Qn(zlt, [["__scopeId", "data-v-2a477454"]]), Wlt = rr(Hlt), wm = Tr(), Gf = document.documentElement, Glt = (e) => e || "-", Ult = (e) => e || "", Klt = (e, t) => {
|
|
95588
95594
|
let r = [];
|
|
95589
95595
|
for (let n = 0; n <= e; n++)
|
|
95590
95596
|
r.push({
|
package/lib/g-ui-web.js.gz
CHANGED
|
Binary file
|