jwt-ui 1.10.74 → 1.10.76

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/jwt-ui.es.js CHANGED
@@ -1498,7 +1498,8 @@ const gG = /* @__PURE__ */ bt({
1498
1498
  } },
1499
1499
  row: { type: Object, default: () => {
1500
1500
  } },
1501
- index: { type: Number, default: 0 }
1501
+ index: { type: Number, default: 0 },
1502
+ pagestart: { type: Number, default: 0 }
1502
1503
  },
1503
1504
  emits: ["change", "click-cell", "update:modelValue"],
1504
1505
  setup(e, { emit: t }) {
@@ -4743,9 +4744,7 @@ const HJ = /* @__PURE__ */ yn(FJ, [["render", VJ]]), KJ = /* @__PURE__ */ Object
4743
4744
  }
4744
4745
  const H = () => {
4745
4746
  if (!h.value) return;
4746
- a = [], u = u || document.getElementById(i.dialogWrapperContnetId), u.querySelectorAll(
4747
- ".jwt-form-divider-text"
4748
- ).forEach((me, ie) => {
4747
+ a = [], u = u || document.getElementById(i.dialogWrapperContnetId), ((u == null ? void 0 : u.querySelectorAll(".jwt-form-divider-text")) || []).forEach((me, ie) => {
4749
4748
  const Be = L(me, u);
4750
4749
  ie === 0 && !l && (l = Be), a.push(Be);
4751
4750
  });
@@ -37747,11 +37746,14 @@ function uW(e, t = "table") {
37747
37746
  return (S = n[C.code]) == null ? void 0 : S[D];
37748
37747
  }, a = (C) => {
37749
37748
  const D = s(C, "condition") || "";
37750
- return D ? xn.isFunction(D) && D(e.row, e.selectionRow) : !0;
37749
+ return D ? xn.isFunction(D) && D(e.row, e.selectionRow, e.totalCount) : !0;
37751
37750
  }, u = (C) => {
37752
37751
  const D = a(C), S = !r.length || r.includes(C.code);
37753
37752
  return C[i] && S && D;
37754
- }, l = (C) => s(C, "disabledFun") && xn.isFunction(s(C, "disabledFun")) && s(C, "disabledFun")(e.row), c = (C) => {
37753
+ }, l = (C) => {
37754
+ const D = s(C, "disabledFun");
37755
+ return D && xn.isFunction(D) && D(e.row, e.totalCount);
37756
+ }, c = (C) => {
37755
37757
  var w, T, _;
37756
37758
  const D = l(C), S = (((w = C.code) == null ? void 0 : w.includes("delete")) || ((T = C.code) == null ? void 0 : T.includes("batch"))) && !((_ = e.selectionRow) != null && _.length);
37757
37759
  return D || S || e.loading;
@@ -37809,8 +37811,9 @@ const I3e = {
37809
37811
  // 操作属性的name
37810
37812
  showIcon: { type: Boolean, default: !0 },
37811
37813
  showText: { type: Boolean, default: !0 },
37812
- uploadSuccessCb: { type: Function, default: null }
37814
+ uploadSuccessCb: { type: Function, default: null },
37813
37815
  // 导入成功回调
37816
+ totalCount: { type: Number, default: 0 }
37814
37817
  },
37815
37818
  emits: ["header-action", "upload-success"],
37816
37819
  setup(e, { emit: t }) {
@@ -45982,11 +45985,12 @@ function LAe(e, t, n, r, o, i) {
45982
45985
  "file-import": e.appConfig.tableFileImport,
45983
45986
  loading: e.ajaxLoading,
45984
45987
  "menus-obj": e.userMenusAuth,
45988
+ "total-count": e.pagination.totalCount,
45985
45989
  "selection-row": e.selectionRow,
45986
45990
  "upload-success-cb": e.appConfig.uploadSuccessCb,
45987
45991
  onHeaderAction: e.handleHeaderAction,
45988
45992
  onUploadSuccess: e.handleUploadSuccess
45989
- }, null, 8, ["config", "current-path", "file-import", "loading", "menus-obj", "selection-row", "upload-success-cb", "onHeaderAction", "onUploadSuccess"])) : Qe("", !0),
45993
+ }, null, 8, ["config", "current-path", "file-import", "loading", "menus-obj", "total-count", "selection-row", "upload-success-cb", "onHeaderAction", "onUploadSuccess"])) : Qe("", !0),
45990
45994
  rt(e.$slots, "header-button-after", {}, void 0, !0)
45991
45995
  ]),
45992
45996
  Re("div", null, [
@@ -46185,7 +46189,7 @@ function LAe(e, t, n, r, o, i) {
46185
46189
  }, 16, ["modelValue", "onClose"])) : Qe("", !0)
46186
46190
  ], 64);
46187
46191
  }
46188
- const NAe = /* @__PURE__ */ yn(BAe, [["render", LAe], ["__scopeId", "data-v-d2665d3a"]]), MAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46192
+ const NAe = /* @__PURE__ */ yn(BAe, [["render", LAe], ["__scopeId", "data-v-452e30b7"]]), MAe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
46189
46193
  __proto__: null,
46190
46194
  default: NAe
46191
46195
  }, Symbol.toStringTag, { value: "Module" })), zAe = {