@bit-sun/business-component 2.2.12 → 2.2.13
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/index.esm.js
CHANGED
|
@@ -18007,10 +18007,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18007
18007
|
// 获取table高度
|
|
18008
18008
|
var getTableHeight = function getTableHeight() {
|
|
18009
18009
|
setTimeout(function () {
|
|
18010
|
-
var _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
18010
|
+
var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
18011
18011
|
var cancelHeight = window.top == window ? 303 : 223;
|
|
18012
18012
|
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
18013
|
-
|
|
18013
|
+
// wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
|
|
18014
|
+
var realIframeClientHeight = document.body.clientHeight ? document.body.clientHeight : ((_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document.body.clientHeight) - 76;
|
|
18015
|
+
var summaryHeight = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary") ? ((_document$querySelect = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.clientHeight) || 22 : 0;
|
|
18016
|
+
var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
|
|
18017
|
+
var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
|
|
18014
18018
|
setHeight(h);
|
|
18015
18019
|
setValue(_objectSpread2({}, value));
|
|
18016
18020
|
}, 0);
|
package/dist/index.js
CHANGED
|
@@ -18025,10 +18025,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
18025
18025
|
// 获取table高度
|
|
18026
18026
|
var getTableHeight = function getTableHeight() {
|
|
18027
18027
|
setTimeout(function () {
|
|
18028
|
-
var _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
18028
|
+
var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
18029
18029
|
var cancelHeight = window.top == window ? 303 : 223;
|
|
18030
18030
|
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
18031
|
-
|
|
18031
|
+
// wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
|
|
18032
|
+
var realIframeClientHeight = document.body.clientHeight ? document.body.clientHeight : ((_window$top = window.top) === null || _window$top === void 0 ? void 0 : _window$top.document.body.clientHeight) - 76;
|
|
18033
|
+
var summaryHeight = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary") ? ((_document$querySelect = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.clientHeight) || 22 : 0;
|
|
18034
|
+
var listTabHeight = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav") ? ((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 48 : 0;
|
|
18035
|
+
var h = realIframeClientHeight - summaryHeight - listTabHeight - (((_document$querySelect3 = document.querySelector(".ant-tabs-tabpane-active .ant-form ant-form-horizontal")) === null || _document$querySelect3 === void 0 ? void 0 : _document$querySelect3.clientHeight) || 0) - (isFullScreen ? 0 : ((_document$querySelect4 = document.querySelector(".ant-tabs-tabpane-active .ant-pro-page-container-warp")) === null || _document$querySelect4 === void 0 ? void 0 : _document$querySelect4.clientHeight) || 0) - cancelHeight + 'px';
|
|
18032
18036
|
setHeight(h);
|
|
18033
18037
|
setValue(_objectSpread2({}, value));
|
|
18034
18038
|
}, 0);
|
package/package.json
CHANGED
|
@@ -70,10 +70,17 @@ export default (props: any) => {
|
|
|
70
70
|
window.top.document.fullScreen ||
|
|
71
71
|
window.top.document.webkitIsFullScreen ||
|
|
72
72
|
window.top.document.mozFullScreen;
|
|
73
|
+
|
|
74
|
+
// wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
|
|
75
|
+
let realIframeClientHeight = document.body.clientHeight ? document.body.clientHeight : window.top?.document.body.clientHeight - 76;
|
|
76
|
+
let summaryHeight = document.querySelector(`.ant-tabs-tabpane-active .table-bssula-summary`) ?
|
|
77
|
+
(document.querySelector(`.ant-tabs-tabpane-active .table-bssula-summary`)?.clientHeight || 22) : 0;
|
|
78
|
+
let listTabHeight = document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`) ?
|
|
79
|
+
(document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`)?.clientHeight || 48) : 0;
|
|
80
|
+
|
|
81
|
+
|
|
73
82
|
const h =
|
|
74
|
-
|
|
75
|
-
(document.querySelector(`.ant-tabs-tabpane-active .table-bssula-summary`)?.clientHeight || 0) -
|
|
76
|
-
(document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`)?.clientHeight || 0) -
|
|
83
|
+
realIframeClientHeight - summaryHeight - listTabHeight -
|
|
77
84
|
(document.querySelector(`.ant-tabs-tabpane-active .ant-form ant-form-horizontal`)?.clientHeight ||
|
|
78
85
|
0) -
|
|
79
86
|
(isFullScreen
|