shineout 3.9.3-beta.14 → 3.9.3-beta.15
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 -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.9.3-beta.
|
|
525
|
+
version: '3.9.3-beta.15'
|
|
526
526
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12401,7 +12401,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12401
12401
|
};
|
|
12402
12402
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12403
12403
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12404
|
-
/* harmony default export */ var version = ('3.9.3-beta.
|
|
12404
|
+
/* harmony default export */ var version = ('3.9.3-beta.15');
|
|
12405
12405
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12406
12406
|
|
|
12407
12407
|
|
|
@@ -64680,14 +64680,14 @@ var useColumns = function useColumns(props) {
|
|
|
64680
64680
|
});
|
|
64681
64681
|
}, []);
|
|
64682
64682
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
64683
|
-
var _props$scrollRef$curr2;
|
|
64684
64683
|
if (!props.virtualColumn) return;
|
|
64685
|
-
if (
|
|
64684
|
+
if (props.scrollRef.current) {
|
|
64685
|
+
var _props$scrollRef$curr2;
|
|
64686
64686
|
handleScroll({
|
|
64687
|
-
scrollLeft: 0
|
|
64687
|
+
scrollLeft: (_props$scrollRef$curr2 = props.scrollRef.current) === null || _props$scrollRef$curr2 === void 0 ? void 0 : _props$scrollRef$curr2.scrollLeft
|
|
64688
64688
|
});
|
|
64689
64689
|
}
|
|
64690
|
-
}, [(_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length]);
|
|
64690
|
+
}, [(_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.length, columns]);
|
|
64691
64691
|
var processedColumns = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
|
|
64692
64692
|
if (!props.virtualColumn) return columns;
|
|
64693
64693
|
return columns.map(function (col, index) {
|
|
@@ -64696,14 +64696,21 @@ var useColumns = function useColumns(props) {
|
|
|
64696
64696
|
}
|
|
64697
64697
|
if (index < startIndex || index > startIndex + renderedCount) {
|
|
64698
64698
|
var colSpan;
|
|
64699
|
+
var colSpanWidth;
|
|
64699
64700
|
if (index > startIndex + renderedCount && index === startIndex + renderedCount + 1) {
|
|
64700
64701
|
colSpan = function colSpan() {
|
|
64701
64702
|
return middleColumns.length - (startIndex + renderedCount) + 1;
|
|
64702
64703
|
};
|
|
64704
|
+
colSpanWidth = middleColumns.slice(startIndex + renderedCount).reduce(function (sum, c) {
|
|
64705
|
+
return sum + (c.width || 0);
|
|
64706
|
+
}, 0);
|
|
64703
64707
|
} else if (index < startIndex && index === leftFixedColumns.length && startIndex > 0) {
|
|
64704
64708
|
colSpan = function colSpan() {
|
|
64705
64709
|
return startIndex;
|
|
64706
64710
|
};
|
|
64711
|
+
colSpanWidth = middleColumns.slice(0, startIndex).reduce(function (sum, c) {
|
|
64712
|
+
return sum + (c.width || 0);
|
|
64713
|
+
}, 0);
|
|
64707
64714
|
}
|
|
64708
64715
|
var hiddenTitle = context.groupLevel > 0 ? col.title : null;
|
|
64709
64716
|
return objectSpread2_default()(objectSpread2_default()({}, col), {}, {
|
|
@@ -64711,7 +64718,10 @@ var useColumns = function useColumns(props) {
|
|
|
64711
64718
|
render: function render() {
|
|
64712
64719
|
return null;
|
|
64713
64720
|
},
|
|
64714
|
-
title: hiddenTitle
|
|
64721
|
+
title: hiddenTitle,
|
|
64722
|
+
style: {
|
|
64723
|
+
width: colSpanWidth
|
|
64724
|
+
}
|
|
64715
64725
|
});
|
|
64716
64726
|
}
|
|
64717
64727
|
return col;
|
|
@@ -74731,7 +74741,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
74731
74741
|
|
|
74732
74742
|
|
|
74733
74743
|
/* harmony default export */ var src_0 = ({
|
|
74734
|
-
version: '3.9.3-beta.
|
|
74744
|
+
version: '3.9.3-beta.15'
|
|
74735
74745
|
});
|
|
74736
74746
|
}();
|
|
74737
74747
|
/******/ return __webpack_exports__;
|