shineout 3.10.2 → 3.10.3-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.
- package/cjs/index.js +1 -1
- package/dist/shineout.js +17 -15
- 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
|
@@ -545,5 +545,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
545
545
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
546
546
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
547
547
|
var _default = exports.default = {
|
|
548
|
-
version: '3.10.
|
|
548
|
+
version: '3.10.3-beta.1'
|
|
549
549
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -13736,7 +13736,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
13736
13736
|
};
|
|
13737
13737
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
13738
13738
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
13739
|
-
/* harmony default export */ var version = ('3.10.
|
|
13739
|
+
/* harmony default export */ var version = ('3.10.3-beta.1');
|
|
13740
13740
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
13741
13741
|
|
|
13742
13742
|
|
|
@@ -32937,7 +32937,8 @@ var addResizeObserver = function addResizeObserver(el, handler) {
|
|
|
32937
32937
|
}
|
|
32938
32938
|
if (options.lazy && el.getAttribute('data-observer-hidden') === 'true') {
|
|
32939
32939
|
el.removeAttribute('data-observer-hidden');
|
|
32940
|
-
|
|
32940
|
+
// 隐藏前已测量过有效尺寸才跳过;初始化即隐藏(如父容器 display:none)的元素首次可见时需要触发回调
|
|
32941
|
+
if (lastWidth || lastHeight) return;
|
|
32941
32942
|
}
|
|
32942
32943
|
if (width && direction === 'x') {
|
|
32943
32944
|
if (lastWidth !== width) {
|
|
@@ -70706,8 +70707,6 @@ function Table(props) {
|
|
|
70706
70707
|
};
|
|
70707
70708
|
var _useRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)({
|
|
70708
70709
|
emptyHeight: 0,
|
|
70709
|
-
theadHeight: 0,
|
|
70710
|
-
tfootHeight: 0,
|
|
70711
70710
|
scrollingTimer: null
|
|
70712
70711
|
}),
|
|
70713
70712
|
context = _useRef.current;
|
|
@@ -70859,16 +70858,19 @@ function Table(props) {
|
|
|
70859
70858
|
onChange: inputableData.onChange,
|
|
70860
70859
|
disabled: props.disabled
|
|
70861
70860
|
});
|
|
70861
|
+
var _useState7 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
70862
|
+
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
70863
|
+
theadHeight = _useState8[0],
|
|
70864
|
+
setTheadHeight = _useState8[1];
|
|
70865
|
+
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
70866
|
+
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
70867
|
+
tfootHeight = _useState10[0],
|
|
70868
|
+
setTfootHeight = _useState10[1];
|
|
70862
70869
|
var handleTheadAndTfootHeight = usePersistFn(function () {
|
|
70863
70870
|
var _theadRef$current, _tfootRef$current;
|
|
70864
|
-
|
|
70865
|
-
|
|
70866
|
-
|
|
70867
|
-
context.tfootHeight = tfootHeight;
|
|
70868
|
-
} else {
|
|
70869
|
-
context.theadHeight = theadHeight;
|
|
70870
|
-
context.tfootHeight = tfootHeight;
|
|
70871
|
-
}
|
|
70871
|
+
// sticky 时表头由 Sticky 单独渲染,不计入虚拟列表高度
|
|
70872
|
+
if (!props.sticky) setTheadHeight(((_theadRef$current = theadRef.current) === null || _theadRef$current === void 0 ? void 0 : _theadRef$current.clientHeight) || 0);
|
|
70873
|
+
setTfootHeight(((_tfootRef$current = tfootRef.current) === null || _tfootRef$current === void 0 ? void 0 : _tfootRef$current.clientHeight) || 0);
|
|
70872
70874
|
});
|
|
70873
70875
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
70874
70876
|
handleTheadAndTfootHeight();
|
|
@@ -70907,8 +70909,8 @@ function Table(props) {
|
|
|
70907
70909
|
innerRef: tbodyRef,
|
|
70908
70910
|
scrollLeft: props.scrollLeft,
|
|
70909
70911
|
isRtl: isRtl,
|
|
70910
|
-
theadHeight:
|
|
70911
|
-
tfootHeight:
|
|
70912
|
+
theadHeight: theadHeight,
|
|
70913
|
+
tfootHeight: tfootHeight,
|
|
70912
70914
|
virtualScrollContainer: props.virtualScrollContainer,
|
|
70913
70915
|
tableRef: tableRef,
|
|
70914
70916
|
externalStickyHeader: !!props.virtualScrollContainer && !!props.sticky
|
|
@@ -80157,7 +80159,7 @@ var watermark_interface = __webpack_require__(6640);
|
|
|
80157
80159
|
|
|
80158
80160
|
|
|
80159
80161
|
/* harmony default export */ var src_0 = ({
|
|
80160
|
-
version: '3.10.
|
|
80162
|
+
version: '3.10.3-beta.1'
|
|
80161
80163
|
});
|
|
80162
80164
|
}();
|
|
80163
80165
|
/******/ return __webpack_exports__;
|