@bit-sun/business-component 2.3.24-alpha.1 → 2.3.24
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
|
@@ -11581,9 +11581,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
11581
11581
|
_ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
|
|
11582
11582
|
donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
|
|
11583
11583
|
title = _ref.title,
|
|
11584
|
-
pathToRegexp = _ref.pathToRegexp
|
|
11585
|
-
_ref$fixed = _ref.fixed,
|
|
11586
|
-
fixed = _ref$fixed === void 0 ? false : _ref$fixed;
|
|
11584
|
+
pathToRegexp = _ref.pathToRegexp;
|
|
11587
11585
|
var _useState3 = useState(false),
|
|
11588
11586
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
11589
11587
|
isFullScreen = _useState4[0],
|
|
@@ -11701,7 +11699,7 @@ var DetailWrapper = /*#__PURE__*/React.memo(function (_ref) {
|
|
|
11701
11699
|
};
|
|
11702
11700
|
return /*#__PURE__*/React.createElement(Anchor, {
|
|
11703
11701
|
key: "".concat(pathname, "_anchor"),
|
|
11704
|
-
offsetTop:
|
|
11702
|
+
offsetTop: window.top == window ? 78 : 0,
|
|
11705
11703
|
getContainer: function getContainer() {
|
|
11706
11704
|
return window.document.body;
|
|
11707
11705
|
}
|
package/dist/index.js
CHANGED
|
@@ -11600,9 +11600,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
11600
11600
|
_ref$donotNeedShowScr = _ref.donotNeedShowScreenIcon,
|
|
11601
11601
|
donotNeedShowScreenIcon = _ref$donotNeedShowScr === void 0 ? false : _ref$donotNeedShowScr,
|
|
11602
11602
|
title = _ref.title,
|
|
11603
|
-
pathToRegexp = _ref.pathToRegexp
|
|
11604
|
-
_ref$fixed = _ref.fixed,
|
|
11605
|
-
fixed = _ref$fixed === void 0 ? false : _ref$fixed;
|
|
11603
|
+
pathToRegexp = _ref.pathToRegexp;
|
|
11606
11604
|
var _useState3 = React.useState(false),
|
|
11607
11605
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
11608
11606
|
isFullScreen = _useState4[0],
|
|
@@ -11720,7 +11718,7 @@ var DetailWrapper = /*#__PURE__*/React__default['default'].memo(function (_ref)
|
|
|
11720
11718
|
};
|
|
11721
11719
|
return /*#__PURE__*/React__default['default'].createElement(antd.Anchor, {
|
|
11722
11720
|
key: "".concat(pathname, "_anchor"),
|
|
11723
|
-
offsetTop:
|
|
11721
|
+
offsetTop: window.top == window ? 78 : 0,
|
|
11724
11722
|
getContainer: function getContainer() {
|
|
11725
11723
|
return window.document.body;
|
|
11726
11724
|
}
|
package/package.json
CHANGED
|
@@ -63,7 +63,6 @@ const DetailWrapper = React.memo(
|
|
|
63
63
|
donotNeedShowScreenIcon=false,
|
|
64
64
|
title,
|
|
65
65
|
pathToRegexp,
|
|
66
|
-
fixed=false,
|
|
67
66
|
}: any) => {
|
|
68
67
|
const [isFullScreen, setIsFnllScreen]: any = useState(false);
|
|
69
68
|
const [breadcrumbArr, setBreadCrumbArr]: any = useState([]);
|
|
@@ -212,7 +211,7 @@ const DetailWrapper = React.memo(
|
|
|
212
211
|
return (
|
|
213
212
|
<Anchor
|
|
214
213
|
key={`${pathname}_anchor`}
|
|
215
|
-
offsetTop={
|
|
214
|
+
offsetTop={window.top == window ? 78 : 0}
|
|
216
215
|
getContainer={() => window.document.body}
|
|
217
216
|
>
|
|
218
217
|
<div>
|