tenghui-ui 2.0.4 → 2.0.6

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.
@@ -5808,18 +5808,15 @@ function countTableHeight(staticNum = 0, isTable = true, staticClass = null) {
5808
5808
  const tabsEl = (headerEl == null ? void 0 : headerEl.querySelector(".ui-tabs")) ? null : document.querySelector(".ui-tabs");
5809
5809
  const tableTab = document.querySelector(".ui-table__tab");
5810
5810
  pageOtherEles.push(...[
5811
- paginationEl,
5812
- headerEl,
5813
- tabsEl,
5814
- tableTab
5811
+ (paginationEl == null ? void 0 : paginationEl.offsetHeight) || 0,
5812
+ (headerEl == null ? void 0 : headerEl.offsetHeight) || 0,
5813
+ (tabsEl == null ? void 0 : tabsEl.offsetHeight) || 0,
5814
+ (tableTab == null ? void 0 : tableTab.offsetHeight) || 0
5815
5815
  ].filter((item) => !!item));
5816
+ console.log(pageOtherEles, "pageOtherEles");
5816
5817
  }
5817
- let tableHeight = staticNum;
5818
- if (pageOtherEles.length) {
5819
- pageCountEls.forEach((ele) => {
5820
- tableHeight += (ele == null ? void 0 : ele.offsetHeight) || 0;
5821
- });
5822
- }
5818
+ let tableHeight = staticNum + pageOtherEles.reduce((sum, num) => sum + num, 0);
5819
+ console.log(tableHeight, "tableHeight");
5823
5820
  let userAgent2 = navigator.userAgent;
5824
5821
  for (let i = 0; i < pageCountEls.length; i++) {
5825
5822
  let ele = pageCountEls[i];