shineout 3.2.5-beta.1 → 3.2.6-beta.0
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 +6 -17
- 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
|
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
476
476
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
477
477
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
478
478
|
var _default = exports.default = {
|
|
479
|
-
version: '3.2.
|
|
479
|
+
version: '3.2.6-beta.0'
|
|
480
480
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -11960,7 +11960,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
11960
11960
|
};
|
|
11961
11961
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
11962
11962
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
11963
|
-
/* harmony default export */ var version = ('3.2.
|
|
11963
|
+
/* harmony default export */ var version = ('3.2.6-beta.0');
|
|
11964
11964
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
11965
11965
|
|
|
11966
11966
|
|
|
@@ -54903,7 +54903,7 @@ var useTableLayout = function useTableLayout(props) {
|
|
|
54903
54903
|
(_cancelFunc = cancelFunc) === null || _cancelFunc === void 0 || _cancelFunc();
|
|
54904
54904
|
};
|
|
54905
54905
|
}, [scrollRef.current]);
|
|
54906
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.
|
|
54906
|
+
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
54907
54907
|
if (adjust) {
|
|
54908
54908
|
getColgroup(adjust === 'drag');
|
|
54909
54909
|
setAdjust(false);
|
|
@@ -55179,6 +55179,7 @@ var useTableTree = function useTableTree(props) {
|
|
|
55179
55179
|
|
|
55180
55180
|
|
|
55181
55181
|
|
|
55182
|
+
|
|
55182
55183
|
var useTableVirtual = function useTableVirtual(props) {
|
|
55183
55184
|
var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
55184
55185
|
_useState2 = slicedToArray_default()(_useState, 2),
|
|
@@ -55196,6 +55197,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
55196
55197
|
_useState8 = slicedToArray_default()(_useState7, 2),
|
|
55197
55198
|
startIndex = _useState8[0],
|
|
55198
55199
|
setStartIndex = _useState8[1];
|
|
55200
|
+
var preIndex = usePrevious(startIndex);
|
|
55199
55201
|
var _useState9 = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
|
|
55200
55202
|
_useState10 = slicedToArray_default()(_useState9, 2),
|
|
55201
55203
|
offsetY = _useState10[0],
|
|
@@ -55208,8 +55210,7 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
55208
55210
|
rateTimer: null,
|
|
55209
55211
|
topTimer: null,
|
|
55210
55212
|
controlScrollRate: null,
|
|
55211
|
-
heightCallback: null
|
|
55212
|
-
preIndex: null
|
|
55213
|
+
heightCallback: null
|
|
55213
55214
|
}),
|
|
55214
55215
|
context = _useRef.current;
|
|
55215
55216
|
var getTranslate = usePersistFn(function (left, top) {
|
|
@@ -55242,8 +55243,6 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
55242
55243
|
if (context.shouldUpdateHeight) {
|
|
55243
55244
|
setHeight(getContentHeight(props.data.length - 1));
|
|
55244
55245
|
}
|
|
55245
|
-
var preIndex = context.preIndex;
|
|
55246
|
-
// 解决: 从下往上滚 由于高度变化会导致滚动条跳动
|
|
55247
55246
|
if (preIndex && preIndex > startIndex && startIndex === index) {
|
|
55248
55247
|
// 发生在顶部
|
|
55249
55248
|
if (context.heightCallback) return;
|
|
@@ -55348,16 +55347,6 @@ var useTableVirtual = function useTableVirtual(props) {
|
|
|
55348
55347
|
props.scrollRef.current.scrollTop = beforeHeight;
|
|
55349
55348
|
}
|
|
55350
55349
|
});
|
|
55351
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
55352
|
-
// 记录preIndex
|
|
55353
|
-
context.preIndex = startIndex;
|
|
55354
|
-
}, [startIndex]);
|
|
55355
|
-
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
55356
|
-
// 数据变化的时候清空掉 preIndex, 如果之前有缓存的index, setRowHeight 会有问题
|
|
55357
|
-
return function () {
|
|
55358
|
-
context.preIndex = null;
|
|
55359
|
-
};
|
|
55360
|
-
}, [props.data]);
|
|
55361
55350
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
55362
55351
|
if (props.disabled) return;
|
|
55363
55352
|
if (offsetY) {
|
|
@@ -63100,7 +63089,7 @@ var upload_interface = __webpack_require__(4412);
|
|
|
63100
63089
|
|
|
63101
63090
|
|
|
63102
63091
|
/* harmony default export */ var src_0 = ({
|
|
63103
|
-
version: '3.2.
|
|
63092
|
+
version: '3.2.6-beta.0'
|
|
63104
63093
|
});
|
|
63105
63094
|
}();
|
|
63106
63095
|
/******/ return __webpack_exports__;
|