g-ui-web 1.1.13 → 1.1.15

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 CHANGED
@@ -94807,16 +94807,12 @@ const n_ = Tr(), Wre = (e, t, r) => {
94807
94807
  return a;
94808
94808
  };
94809
94809
  function ylt([e], t, r) {
94810
- var l;
94811
94810
  if (!e) return "";
94812
94811
  e.value && (e.value = Wre(e.value));
94813
- let n = r.map((u) => u.name), a = "", o = n.indexOf(e == null ? void 0 : e.axisValue);
94814
- if (o > -1) {
94815
- let u = (l = r[o]) == null ? void 0 : l.title;
94816
- a = `<p class='tooltip-text'> <span>当前节点:</span><span style="color:${e.color};">${u}</span></p>`;
94817
- }
94818
- 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>`;
94819
- return `<div class="tooltip-cash">${a} ${i}${s}</div>`;
94812
+ let n = r.map((s) => s.name), a = "";
94813
+ n.indexOf(e == null ? void 0 : e.axisValue);
94814
+ const o = `<p class='tooltip-text'> <span>当前时间:</span><span style="color:${e.color};">${e.name}</span></p>`, i = `<p class='tooltip-text'> <span>${e.seriesName}</span><span style="color:${e.color};">${e.value}万元</span></p>`;
94815
+ return `<div class="tooltip-cash">${a} ${o}${i}</div>`;
94820
94816
  }
94821
94817
  const blt = (e = 8, t = "rgba(229, 159, 98, 0.1)", r = { x: 0, y: 0, x2: 1, y2: 0.3 }) => {
94822
94818
  const n = 1 / e, a = Math.round(n / 10 * 1e3) / 1e3, o = [];
@@ -94940,11 +94936,11 @@ function _lt(e) {
94940
94936
  },
94941
94937
  markPoint: {
94942
94938
  data: u.data.map((v, g) => {
94943
- const m = !!v.title, b = Number(m), _ = v.active ? "#E59F62" : "#3971E2", w = (v.active, "rgba(255,255,255,0.8)"), C = {
94944
- position: g % 3 === 0 ? "bottom" : "top",
94939
+ const m = !!v.title, b = Number(m), _ = v.active ? "#E59F62" : "#3971E2", w = (v.active, "rgba(255,255,255,0.8)"), x = {
94940
+ position: [3, u.data.length - 2].includes(g) ? "bottom" : "top",
94945
94941
  formatter: () => {
94946
- const x = [];
94947
- return v.title && x.push(`{text|${v.title}}`), v.brief && x.push(`{text|${v.brief}}`), v.name && x.push(`{name|${v.name}}`), x.join(`
94942
+ const S = [];
94943
+ return v.title && S.push(`{text|${v.title}}`), v.brief && S.push(`{text|${v.brief}}`), v.name && S.push(`{name|${v.name}}`), S.join(`
94948
94944
  `);
94949
94945
  },
94950
94946
  rich: {
@@ -94968,7 +94964,7 @@ function _lt(e) {
94968
94964
  normal: { color: "#ffffff", borderColor: _, borderWidth: 3, opacity: b },
94969
94965
  emphasis: { color: "#ffffff", borderColor: _, borderWidth: 3, opacity: b }
94970
94966
  },
94971
- label: m ? C : { show: !1 }
94967
+ label: m ? x : { show: !1 }
94972
94968
  };
94973
94969
  })
94974
94970
  }
Binary file