shineout 3.7.0-beta.15 → 3.7.0-beta.17
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 +10 -13
- 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
|
@@ -514,5 +514,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
514
514
|
// 此文件由脚本自动生成,请勿直接修改。
|
|
515
515
|
// This file was generated automatically by a script. Please do not modify it directly.
|
|
516
516
|
var _default = exports.default = {
|
|
517
|
-
version: '3.7.0-beta.
|
|
517
|
+
version: '3.7.0-beta.17'
|
|
518
518
|
};
|
package/dist/shineout.js
CHANGED
|
@@ -12217,7 +12217,7 @@ var handleStyle = function handleStyle(style) {
|
|
|
12217
12217
|
};
|
|
12218
12218
|
/* harmony default export */ var jss_style_handleStyle = (handleStyle);
|
|
12219
12219
|
;// CONCATENATED MODULE: ../shineout-style/src/version.ts
|
|
12220
|
-
/* harmony default export */ var version = ('3.7.0-beta.
|
|
12220
|
+
/* harmony default export */ var version = ('3.7.0-beta.17');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -25854,7 +25854,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25854
25854
|
'$wrapper & table > tfoot': {
|
|
25855
25855
|
position: 'sticky',
|
|
25856
25856
|
bottom: 0,
|
|
25857
|
-
zIndex:
|
|
25857
|
+
zIndex: fixedFixedIndex + 1
|
|
25858
25858
|
}
|
|
25859
25859
|
},
|
|
25860
25860
|
footWrapper: {
|
|
@@ -62853,6 +62853,7 @@ var Tr = function Tr(props) {
|
|
|
62853
62853
|
});
|
|
62854
62854
|
var setVirtualRowHeight = usePersistFn(function () {
|
|
62855
62855
|
if (props.setRowHeight && trRef.current) {
|
|
62856
|
+
if (trRef.current.getBoundingClientRect().height === 0) return;
|
|
62856
62857
|
var expandHeight = expandRef.current ? expandRef.current.getBoundingClientRect().height : 0;
|
|
62857
62858
|
props.setRowHeight(props.rowIndex, trRef.current.getBoundingClientRect().height + expandHeight);
|
|
62858
62859
|
}
|
|
@@ -63599,15 +63600,11 @@ var emptyRef = {
|
|
|
63599
63600
|
theadAndTfootHeight: context.theadAndTfootHeight
|
|
63600
63601
|
});
|
|
63601
63602
|
var syncHeaderScroll = usePersistFn(function (left) {
|
|
63602
|
-
var
|
|
63603
|
+
var _theadRef$current2;
|
|
63603
63604
|
if (props.hideHeader || !props.sticky) return;
|
|
63604
|
-
|
|
63605
|
-
|
|
63606
|
-
|
|
63607
|
-
if (item.scrollLeft !== left) {
|
|
63608
|
-
item.scrollLeft = left;
|
|
63609
|
-
}
|
|
63610
|
-
});
|
|
63605
|
+
if (theadRef && theadRef !== null && theadRef !== void 0 && theadRef.current && theadRef !== null && theadRef !== void 0 && (_theadRef$current2 = theadRef.current) !== null && _theadRef$current2 !== void 0 && _theadRef$current2.parentElement) {
|
|
63606
|
+
theadRef.current.parentElement.scrollLeft = left;
|
|
63607
|
+
}
|
|
63611
63608
|
});
|
|
63612
63609
|
|
|
63613
63610
|
// 简单表格的滚动事件
|
|
@@ -63916,10 +63913,10 @@ var emptyRef = {
|
|
|
63916
63913
|
|
|
63917
63914
|
// handle head and foot scroll
|
|
63918
63915
|
var handleHeaderWheel = usePersistFn(function (e) {
|
|
63919
|
-
var _theadRef$
|
|
63916
|
+
var _theadRef$current3;
|
|
63920
63917
|
var scrollEl = scrollRef.current;
|
|
63921
63918
|
if (!scrollEl) return;
|
|
63922
|
-
if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$
|
|
63919
|
+
if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$current3 = theadRef.current) !== null && _theadRef$current3 !== void 0 && _theadRef$current3.parentElement)) return;
|
|
63923
63920
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
63924
63921
|
var scrollLeft = scrollEl.scrollLeft + e.deltaX;
|
|
63925
63922
|
if (scrollLeft === scrollEl.scrollLeft) {
|
|
@@ -70371,7 +70368,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70371
70368
|
|
|
70372
70369
|
|
|
70373
70370
|
/* harmony default export */ var src_0 = ({
|
|
70374
|
-
version: '3.7.0-beta.
|
|
70371
|
+
version: '3.7.0-beta.17'
|
|
70375
70372
|
});
|
|
70376
70373
|
}();
|
|
70377
70374
|
/******/ return __webpack_exports__;
|