tenghui-ui 2.0.5 → 2.0.7
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/dist/tenghui-ui.es.js
CHANGED
|
@@ -5808,20 +5808,13 @@ 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
5816
|
}
|
|
5817
|
-
let tableHeight = staticNum;
|
|
5818
|
-
console.log(pageOtherEles, "pageOtherEles", isTable);
|
|
5819
|
-
if (pageOtherEles.length) {
|
|
5820
|
-
pageCountEls.forEach((ele) => {
|
|
5821
|
-
tableHeight += (ele == null ? void 0 : ele.offsetHeight) || 0;
|
|
5822
|
-
console.log(tableHeight, ele, ele == null ? void 0 : ele.offsetHeight);
|
|
5823
|
-
});
|
|
5824
|
-
}
|
|
5817
|
+
let tableHeight = staticNum + pageOtherEles.reduce((sum, num) => sum + num, 0);
|
|
5825
5818
|
let userAgent2 = navigator.userAgent;
|
|
5826
5819
|
for (let i = 0; i < pageCountEls.length; i++) {
|
|
5827
5820
|
let ele = pageCountEls[i];
|