g-ui-web 1.1.10 → 1.1.12

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
@@ -93926,10 +93926,7 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
93926
93926
  }), vst = /* @__PURE__ */ Qn(hst, [["__scopeId", "data-v-90b360eb"]]), gst = rr(vst), mst = { class: "g-ranking-table-rb" }, yst = {
93927
93927
  key: 0,
93928
93928
  class: "g-ranking-tooltip"
93929
- }, bst = { class: "ranking-rb-list" }, _st = { class: "item" }, wst = { class: "item-inbox" }, Cst = {
93930
- key: 0,
93931
- class: "text"
93932
- }, xst = { class: "item-inbox-target" }, Sst = { class: "target" }, Est = {
93929
+ }, bst = { class: "ranking-rb-list" }, _st = { class: "item" }, wst = { class: "item-inbox" }, Cst = ["title"], xst = { class: "item-inbox-target" }, Sst = { class: "target" }, Est = {
93933
93930
  key: 0,
93934
93931
  class: "text"
93935
93932
  }, Tst = { class: "describe" }, Ast = { class: "content" }, Mst = { class: "unit" }, kst = H({
@@ -93968,7 +93965,7 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
93968
93965
  },
93969
93966
  setup(e, { expose: t }) {
93970
93967
  Ws((b) => ({
93971
- "5c2996e8": g.value
93968
+ ad8dae80: g.value
93972
93969
  }));
93973
93970
  const r = e, n = z(!1);
93974
93971
  let a = z([]), o = z([]), i = r.dbOptions.rankingField, s = r.dbOptions.namingField, l = r.dbOptions.describeField, u = r.orderType == "red" ? "desc" : "asc", c = r.limit, d = r.title;
@@ -94042,7 +94039,11 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
94042
94039
  class: K(r.orderType == "black" ? "top black" : "top red")
94043
94040
  }, "TOP" + Oe(T + 1), 3),
94044
94041
  (D(!0), $(lt, null, Mt(y(o), (A) => (D(), $("div", wst, [
94045
- A.field == r.dbOptions.namingField ? (D(), $("div", Cst, Oe(E[A.field]), 1)) : ae("", !0)
94042
+ A.field == r.dbOptions.namingField ? (D(), $("div", {
94043
+ key: 0,
94044
+ class: "text",
94045
+ title: E[A.field]
94046
+ }, Oe(E[A.field]), 9, Cst)) : ae("", !0)
94046
94047
  ]))), 256)),
94047
94048
  N("div", xst, [
94048
94049
  (D(!0), $(lt, null, Mt(y(o), (A) => (D(), $("div", Sst, [
@@ -94073,7 +94074,7 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
94073
94074
  ], 64);
94074
94075
  };
94075
94076
  }
94076
- }), Ost = /* @__PURE__ */ Qn(Dst, [["__scopeId", "data-v-dcee091f"]]), Ist = rr(Ost), Rst = { class: "g-reserve" }, Lst = H({
94077
+ }), Ost = /* @__PURE__ */ Qn(Dst, [["__scopeId", "data-v-3137c8ec"]]), Ist = rr(Ost), Rst = { class: "g-reserve" }, Lst = H({
94077
94078
  name: "GReserve"
94078
94079
  }), Pst = /* @__PURE__ */ H({
94079
94080
  ...Lst,
@@ -94801,11 +94802,17 @@ const n_ = Tr(), Wre = (e, t, r) => {
94801
94802
  }
94802
94803
  return a;
94803
94804
  };
94804
- function ylt([e], t) {
94805
+ function ylt([e], t, r) {
94806
+ var l;
94805
94807
  if (!e) return "";
94806
94808
  e.value && (e.value = Wre(e.value));
94807
- const r = `<p class='tooltip-text'> <span>当前时间:</span><span style="color:${e.color};">${e.name}</span></p>`, n = `<p class='tooltip-text'> <span>${e.seriesName}</span><span style="color:${e.color};">${e.value}万元</span></p>`;
94808
- return `<div class="tooltip-cash">${r}${n}<span class='tooltip-dot'></span></div>`;
94809
+ let n = r.map((u) => u.name), a = "", o = n.indexOf(e == null ? void 0 : e.axisValue);
94810
+ if (o > -1) {
94811
+ let u = (l = r[o]) == null ? void 0 : l.title;
94812
+ a = `<p class='tooltip-text'> <span>当前节点:</span><span style="color:${e.color};">${u}</span></p>`;
94813
+ }
94814
+ 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>`;
94815
+ return `<div class="tooltip-cash">${a} ${i}${s}</div>`;
94809
94816
  }
94810
94817
  const blt = (e = 8, t = "rgba(229, 159, 98, 0.1)", r = { x: 0, y: 0, x2: 1, y2: 0.3 }) => {
94811
94818
  const n = 1 / e, a = Math.round(n / 10 * 1e3) / 1e3, o = [];
@@ -95003,11 +95010,8 @@ function _lt(e) {
95003
95010
  // borderColor: 'rgba(0,0,0,0)',
95004
95011
  // shadowColor: 'rgba(0,0,0,0)',
95005
95012
  // backgroundColor: 'rgba(0,0,0,0)',
95006
- formatter: (v) => ylt(v),
95007
- position: function(v, g, m, b, _) {
95008
- const w = g[0].dataIndex, C = s.data.length;
95009
- return [(_.viewSize[0] - 130) / (C - 1) * w, d];
95010
- }
95013
+ formatter: (v) => ylt(v, { unit: ["万元"] }, u.data),
95014
+ position: "right"
95011
95015
  }
95012
95016
  };
95013
95017
  }
@@ -95036,6 +95040,7 @@ const wlt = (e, t) => {
95036
95040
  {
95037
95041
  name: A,
95038
95042
  title: "当前时间",
95043
+ active: !0,
95039
95044
  value: Date.parse(A)
95040
95045
  },
95041
95046
  ...x.map((B) => ({
@@ -95506,10 +95511,12 @@ const wlt = (e, t) => {
95506
95511
  ) : x = o.dbOptions.columns, x.map((S) => {
95507
95512
  let E = {
95508
95513
  name: "",
95509
- type: "line",
95514
+ type: S.type || "line",
95510
95515
  yAxisIndex: S.yAxisIndex,
95511
95516
  stack: S.stack,
95512
- data: []
95517
+ data: [],
95518
+ lineStyle: S.lineStyle,
95519
+ areaStyle: S.areaStyle
95513
95520
  };
95514
95521
  m.value.map((T) => {
95515
95522
  E.name = T[S.title] || S.title, E.data.push(T[S.field]);
@@ -95584,7 +95591,7 @@ const wlt = (e, t) => {
95584
95591
  ]);
95585
95592
  };
95586
95593
  }
95587
- }), Hlt = /* @__PURE__ */ Qn(zlt, [["__scopeId", "data-v-e054f9f2"]]), Wlt = rr(Hlt), wm = Tr(), Gf = document.documentElement, Glt = (e) => e || "-", Ult = (e) => e || "", Klt = (e, t) => {
95594
+ }), 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
95595
  let r = [];
95589
95596
  for (let n = 0; n <= e; n++)
95590
95597
  r.push({
Binary file