shineout 3.7.0-beta.14 → 3.7.0-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 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.14'
517
+ version: '3.7.0-beta.15'
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.14');
12220
+ /* harmony default export */ var version = ('3.7.0-beta.15');
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: {
@@ -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
- context.theadAndTfootHeight = ((theadRef === null || theadRef === void 0 || (_theadRef$current = theadRef.current) === null || _theadRef$current === void 0 ? void 0 : _theadRef$current.clientHeight) || 0) + (((_tfootRef$current = tfootRef.current) === null || _tfootRef$current === void 0 ? void 0 : _tfootRef$current.clientHeight) || 0);
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,
@@ -63740,7 +63748,7 @@ var emptyRef = {
63740
63748
  parent: tableRef === null || tableRef === void 0 ? void 0 : tableRef.current
63741
63749
  };
63742
63750
  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);
63751
+ var headWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.headWrapper, props.sticky && isScrollY && tableClasses.scrollY, props.sticky && !isScrollY && tableClasses.scrollX);
63744
63752
  var footWrapperClass = classnames_default()(tableClasses === null || tableClasses === void 0 ? void 0 : tableClasses.footWrapper);
63745
63753
  var renderHeadMirrorScroller = function renderHeadMirrorScroller() {
63746
63754
  var _scrollRef$current, _scrollRef$current2, _scrollRef$current3;
@@ -64099,7 +64107,8 @@ var TabsPanel = function TabsPanel(props) {
64099
64107
  active = _useTabsContext.active,
64100
64108
  lazy = _useTabsContext.lazy,
64101
64109
  setTabs = _useTabsContext.setTabs,
64102
- color = _useTabsContext.color;
64110
+ color = _useTabsContext.color,
64111
+ shape = _useTabsContext.shape;
64103
64112
  var isActive = active === id;
64104
64113
  var keekAlive = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
64105
64114
  (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useLayoutEffect)(function () {
@@ -64108,7 +64117,7 @@ var TabsPanel = function TabsPanel(props) {
64108
64117
  tab: tab,
64109
64118
  disabled: props.disabled,
64110
64119
  jssStyle: jssStyle,
64111
- background: background,
64120
+ background: shape !== 'button' && shape !== 'fill' ? background : undefined,
64112
64121
  color: props.color || (active === id ? color : undefined)
64113
64122
  };
64114
64123
  setTabs(function (prev) {
@@ -64137,7 +64146,7 @@ var TabsPanel = function TabsPanel(props) {
64137
64146
  });
64138
64147
  });
64139
64148
  };
64140
- }, [id, tab, color, active, props.disabled, props.jssStyle]);
64149
+ }, [id, tab, color, active, shape, props.disabled, props.jssStyle]);
64141
64150
  if (!isActive && lazy && !keekAlive.current) {
64142
64151
  return null;
64143
64152
  }
@@ -70362,7 +70371,7 @@ var upload_interface = __webpack_require__(8821);
70362
70371
 
70363
70372
 
70364
70373
  /* harmony default export */ var src_0 = ({
70365
- version: '3.7.0-beta.14'
70374
+ version: '3.7.0-beta.15'
70366
70375
  });
70367
70376
  }();
70368
70377
  /******/ return __webpack_exports__;