@sheinx/hooks 3.7.0 → 3.7.1-beta.1

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.
@@ -316,7 +316,7 @@ var usePositionStyle = exports.usePositionStyle = function usePositionStyle(conf
316
316
  // 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
317
317
  context.prevParentPosition = parentElNewPosition;
318
318
  });
319
- (0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize]);
319
+ (0, _react.useEffect)(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize === null || popupElSize === void 0 ? void 0 : popupElSize.width]);
320
320
  return {
321
321
  style: style
322
322
  };
@@ -307,7 +307,7 @@ export var usePositionStyle = function usePositionStyle(config) {
307
307
  // 当父元素的滚动容器滚动时,判断是否需要更新弹出层位置,包括是否隐藏弹出层(通过hideStyle隐藏,不是show状态)
308
308
  context.prevParentPosition = parentElNewPosition;
309
309
  });
310
- useEffect(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize]);
310
+ useEffect(updateStyle, [show, position, absolute, updateKey, fixedWidth, parentElNewPosition, popupElSize === null || popupElSize === void 0 ? void 0 : popupElSize.width]);
311
311
  return {
312
312
  style: style
313
313
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sheinx/hooks",
3
- "version": "3.7.0",
3
+ "version": "3.7.1-beta.1",
4
4
  "description": "",
5
5
  "keywords": [],
6
6
  "license": "MIT",