g-ui-web 1.1.27 → 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 = {
Binary file