tenghui-ui 1.4.9 → 1.5.1
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
|
@@ -703,10 +703,11 @@ ComComponent$2.install = (app) => {
|
|
|
703
703
|
};
|
|
704
704
|
const InComComponent$2 = ComComponent$2;
|
|
705
705
|
function countTableHeight(staticNum = 0) {
|
|
706
|
+
var _a;
|
|
706
707
|
const pageCountEls = document.querySelectorAll(".ui-page__main:not(.v-leave) > div");
|
|
707
708
|
const paginationEl = document.querySelector(".ui-pagination");
|
|
708
709
|
const headerEl = document.querySelector(".ui-container__header");
|
|
709
|
-
const tabsEl = document.querySelector(".ui-tabs");
|
|
710
|
+
const tabsEl = (headerEl == null ? void 0 : headerEl.querySelector(".ui-tabs")) ? null : document.querySelector(".ui-tabs");
|
|
710
711
|
const tableTab = document.querySelector(".ui-table__tab");
|
|
711
712
|
let tableHeight = staticNum;
|
|
712
713
|
tableHeight += paginationEl ? paginationEl.offsetHeight : 0;
|
|
@@ -720,7 +721,7 @@ function countTableHeight(staticNum = 0) {
|
|
|
720
721
|
continue;
|
|
721
722
|
tableHeight += ele.offsetHeight;
|
|
722
723
|
let eleMargin, eleTBMargin;
|
|
723
|
-
let eleCss = document.defaultView.getComputedStyle(ele);
|
|
724
|
+
let eleCss = (_a = document == null ? void 0 : document.defaultView) == null ? void 0 : _a.getComputedStyle(ele);
|
|
724
725
|
if (userAgent.indexOf("Firefox") > -1) {
|
|
725
726
|
eleTBMargin = parseInt(eleCss["margin-top"]) + parseInt(eleCss["margin-bottom"]);
|
|
726
727
|
} else if (userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1 && !(userAgent.indexOf("Opera") > -1)) {
|