@bit-sun/business-component 2.2.0-alpha.2 → 2.2.0-alpha.4
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
|
@@ -15989,19 +15989,8 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
15989
15989
|
}, [pathname, title]);
|
|
15990
15990
|
useEffect(function () {}, []);
|
|
15991
15991
|
var ShowFullScreen = function ShowFullScreen() {
|
|
15992
|
-
|
|
15993
|
-
|
|
15994
|
-
// {
|
|
15995
|
-
// type: 'screenChange',
|
|
15996
|
-
// id: itemPath,
|
|
15997
|
-
// },
|
|
15998
|
-
// '*',
|
|
15999
|
-
// );
|
|
16000
|
-
// setIsFnllScreen(!isFullScreen);
|
|
16001
|
-
// } else {
|
|
16002
|
-
// }
|
|
16003
|
-
var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
|
|
16004
|
-
var contentEle = document.querySelector("body");
|
|
15992
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
15993
|
+
var contentEle = window.top.document.querySelector("body");
|
|
16005
15994
|
// addTabsNavStyle(isFullScreen);
|
|
16006
15995
|
if (contentEle && !isFullScreen) {
|
|
16007
15996
|
var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
|
|
@@ -16011,10 +16000,10 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
16011
16000
|
return;
|
|
16012
16001
|
}
|
|
16013
16002
|
}
|
|
16014
|
-
if (document && isFullScreen) {
|
|
16015
|
-
var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
|
|
16003
|
+
if (window.top.document && isFullScreen) {
|
|
16004
|
+
var exitFullScreen = window.top.document.exitFullscreen || window.top.document.mozCancelFullScreen || window.top.document.webkitCancelFullScreen || window.top.document.msExitFullscreen;
|
|
16016
16005
|
if (exitFullScreen) {
|
|
16017
|
-
exitFullScreen.call(document);
|
|
16006
|
+
exitFullScreen.call(window.top.document);
|
|
16018
16007
|
setIsFnllScreen(false);
|
|
16019
16008
|
return;
|
|
16020
16009
|
}
|
|
@@ -17011,12 +17000,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17011
17000
|
var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
17012
17001
|
// 获取table高度
|
|
17013
17002
|
var getTableHeight = function getTableHeight() {
|
|
17014
|
-
|
|
17015
|
-
|
|
17016
|
-
|
|
17017
|
-
|
|
17018
|
-
|
|
17019
|
-
|
|
17003
|
+
setTimeout(function () {
|
|
17004
|
+
var _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
17005
|
+
var cancelHeight = window.top == window ? 303 : 223;
|
|
17006
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
17007
|
+
var h = document.body.clientHeight - (((_document$querySelect = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.clientHeight) || 0) - (((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 0) - (((_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';
|
|
17008
|
+
setHeight(h);
|
|
17009
|
+
setValue(_objectSpread2({}, value));
|
|
17010
|
+
}, 0);
|
|
17020
17011
|
};
|
|
17021
17012
|
//监测是否按下esc键
|
|
17022
17013
|
function checkFull() {
|
|
@@ -17201,23 +17192,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17201
17192
|
return tableProps;
|
|
17202
17193
|
};
|
|
17203
17194
|
var ShowFullScreen = function ShowFullScreen() {
|
|
17204
|
-
var
|
|
17205
|
-
|
|
17206
|
-
// window.parent.postMessage(
|
|
17207
|
-
// {
|
|
17208
|
-
// type: 'screenChange',
|
|
17209
|
-
// id: itemPath,
|
|
17210
|
-
// },
|
|
17211
|
-
// '*',
|
|
17212
|
-
// );
|
|
17213
|
-
// window.$wujie?.props.screenChange({
|
|
17214
|
-
// id: itemPath
|
|
17215
|
-
// });
|
|
17216
|
-
// setIsFnllScreen(!isFullScreen);
|
|
17217
|
-
// } else {
|
|
17218
|
-
// }
|
|
17219
|
-
var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
|
|
17220
|
-
var contentEle = document.querySelector("body");
|
|
17195
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
17196
|
+
var contentEle = window.top.document.querySelector("body");
|
|
17221
17197
|
// addTabsNavStyle(isFullScreen);
|
|
17222
17198
|
if (contentEle && !isFullScreen) {
|
|
17223
17199
|
var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
|
|
@@ -17228,10 +17204,10 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17228
17204
|
return;
|
|
17229
17205
|
}
|
|
17230
17206
|
}
|
|
17231
|
-
if (document && isFullScreen) {
|
|
17232
|
-
var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
|
|
17207
|
+
if (window.top.document && isFullScreen) {
|
|
17208
|
+
var exitFullScreen = window.top.document.exitFullscreen || window.top.document.mozCancelFullScreen || window.top.document.webkitCancelFullScreen || window.top.document.msExitFullscreen;
|
|
17233
17209
|
if (exitFullScreen) {
|
|
17234
|
-
exitFullScreen.call(document);
|
|
17210
|
+
exitFullScreen.call(window.top.document);
|
|
17235
17211
|
setIsFnllScreen(false);
|
|
17236
17212
|
// getTableHeight();
|
|
17237
17213
|
return;
|
|
@@ -20046,7 +20022,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20046
20022
|
key: "componentDidMount",
|
|
20047
20023
|
value: function componentDidMount() {
|
|
20048
20024
|
var _window$$wujie,
|
|
20049
|
-
_this2 = this
|
|
20025
|
+
_this2 = this,
|
|
20026
|
+
_localStorage$getItem;
|
|
20050
20027
|
var _this$props = this.props,
|
|
20051
20028
|
history = _this$props.history,
|
|
20052
20029
|
location = _this$props.location,
|
|
@@ -20191,20 +20168,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20191
20168
|
});
|
|
20192
20169
|
istParent = 0;
|
|
20193
20170
|
});
|
|
20194
|
-
|
|
20195
|
-
|
|
20196
|
-
|
|
20197
|
-
|
|
20198
|
-
|
|
20199
|
-
|
|
20200
|
-
|
|
20201
|
-
// .getItem('firstPage')
|
|
20202
|
-
// ?.slice(1)
|
|
20203
|
-
// .replace(/^\/\w+\//, '/'),
|
|
20204
|
-
// );
|
|
20205
|
-
// } else {
|
|
20206
|
-
// }
|
|
20207
|
-
history.push(location);
|
|
20171
|
+
if (localStorage.getItem('firstPage') && ((_localStorage$getItem = localStorage.getItem('firstPage')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.startsWith("#/".concat(itemPath, "/")))) {
|
|
20172
|
+
var _localStorage$getItem2;
|
|
20173
|
+
istParent = 1;
|
|
20174
|
+
history.push((_localStorage$getItem2 = localStorage.getItem('firstPage')) === null || _localStorage$getItem2 === void 0 ? void 0 : _localStorage$getItem2.slice(1).replace(/^\/\w+\//, '/'));
|
|
20175
|
+
} else {
|
|
20176
|
+
history.push(location);
|
|
20177
|
+
}
|
|
20208
20178
|
}
|
|
20209
20179
|
}, {
|
|
20210
20180
|
key: "componentWillUnmount",
|
package/dist/index.js
CHANGED
|
@@ -16007,19 +16007,8 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16007
16007
|
}, [pathname, title]);
|
|
16008
16008
|
React.useEffect(function () {}, []);
|
|
16009
16009
|
var ShowFullScreen = function ShowFullScreen() {
|
|
16010
|
-
|
|
16011
|
-
|
|
16012
|
-
// {
|
|
16013
|
-
// type: 'screenChange',
|
|
16014
|
-
// id: itemPath,
|
|
16015
|
-
// },
|
|
16016
|
-
// '*',
|
|
16017
|
-
// );
|
|
16018
|
-
// setIsFnllScreen(!isFullScreen);
|
|
16019
|
-
// } else {
|
|
16020
|
-
// }
|
|
16021
|
-
var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
|
|
16022
|
-
var contentEle = document.querySelector("body");
|
|
16010
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
16011
|
+
var contentEle = window.top.document.querySelector("body");
|
|
16023
16012
|
// addTabsNavStyle(isFullScreen);
|
|
16024
16013
|
if (contentEle && !isFullScreen) {
|
|
16025
16014
|
var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
|
|
@@ -16029,10 +16018,10 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
16029
16018
|
return;
|
|
16030
16019
|
}
|
|
16031
16020
|
}
|
|
16032
|
-
if (document && isFullScreen) {
|
|
16033
|
-
var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
|
|
16021
|
+
if (window.top.document && isFullScreen) {
|
|
16022
|
+
var exitFullScreen = window.top.document.exitFullscreen || window.top.document.mozCancelFullScreen || window.top.document.webkitCancelFullScreen || window.top.document.msExitFullscreen;
|
|
16034
16023
|
if (exitFullScreen) {
|
|
16035
|
-
exitFullScreen.call(document);
|
|
16024
|
+
exitFullScreen.call(window.top.document);
|
|
16036
16025
|
setIsFnllScreen(false);
|
|
16037
16026
|
return;
|
|
16038
16027
|
}
|
|
@@ -17029,12 +17018,14 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17029
17018
|
var bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
17030
17019
|
// 获取table高度
|
|
17031
17020
|
var getTableHeight = function getTableHeight() {
|
|
17032
|
-
|
|
17033
|
-
|
|
17034
|
-
|
|
17035
|
-
|
|
17036
|
-
|
|
17037
|
-
|
|
17021
|
+
setTimeout(function () {
|
|
17022
|
+
var _document$querySelect, _document$querySelect2, _document$querySelect3, _document$querySelect4;
|
|
17023
|
+
var cancelHeight = window.top == window ? 303 : 223;
|
|
17024
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
17025
|
+
var h = document.body.clientHeight - (((_document$querySelect = document.querySelector(".ant-tabs-tabpane-active .table-bssula-summary")) === null || _document$querySelect === void 0 ? void 0 : _document$querySelect.clientHeight) || 0) - (((_document$querySelect2 = document.querySelector(".ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav")) === null || _document$querySelect2 === void 0 ? void 0 : _document$querySelect2.clientHeight) || 0) - (((_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';
|
|
17026
|
+
setHeight(h);
|
|
17027
|
+
setValue(_objectSpread2({}, value));
|
|
17028
|
+
}, 0);
|
|
17038
17029
|
};
|
|
17039
17030
|
//监测是否按下esc键
|
|
17040
17031
|
function checkFull() {
|
|
@@ -17219,23 +17210,8 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17219
17210
|
return tableProps;
|
|
17220
17211
|
};
|
|
17221
17212
|
var ShowFullScreen = function ShowFullScreen() {
|
|
17222
|
-
var
|
|
17223
|
-
|
|
17224
|
-
// window.parent.postMessage(
|
|
17225
|
-
// {
|
|
17226
|
-
// type: 'screenChange',
|
|
17227
|
-
// id: itemPath,
|
|
17228
|
-
// },
|
|
17229
|
-
// '*',
|
|
17230
|
-
// );
|
|
17231
|
-
// window.$wujie?.props.screenChange({
|
|
17232
|
-
// id: itemPath
|
|
17233
|
-
// });
|
|
17234
|
-
// setIsFnllScreen(!isFullScreen);
|
|
17235
|
-
// } else {
|
|
17236
|
-
// }
|
|
17237
|
-
var isFullScreen = document.fullScreen || document.webkitIsFullScreen || document.mozFullScreen;
|
|
17238
|
-
var contentEle = document.querySelector("body");
|
|
17213
|
+
var isFullScreen = window.top.document.fullScreen || window.top.document.webkitIsFullScreen || window.top.document.mozFullScreen;
|
|
17214
|
+
var contentEle = window.top.document.querySelector("body");
|
|
17239
17215
|
// addTabsNavStyle(isFullScreen);
|
|
17240
17216
|
if (contentEle && !isFullScreen) {
|
|
17241
17217
|
var fullScreenEle = contentEle.requestFullscreen || contentEle.mozRequestFullScreen || contentEle.webkitRequestFullScreen || contentEle.msRequestFullscreen;
|
|
@@ -17246,10 +17222,10 @@ var BsSulaQueryTable = (function (props) {
|
|
|
17246
17222
|
return;
|
|
17247
17223
|
}
|
|
17248
17224
|
}
|
|
17249
|
-
if (document && isFullScreen) {
|
|
17250
|
-
var exitFullScreen = document.exitFullscreen || document.mozCancelFullScreen || document.webkitCancelFullScreen || document.msExitFullscreen;
|
|
17225
|
+
if (window.top.document && isFullScreen) {
|
|
17226
|
+
var exitFullScreen = window.top.document.exitFullscreen || window.top.document.mozCancelFullScreen || window.top.document.webkitCancelFullScreen || window.top.document.msExitFullscreen;
|
|
17251
17227
|
if (exitFullScreen) {
|
|
17252
|
-
exitFullScreen.call(document);
|
|
17228
|
+
exitFullScreen.call(window.top.document);
|
|
17253
17229
|
setIsFnllScreen(false);
|
|
17254
17230
|
// getTableHeight();
|
|
17255
17231
|
return;
|
|
@@ -20064,7 +20040,8 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20064
20040
|
key: "componentDidMount",
|
|
20065
20041
|
value: function componentDidMount() {
|
|
20066
20042
|
var _window$$wujie,
|
|
20067
|
-
_this2 = this
|
|
20043
|
+
_this2 = this,
|
|
20044
|
+
_localStorage$getItem;
|
|
20068
20045
|
var _this$props = this.props,
|
|
20069
20046
|
history = _this$props.history,
|
|
20070
20047
|
location = _this$props.location,
|
|
@@ -20209,20 +20186,13 @@ var BasicLayout = /*#__PURE__*/function (_React$PureComponent) {
|
|
|
20209
20186
|
});
|
|
20210
20187
|
istParent = 0;
|
|
20211
20188
|
});
|
|
20212
|
-
|
|
20213
|
-
|
|
20214
|
-
|
|
20215
|
-
|
|
20216
|
-
|
|
20217
|
-
|
|
20218
|
-
|
|
20219
|
-
// .getItem('firstPage')
|
|
20220
|
-
// ?.slice(1)
|
|
20221
|
-
// .replace(/^\/\w+\//, '/'),
|
|
20222
|
-
// );
|
|
20223
|
-
// } else {
|
|
20224
|
-
// }
|
|
20225
|
-
history.push(location);
|
|
20189
|
+
if (localStorage.getItem('firstPage') && ((_localStorage$getItem = localStorage.getItem('firstPage')) === null || _localStorage$getItem === void 0 ? void 0 : _localStorage$getItem.startsWith("#/".concat(itemPath, "/")))) {
|
|
20190
|
+
var _localStorage$getItem2;
|
|
20191
|
+
istParent = 1;
|
|
20192
|
+
history.push((_localStorage$getItem2 = localStorage.getItem('firstPage')) === null || _localStorage$getItem2 === void 0 ? void 0 : _localStorage$getItem2.slice(1).replace(/^\/\w+\//, '/'));
|
|
20193
|
+
} else {
|
|
20194
|
+
history.push(location);
|
|
20195
|
+
}
|
|
20226
20196
|
}
|
|
20227
20197
|
}, {
|
|
20228
20198
|
key: "componentWillUnmount",
|
package/package.json
CHANGED
|
@@ -501,20 +501,20 @@ class BasicLayout extends React.PureComponent {
|
|
|
501
501
|
istParent = 0;
|
|
502
502
|
});
|
|
503
503
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
504
|
+
if (
|
|
505
|
+
localStorage.getItem('firstPage') &&
|
|
506
|
+
localStorage.getItem('firstPage')?.startsWith(`#/${itemPath}/`)
|
|
507
|
+
) {
|
|
508
|
+
istParent = 1;
|
|
509
|
+
history.push(
|
|
510
|
+
localStorage
|
|
511
|
+
.getItem('firstPage')
|
|
512
|
+
?.slice(1)
|
|
513
|
+
.replace(/^\/\w+\//, '/'),
|
|
514
|
+
);
|
|
515
|
+
} else {
|
|
516
|
+
history.push(location);
|
|
517
|
+
}
|
|
518
518
|
}
|
|
519
519
|
|
|
520
520
|
componentWillUnmount() {
|
|
@@ -62,24 +62,27 @@ export default (props: any) => {
|
|
|
62
62
|
const bsTableCode = tableCode || window.location.hash; //设置列字段的唯一标识
|
|
63
63
|
// 获取table高度
|
|
64
64
|
const getTableHeight = () => {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
document.
|
|
69
|
-
document.
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
0) -
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
65
|
+
setTimeout(() => {
|
|
66
|
+
const cancelHeight = window.top == window ? 303 : 223;
|
|
67
|
+
const isFullScreen: any =
|
|
68
|
+
window.top.document.fullScreen ||
|
|
69
|
+
window.top.document.webkitIsFullScreen ||
|
|
70
|
+
window.top.document.mozFullScreen;
|
|
71
|
+
const h =
|
|
72
|
+
document.body.clientHeight -
|
|
73
|
+
(document.querySelector(`.ant-tabs-tabpane-active .table-bssula-summary`)?.clientHeight || 0) -
|
|
74
|
+
(document.querySelector(`.ant-tabs-tabpane-active .list_top_tab .ant-tabs-nav`)?.clientHeight || 0) -
|
|
75
|
+
(document.querySelector(`.ant-tabs-tabpane-active .ant-form ant-form-horizontal`)?.clientHeight ||
|
|
76
|
+
0) -
|
|
77
|
+
(isFullScreen
|
|
78
|
+
? 0
|
|
79
|
+
: document.querySelector(`.ant-tabs-tabpane-active .ant-pro-page-container-warp`)
|
|
80
|
+
?.clientHeight || 0) -
|
|
81
|
+
cancelHeight +
|
|
82
|
+
'px';
|
|
83
|
+
setHeight(h);
|
|
84
|
+
setValue({ ...value });
|
|
85
|
+
}, 0)
|
|
83
86
|
};
|
|
84
87
|
|
|
85
88
|
//监测是否按下esc键
|
|
@@ -281,26 +284,11 @@ export default (props: any) => {
|
|
|
281
284
|
|
|
282
285
|
|
|
283
286
|
const ShowFullScreen = () => {
|
|
284
|
-
const { itemPath } = props;
|
|
285
|
-
// if (window.__POWERED_BY_WUJIE__) {
|
|
286
|
-
// window.parent.postMessage(
|
|
287
|
-
// {
|
|
288
|
-
// type: 'screenChange',
|
|
289
|
-
// id: itemPath,
|
|
290
|
-
// },
|
|
291
|
-
// '*',
|
|
292
|
-
// );
|
|
293
|
-
// window.$wujie?.props.screenChange({
|
|
294
|
-
// id: itemPath
|
|
295
|
-
// });
|
|
296
|
-
// setIsFnllScreen(!isFullScreen);
|
|
297
|
-
// } else {
|
|
298
|
-
// }
|
|
299
287
|
const isFullScreen: any =
|
|
300
|
-
document.fullScreen ||
|
|
301
|
-
document.webkitIsFullScreen ||
|
|
302
|
-
document.mozFullScreen;
|
|
303
|
-
let contentEle: any = document.querySelector(`body`);
|
|
288
|
+
window.top.document.fullScreen ||
|
|
289
|
+
window.top.document.webkitIsFullScreen ||
|
|
290
|
+
window.top.document.mozFullScreen;
|
|
291
|
+
let contentEle: any = window.top.document.querySelector(`body`);
|
|
304
292
|
// addTabsNavStyle(isFullScreen);
|
|
305
293
|
if (contentEle && !isFullScreen) {
|
|
306
294
|
let fullScreenEle =
|
|
@@ -315,14 +303,14 @@ export default (props: any) => {
|
|
|
315
303
|
return;
|
|
316
304
|
}
|
|
317
305
|
}
|
|
318
|
-
if (document && isFullScreen) {
|
|
306
|
+
if (window.top.document && isFullScreen) {
|
|
319
307
|
let exitFullScreen =
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
308
|
+
window.top.document.exitFullscreen ||
|
|
309
|
+
window.top.document.mozCancelFullScreen ||
|
|
310
|
+
window.top.document.webkitCancelFullScreen ||
|
|
311
|
+
window.top.document.msExitFullscreen;
|
|
324
312
|
if (exitFullScreen) {
|
|
325
|
-
exitFullScreen.call(document);
|
|
313
|
+
exitFullScreen.call(window.top.document);
|
|
326
314
|
setIsFnllScreen(false);
|
|
327
315
|
// getTableHeight();
|
|
328
316
|
return;
|
|
@@ -114,22 +114,11 @@ const DetailWrapper = React.memo(
|
|
|
114
114
|
useEffect(() => {}, []);
|
|
115
115
|
|
|
116
116
|
const ShowFullScreen = () => {
|
|
117
|
-
// if (window.top != window) {
|
|
118
|
-
// window.parent.postMessage(
|
|
119
|
-
// {
|
|
120
|
-
// type: 'screenChange',
|
|
121
|
-
// id: itemPath,
|
|
122
|
-
// },
|
|
123
|
-
// '*',
|
|
124
|
-
// );
|
|
125
|
-
// setIsFnllScreen(!isFullScreen);
|
|
126
|
-
// } else {
|
|
127
|
-
// }
|
|
128
117
|
const isFullScreen: any =
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
let contentEle: any = document.querySelector(`body`);
|
|
118
|
+
window.top.document.fullScreen ||
|
|
119
|
+
window.top.document.webkitIsFullScreen ||
|
|
120
|
+
window.top.document.mozFullScreen;
|
|
121
|
+
let contentEle: any = window.top.document.querySelector(`body`);
|
|
133
122
|
// addTabsNavStyle(isFullScreen);
|
|
134
123
|
if (contentEle && !isFullScreen) {
|
|
135
124
|
let fullScreenEle =
|
|
@@ -143,14 +132,14 @@ const DetailWrapper = React.memo(
|
|
|
143
132
|
return;
|
|
144
133
|
}
|
|
145
134
|
}
|
|
146
|
-
if (document && isFullScreen) {
|
|
135
|
+
if (window.top.document && isFullScreen) {
|
|
147
136
|
let exitFullScreen =
|
|
148
|
-
document.exitFullscreen ||
|
|
149
|
-
document.mozCancelFullScreen ||
|
|
150
|
-
document.webkitCancelFullScreen ||
|
|
151
|
-
document.msExitFullscreen;
|
|
137
|
+
window.top.document.exitFullscreen ||
|
|
138
|
+
window.top.document.mozCancelFullScreen ||
|
|
139
|
+
window.top.document.webkitCancelFullScreen ||
|
|
140
|
+
window.top.document.msExitFullscreen;
|
|
152
141
|
if (exitFullScreen) {
|
|
153
|
-
exitFullScreen.call(document);
|
|
142
|
+
exitFullScreen.call(window.top.document);
|
|
154
143
|
setIsFnllScreen(false);
|
|
155
144
|
return;
|
|
156
145
|
}
|