jwt-ui 1.10.74 → 1.10.75

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