shineout 3.7.0-beta.14 → 3.7.0-beta.16
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 +26 -21
- 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.16'
|
|
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.16');
|
|
12221
12221
|
;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
|
|
12222
12222
|
|
|
12223
12223
|
|
|
@@ -21765,9 +21765,6 @@ var modalStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
21765
21765
|
height: '100vh',
|
|
21766
21766
|
width: '100vw',
|
|
21767
21767
|
overflow: 'auto'
|
|
21768
|
-
},
|
|
21769
|
-
'& $body': {
|
|
21770
|
-
minHeight: 'auto'
|
|
21771
21768
|
}
|
|
21772
21769
|
},
|
|
21773
21770
|
wrapperZoom: {
|
|
@@ -25857,7 +25854,7 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25857
25854
|
'$wrapper & table > tfoot': {
|
|
25858
25855
|
position: 'sticky',
|
|
25859
25856
|
bottom: 0,
|
|
25860
|
-
zIndex:
|
|
25857
|
+
zIndex: fixedFixedIndex + 1
|
|
25861
25858
|
}
|
|
25862
25859
|
},
|
|
25863
25860
|
footWrapper: {
|
|
@@ -25877,6 +25874,11 @@ var tableStyle = objectSpread2_default()(objectSpread2_default()({
|
|
|
25877
25874
|
background: 'transparent'
|
|
25878
25875
|
}))
|
|
25879
25876
|
},
|
|
25877
|
+
scrollX: {
|
|
25878
|
+
'&$headWrapper, &$footWrapper': {
|
|
25879
|
+
overflowX: 'hidden'
|
|
25880
|
+
}
|
|
25881
|
+
},
|
|
25880
25882
|
emptyWrapper: {
|
|
25881
25883
|
minHeight: '170px',
|
|
25882
25884
|
width: '100%',
|
|
@@ -63575,7 +63577,13 @@ var emptyRef = {
|
|
|
63575
63577
|
});
|
|
63576
63578
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useEffect)(function () {
|
|
63577
63579
|
var _theadRef$current, _tfootRef$current;
|
|
63578
|
-
|
|
63580
|
+
var theadHeight = (theadRef === null || theadRef === void 0 || (_theadRef$current = theadRef.current) === null || _theadRef$current === void 0 ? void 0 : _theadRef$current.clientHeight) || 0;
|
|
63581
|
+
var tfootHeight = ((_tfootRef$current = tfootRef.current) === null || _tfootRef$current === void 0 ? void 0 : _tfootRef$current.clientHeight) || 0;
|
|
63582
|
+
if (props.sticky) {
|
|
63583
|
+
context.theadAndTfootHeight = tfootHeight;
|
|
63584
|
+
} else {
|
|
63585
|
+
context.theadAndTfootHeight = theadHeight + tfootHeight;
|
|
63586
|
+
}
|
|
63579
63587
|
}, [theadRef.current, tfootRef.current]);
|
|
63580
63588
|
var virtualInfo = use_table_virtual({
|
|
63581
63589
|
disabled: !virtual,
|
|
@@ -63591,15 +63599,11 @@ var emptyRef = {
|
|
|
63591
63599
|
theadAndTfootHeight: context.theadAndTfootHeight
|
|
63592
63600
|
});
|
|
63593
63601
|
var syncHeaderScroll = usePersistFn(function (left) {
|
|
63594
|
-
var
|
|
63602
|
+
var _theadRef$current2;
|
|
63595
63603
|
if (props.hideHeader || !props.sticky) return;
|
|
63596
|
-
|
|
63597
|
-
|
|
63598
|
-
|
|
63599
|
-
if (item.scrollLeft !== left) {
|
|
63600
|
-
item.scrollLeft = left;
|
|
63601
|
-
}
|
|
63602
|
-
});
|
|
63604
|
+
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) {
|
|
63605
|
+
theadRef.current.parentElement.scrollLeft = left;
|
|
63606
|
+
}
|
|
63603
63607
|
});
|
|
63604
63608
|
|
|
63605
63609
|
// 简单表格的滚动事件
|
|
@@ -63740,7 +63744,7 @@ var emptyRef = {
|
|
|
63740
63744
|
parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
|
|
63741
63745
|
};
|
|
63742
63746
|
var isRenderVirtualTable = virtual || props.sticky || !((_props$data3 = props.data) !== null && _props$data3 !== void 0 && _props$data3.length);
|
|
63743
|
-
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, props.sticky && isScrollY && tableClasses.scrollY);
|
|
63747
|
+
var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, props.sticky && isScrollY && tableClasses.scrollY, props.sticky && !isScrollY && tableClasses.scrollX);
|
|
63744
63748
|
var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper);
|
|
63745
63749
|
var renderHeadMirrorScroller = function renderHeadMirrorScroller() {
|
|
63746
63750
|
var _scrollRef$current, _scrollRef$current2, _scrollRef$current3;
|
|
@@ -63908,10 +63912,10 @@ var emptyRef = {
|
|
|
63908
63912
|
|
|
63909
63913
|
// handle head and foot scroll
|
|
63910
63914
|
var handleHeaderWheel = usePersistFn(function (e) {
|
|
63911
|
-
var _theadRef$
|
|
63915
|
+
var _theadRef$current3;
|
|
63912
63916
|
var scrollEl = scrollRef.current;
|
|
63913
63917
|
if (!scrollEl) return;
|
|
63914
|
-
if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$
|
|
63918
|
+
if (!(theadRef !== null && theadRef !== void 0 && (_theadRef$current3 = theadRef.current) !== null && _theadRef$current3 !== void 0 && _theadRef$current3.parentElement)) return;
|
|
63915
63919
|
var max = scrollEl.scrollWidth - scrollEl.clientWidth;
|
|
63916
63920
|
var scrollLeft = scrollEl.scrollLeft + e.deltaX;
|
|
63917
63921
|
if (scrollLeft === scrollEl.scrollLeft) {
|
|
@@ -64099,7 +64103,8 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
64099
64103
|
active = _useTabsContext.active,
|
|
64100
64104
|
lazy = _useTabsContext.lazy,
|
|
64101
64105
|
setTabs = _useTabsContext.setTabs,
|
|
64102
|
-
color = _useTabsContext.color
|
|
64106
|
+
color = _useTabsContext.color,
|
|
64107
|
+
shape = _useTabsContext.shape;
|
|
64103
64108
|
var isActive = active === id;
|
|
64104
64109
|
var keekAlive = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
|
|
64105
64110
|
(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
|
|
@@ -64108,7 +64113,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
64108
64113
|
tab: tab,
|
|
64109
64114
|
disabled: props.disabled,
|
|
64110
64115
|
jssStyle: jssStyle,
|
|
64111
|
-
background: background,
|
|
64116
|
+
background: shape !== 'button' && shape !== 'fill' ? background : undefined,
|
|
64112
64117
|
color: props.color || (active === id ? color : undefined)
|
|
64113
64118
|
};
|
|
64114
64119
|
setTabs(function (prev) {
|
|
@@ -64137,7 +64142,7 @@ var TabsPanel = function TabsPanel(props) {
|
|
|
64137
64142
|
});
|
|
64138
64143
|
});
|
|
64139
64144
|
};
|
|
64140
|
-
}, [id, tab, color, active, props.disabled, props.jssStyle]);
|
|
64145
|
+
}, [id, tab, color, active, shape, props.disabled, props.jssStyle]);
|
|
64141
64146
|
if (!isActive && lazy && !keekAlive.current) {
|
|
64142
64147
|
return null;
|
|
64143
64148
|
}
|
|
@@ -70362,7 +70367,7 @@ var upload_interface = __webpack_require__(8821);
|
|
|
70362
70367
|
|
|
70363
70368
|
|
|
70364
70369
|
/* harmony default export */ var src_0 = ({
|
|
70365
|
-
version: '3.7.0-beta.
|
|
70370
|
+
version: '3.7.0-beta.16'
|
|
70366
70371
|
});
|
|
70367
70372
|
}();
|
|
70368
70373
|
/******/ return __webpack_exports__;
|