shineout 3.5.5-beta.2 → 3.5.5-beta.3

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
@@ -507,5 +507,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
507
507
  // 此文件由脚本自动生成,请勿直接修改。
508
508
  // This file was generated automatically by a script. Please do not modify it directly.
509
509
  var _default = exports.default = {
510
- version: '3.5.5-beta.2'
510
+ version: '3.5.5-beta.3'
511
511
  };
package/dist/shineout.js CHANGED
@@ -12040,7 +12040,7 @@ var handleStyle = function handleStyle(style) {
12040
12040
  };
12041
12041
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12042
12042
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12043
- /* harmony default export */ var version = ('3.5.5-beta.2');
12043
+ /* harmony default export */ var version = ('3.5.5-beta.3');
12044
12044
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12045
12045
 
12046
12046
 
@@ -60494,9 +60494,6 @@ var virtualScrollerStyle = {
60494
60494
  overflow: 'auto',
60495
60495
  width: '100%'
60496
60496
  };
60497
- var table_emptyStyle = objectSpread2_default()(objectSpread2_default()({}, virtualScrollerStyle), {}, {
60498
- height: 0
60499
- });
60500
60497
  var scrollWrapperStyle = {
60501
60498
  flex: 1,
60502
60499
  minHeight: 0,
@@ -60524,6 +60521,15 @@ var emptyRef = {
60524
60521
  var mirrorScrollRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60525
60522
  var tableRef = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(null);
60526
60523
  var browserScrollbarWidth = useScrollbarWidth();
60524
+ var emptyStyle = objectSpread2_default()(objectSpread2_default()({}, virtualScrollerStyle), {}, {
60525
+ overflow: 'auto hidden',
60526
+ position: 'absolute',
60527
+ zIndex: 1,
60528
+ bottom: 0,
60529
+ left: 0,
60530
+ right: 0,
60531
+ height: browserScrollbarWidth
60532
+ });
60527
60533
  if (props.fixed) {
60528
60534
  table_devUseWarning.deprecated('fixed', 'virtual', 'Table');
60529
60535
  }
@@ -60868,7 +60874,7 @@ var emptyRef = {
60868
60874
  })
60869
60875
  })), /*#__PURE__*/(0,jsx_runtime.jsx)(virtual_scroll_scroll, {
60870
60876
  style: scrollWrapperStyle,
60871
- scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : table_emptyStyle,
60877
+ scrollerStyle: (_props$data4 = props.data) !== null && _props$data4 !== void 0 && _props$data4.length ? virtualScrollerStyle : emptyStyle,
60872
60878
  wrapperRef: scrollRef,
60873
60879
  scrollWidth: width || 1,
60874
60880
  scrollHeight: virtual ? virtualInfo.scrollHeight : tbodyHeight,
@@ -61117,7 +61123,6 @@ var TabsPanel = function TabsPanel(props) {
61117
61123
  active = _useTabsContext.active,
61118
61124
  lazy = _useTabsContext.lazy,
61119
61125
  setTabs = _useTabsContext.setTabs,
61120
- tabs = _useTabsContext.tabs,
61121
61126
  color = _useTabsContext.color;
61122
61127
  var isActive = active === id;
61123
61128
  var keekAlive = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useRef)(false);
@@ -61144,9 +61149,6 @@ var TabsPanel = function TabsPanel(props) {
61144
61149
  return function () {
61145
61150
  // Panel卸载了通知父组件,去销毁相应的TabsHeader
61146
61151
  setTabs(function (prev) {
61147
- var index = prev.findIndex(function (item) {
61148
- return item.id === id;
61149
- });
61150
61152
  return prev.filter(function (item) {
61151
61153
  return item.id !== id;
61152
61154
  });
@@ -67183,7 +67185,7 @@ var upload_interface = __webpack_require__(8821);
67183
67185
 
67184
67186
 
67185
67187
  /* harmony default export */ var src_0 = ({
67186
- version: '3.5.5-beta.2'
67188
+ version: '3.5.5-beta.3'
67187
67189
  });
67188
67190
  }();
67189
67191
  /******/ return __webpack_exports__;