hcui-package 1.9.94 → 2.0.2

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.
@@ -35103,6 +35103,10 @@ const ree = /* @__PURE__ */ Ge({
35103
35103
  settingOption: {
35104
35104
  type: Object,
35105
35105
  default: () => ({})
35106
+ },
35107
+ tableMaxHeight: {
35108
+ type: Number,
35109
+ default: null
35106
35110
  }
35107
35111
  },
35108
35112
  setup(e) {
@@ -35113,7 +35117,7 @@ const ree = /* @__PURE__ */ Ge({
35113
35117
  let w = t.scrollHeight;
35114
35118
  if (l.value) {
35115
35119
  const D = l.value, T = l.value.querySelector(".n-data-table-thead"), M = l.value.querySelector(".n-data-table__pagination");
35116
- w = D.offsetHeight - T.offsetHeight - (M ? M.offsetHeight + 12 : 0) - 2;
35120
+ w = (t.tableMaxHeight || D.offsetHeight) - T.offsetHeight - (M ? M.offsetHeight + 12 : 0) - 2;
35117
35121
  }
35118
35122
  u.value = w;
35119
35123
  }
@@ -78656,8 +78660,8 @@ const PJ = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
78656
78660
  gap: "10px"
78657
78661
  } : {});
78658
78662
  function b(R) {
78659
- const E = Math.floor(R / o.getlineNumWidth);
78660
- d.value = E, l.value || (o.schemas.forEach((w, D) => {
78663
+ let E = Math.floor(R / o.getlineNumWidth);
78664
+ E < 2 && (E = 2), d.value = E, l.value || (o.schemas.forEach((w, D) => {
78661
78665
  D <= E - 2 ? w.show = !0 : w.show = !1;
78662
78666
  }), l.value = !0);
78663
78667
  }