shineout 3.7.4-beta.1 → 3.7.4-beta.2
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/index.js +1 -1
- package/dist/shineout.js +8 -7
- package/dist/shineout.js.map +1 -1
- package/dist/shineout.min.js +1 -1
- package/dist/shineout.min.js.map +1 -1
- package/esm/index.js +1 -1
- package/package.json +5 -5
package/cjs/index.js
CHANGED
|
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
522
522
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
523
523
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
524
524
|
var _default = exports.default = {
|
|
525
|
-
version: '3.7.4-beta.
|
|
525
|
+
version: '3.7.4-beta.2'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12234,7 +12234,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12234
12234
|
};
|
|
12235
12235
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12236
12236
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12237
|
-
/* harmony default export */ var version = ('3.7.4-beta.
|
|
12237
|
+
/* harmony default export */ var version = ('3.7.4-beta.2');
|
|
12238
12238
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12239
12239
|
|
|
12240
12240
|
|
|
@@ -30845,14 +30845,14 @@ var useCheckElementBorderWidth = function useCheckElementBorderWidth(elementRef)
|
|
|
30845
30845
|
|
|
30846
30846
|
// 获取指定方向上的border宽度之和
|
|
30847
30847
|
var getBorderWidth = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useCallback)(function () {
|
|
30848
|
-
if (elementRef.current) {
|
|
30848
|
+
if (elementRef.current && options.enable) {
|
|
30849
30849
|
var _options$direction = options.direction,
|
|
30850
30850
|
direction = _options$direction === void 0 ? 'horizontal' : _options$direction;
|
|
30851
30851
|
var style = window.getComputedStyle(elementRef.current);
|
|
30852
30852
|
var _borderWidth = direction === 'horizontal' ? parseFloat(style.borderLeftWidth) + parseFloat(style.borderRightWidth) : parseFloat(style.borderTopWidth) + parseFloat(style.borderBottomWidth);
|
|
30853
30853
|
setBorderWidth(_borderWidth);
|
|
30854
30854
|
}
|
|
30855
|
-
}, [elementRef]);
|
|
30855
|
+
}, [elementRef, options.enable]);
|
|
30856
30856
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
30857
30857
|
getBorderWidth();
|
|
30858
30858
|
}, [getBorderWidth]);
|
|
@@ -31100,7 +31100,8 @@ var usePositionStyle = function usePositionStyle(config) {
|
|
|
31100
31100
|
enable: show && adjust
|
|
31101
31101
|
});
|
|
31102
31102
|
var parentElBorderWidth = useCheckElementBorderWidth(parentElRef, {
|
|
31103
|
-
direction: 'horizontal'
|
|
31103
|
+
direction: 'horizontal',
|
|
31104
|
+
enable: show
|
|
31104
31105
|
});
|
|
31105
31106
|
var popupElSize = useCheckElementSize(popupElRef, {
|
|
31106
31107
|
enable: show
|
|
@@ -32043,12 +32044,12 @@ var AbsoluteList = function AbsoluteList(props) {
|
|
|
32043
32044
|
return scrollElRefProp || scrollElRefContext || closestScrollContainerRef;
|
|
32044
32045
|
}, [scrollElRefProp, scrollElRefContext]);
|
|
32045
32046
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
32046
|
-
if (scrollElRefProp || scrollElRefContext) return;
|
|
32047
|
+
if (scrollElRefProp || scrollElRefContext || !focus) return;
|
|
32047
32048
|
var closestScrollContainer = getClosestScrollContainer(parentElRef.current);
|
|
32048
32049
|
if (closestScrollContainer) {
|
|
32049
32050
|
closestScrollContainerRef.current = closestScrollContainer;
|
|
32050
32051
|
}
|
|
32051
|
-
}, [parentElRef, scrollElRefProp, scrollElRefContext]);
|
|
32052
|
+
}, [parentElRef, scrollElRefProp, scrollElRefContext, focus]);
|
|
32052
32053
|
var _usePositionStyle = usePositionStyle({
|
|
32053
32054
|
getContainer: getRoot,
|
|
32054
32055
|
position: position,
|
|
@@ -71617,7 +71618,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
71617
71618
|
|
|
71618
71619
|
|
|
71619
71620
|
/* harmony default export */ var src_0 = ({
|
|
71620
|
-
version: '3.7.4-beta.
|
|
71621
|
+
version: '3.7.4-beta.2'
|
|
71621
71622
|
});
|
|
71622
71623
|
}();
|
|
71623
71624
|
/******/ return __webpack_exports__;
|