g-ui-web 1.1.26 → 1.1.28

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
@@ -93807,6 +93807,11 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
93807
93807
  limit: {
93808
93808
  type: Number,
93809
93809
  default: 10
93810
+ },
93811
+ sort: {
93812
+ type: String,
93813
+ default: "descending"
93814
+ // ascending 升序 、descending 降序
93810
93815
  }
93811
93816
  },
93812
93817
  setup(e, { expose: t }) {
@@ -93816,7 +93821,12 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
93816
93821
  const d = z({});
93817
93822
  let f = z(!1);
93818
93823
  n.value = r.dbOptions.columns && r.dbOptions.columns.length > 0 && r.dbOptions.columns.find((b) => b.field === r.dbOptions.rankingField);
93819
- const p = (b) => b.sort((w, C) => C[l] - w[l]), h = async (b) => {
93824
+ const p = (b) => {
93825
+ if (r.sort == "descending")
93826
+ return b.sort((w, C) => C[l] - w[l]);
93827
+ if (r.sort == "ascending")
93828
+ return b.sort((w, C) => w[l] - C[l]);
93829
+ }, h = async (b) => {
93820
93830
  if (ya(b)) {
93821
93831
  a.value = !0;
93822
93832
  return;
@@ -93941,7 +93951,7 @@ const $l = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIMAAABfCAYAAADLYXQyAA
93941
93951
  ], 64);
93942
93952
  };
93943
93953
  }
93944
- }), gst = /* @__PURE__ */ Qn(vst, [["__scopeId", "data-v-2afb4287"]]), mst = rr(gst), yst = { class: "g-ranking-table-rb" }, bst = {
93954
+ }), gst = /* @__PURE__ */ Qn(vst, [["__scopeId", "data-v-a766eb73"]]), mst = rr(gst), yst = { class: "g-ranking-table-rb" }, bst = {
93945
93955
  key: 0,
93946
93956
  class: "g-ranking-tooltip"
93947
93957
  }, _st = { class: "ranking-rb-list" }, wst = { class: "item" }, Cst = { class: "item-inbox" }, xst = ["title"], Sst = { class: "item-inbox-target" }, Est = { class: "target" }, Tst = {
@@ -95564,12 +95574,12 @@ const Clt = (e, t) => {
95564
95574
  C.filter((O) => O[_] === A).forEach((O) => {
95565
95575
  const V = S.find((L) => L[b] === O[b]);
95566
95576
  if (V)
95567
- V[`${_}${M + 1}`] = A, V[`${w}${M + 1}`] = O.contractAmount;
95577
+ V[`${_}${M + 1}`] = A, V[`${w}${M + 1}`] = O[w];
95568
95578
  else {
95569
95579
  const L = {
95570
95580
  [b]: O[b],
95571
95581
  [`${_}${M + 1}`]: A,
95572
- [`${w}${M + 1}`]: O.contractAmount
95582
+ [`${w}${M + 1}`]: O[w]
95573
95583
  };
95574
95584
  for (let P = 0; P < x.length; P++)
95575
95585
  P !== M && (L[`${_}${P + 1}`] = "", L[`${w}${P + 1}`] = 0);
@@ -95581,7 +95591,6 @@ const Clt = (e, t) => {
95581
95591
  return x.forEach((A, M) => {
95582
95592
  g.columns.forEach((k, O) => {
95583
95593
  E.push({
95584
- // ...column,
95585
95594
  title: A,
95586
95595
  field: `${k.field}${M + 1}`
95587
95596
  });
@@ -95652,7 +95661,7 @@ const Clt = (e, t) => {
95652
95661
  ]);
95653
95662
  };
95654
95663
  }
95655
- }), Wlt = /* @__PURE__ */ Qn(Hlt, [["__scopeId", "data-v-7bf18ebb"]]), Glt = rr(Wlt), wm = Tr(), Gf = document.documentElement, Ult = (e) => e || "-", Klt = (e) => e || "", Ylt = (e, t) => {
95664
+ }), Wlt = /* @__PURE__ */ Qn(Hlt, [["__scopeId", "data-v-56a72cc0"]]), Glt = rr(Wlt), wm = Tr(), Gf = document.documentElement, Ult = (e) => e || "-", Klt = (e) => e || "", Ylt = (e, t) => {
95656
95665
  let r = [];
95657
95666
  for (let n = 0; n <= e; n++)
95658
95667
  r.push({
Binary file