@bit-sun/business-component 2.3.22-beta10 → 2.3.22-beta11

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
@@ -13369,7 +13369,10 @@ var BsSulaQueryTable = (function (props) {
13369
13369
  var getTableHeight = function getTableHeight() {
13370
13370
  setTimeout(function () {
13371
13371
  var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
13372
- var cancelHeight = window.top == window ? 303 : 223;
13372
+ // const cancelHeight = window.top == window ? 303 : 223;
13373
+ var _props$defaultCancelH = props.defaultCancelHeight,
13374
+ defaultCancelHeight = _props$defaultCancelH === void 0 ? 410 : _props$defaultCancelH; //由于BsSulaQueryTable一般用于查询页面,查询页面添加导航导致高度不对,这里减去了导航高度
13375
+ var cancelHeight = window.top == window ? defaultCancelHeight : 287; //window.top == window =>用于比较当前窗口对象window和顶级窗口对象window.top是否相等,赢家未用到微前端,暂时忽略
13373
13376
  var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
13374
13377
  // wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
13375
13378
  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;
package/dist/index.js CHANGED
@@ -13388,7 +13388,10 @@ var BsSulaQueryTable = (function (props) {
13388
13388
  var getTableHeight = function getTableHeight() {
13389
13389
  setTimeout(function () {
13390
13390
  var _window$top, _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
13391
- var cancelHeight = window.top == window ? 303 : 223;
13391
+ // const cancelHeight = window.top == window ? 303 : 223;
13392
+ var _props$defaultCancelH = props.defaultCancelHeight,
13393
+ defaultCancelHeight = _props$defaultCancelH === void 0 ? 410 : _props$defaultCancelH; //由于BsSulaQueryTable一般用于查询页面,查询页面添加导航导致高度不对,这里减去了导航高度
13394
+ var cancelHeight = window.top == window ? defaultCancelHeight : 287; //window.top == window =>用于比较当前窗口对象window和顶级窗口对象window.top是否相等,赢家未用到微前端,暂时忽略
13392
13395
  var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
13393
13396
  // wujie子应用iframe首次加载获取不到client以及dom元素高度兼容处理
13394
13397
  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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bit-sun/business-component",
3
- "version": "2.3.22-beta10",
3
+ "version": "2.3.22-beta11",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -66,7 +66,9 @@ export default (props: any) => {
66
66
  // 获取table高度
67
67
  const getTableHeight = () => {
68
68
  setTimeout(() => {
69
- const cancelHeight = window.top == window ? 303 : 223;
69
+ // const cancelHeight = window.top == window ? 303 : 223;
70
+ const { defaultCancelHeight = 410 } = props; //由于BsSulaQueryTable一般用于查询页面,查询页面添加导航导致高度不对,这里减去了导航高度
71
+ const cancelHeight = window.top == window ? defaultCancelHeight : 287; //window.top == window =>用于比较当前窗口对象window和顶级窗口对象window.top是否相等,赢家未用到微前端,暂时忽略
70
72
  const isFullScreen: any =
71
73
  window.top.document.fullScreen ||
72
74
  window.top.document.webkitIsFullScreen ||
@@ -79,7 +81,6 @@ export default (props: any) => {
79
81
  let listTabHeight = document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`) ?
80
82
  (document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`)?.clientHeight || 48) : 0;
81
83
 
82
-
83
84
  const h =
84
85
  realIframeClientHeight - summaryHeight - listTabHeight -
85
86
  (document.querySelector(`.ant-tabs-tabpane-active .ant-form ant-form-horizontal`)?.clientHeight ||