@sheinx/base 3.7.9-beta.2 → 3.7.9-beta.3
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/cjs/sticky/sticky.js +2 -1
- package/esm/sticky/sticky.js +2 -1
- package/package.json +2 -2
package/cjs/sticky/sticky.js
CHANGED
|
@@ -45,6 +45,7 @@ var events = ['scroll', 'pageshow', 'load', 'resize'];
|
|
|
45
45
|
// };
|
|
46
46
|
|
|
47
47
|
var Sticky = function Sticky(props) {
|
|
48
|
+
var _props$style;
|
|
48
49
|
if (props.target) {
|
|
49
50
|
devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
50
51
|
}
|
|
@@ -400,7 +401,7 @@ var Sticky = function Sticky(props) {
|
|
|
400
401
|
}
|
|
401
402
|
var StickyEl = show && parentVisible ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
402
403
|
style: _objectSpread(_objectSpread({
|
|
403
|
-
zIndex: defaultZIndex
|
|
404
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
404
405
|
}, style), elementSize),
|
|
405
406
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
406
407
|
className: props.className,
|
package/esm/sticky/sticky.js
CHANGED
|
@@ -39,6 +39,7 @@ var events = ['scroll', 'pageshow', 'load', 'resize'];
|
|
|
39
39
|
// };
|
|
40
40
|
|
|
41
41
|
var Sticky = function Sticky(props) {
|
|
42
|
+
var _props$style;
|
|
42
43
|
if (props.target) {
|
|
43
44
|
devUseWarning.deprecated('target', 'scrollContainer', 'Sticky');
|
|
44
45
|
}
|
|
@@ -394,7 +395,7 @@ var Sticky = function Sticky(props) {
|
|
|
394
395
|
}
|
|
395
396
|
var StickyEl = show && parentVisible ? /*#__PURE__*/_jsx("div", {
|
|
396
397
|
style: _objectSpread(_objectSpread({
|
|
397
|
-
zIndex: defaultZIndex
|
|
398
|
+
zIndex: ((_props$style = props.style) === null || _props$style === void 0 ? void 0 : _props$style.zIndex) || defaultZIndex
|
|
398
399
|
}, style), elementSize),
|
|
399
400
|
children: /*#__PURE__*/_jsx("div", {
|
|
400
401
|
className: props.className,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sheinx/base",
|
|
3
|
-
"version": "3.7.9-beta.
|
|
3
|
+
"version": "3.7.9-beta.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"module": "./esm/index.js",
|
|
11
11
|
"typings": "./cjs/index.d.ts",
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@sheinx/hooks": "3.7.9-beta.
|
|
13
|
+
"@sheinx/hooks": "3.7.9-beta.3",
|
|
14
14
|
"immer": "^10.0.0",
|
|
15
15
|
"classnames": "^2.0.0",
|
|
16
16
|
"@shined/reactive": "^0.1.3-alpha.0"
|