shineout 3.3.6-beta.6 → 3.3.6-beta.7

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
@@ -476,5 +476,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
476
476
  // 此文件由脚本自动生成,请勿直接修改。
477
477
  // This file was generated automatically by a script. Please do not modify it directly.
478
478
  var _default = exports.default = {
479
- version: '3.3.6-beta.6'
479
+ version: '3.3.6-beta.7'
480
480
  };
package/dist/shineout.js CHANGED
@@ -11968,7 +11968,7 @@ var handleStyle = function handleStyle(style) {
11968
11968
  };
11969
11969
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
11970
11970
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
11971
- /* harmony default export */ var version = ('3.3.6-beta.6');
11971
+ /* harmony default export */ var version = ('3.3.6-beta.7');
11972
11972
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
11973
11973
 
11974
11974
 
@@ -37461,8 +37461,8 @@ var Cascader = function Cascader(props0) {
37461
37461
  return;
37462
37462
  }
37463
37463
  };
37464
- var handleChange = function handleChange(item) {
37465
- onChange === null || onChange === void 0 || onChange(item);
37464
+ var handleChange = function handleChange(item, selectId) {
37465
+ onChange === null || onChange === void 0 || onChange(item, selectId);
37466
37466
  };
37467
37467
  var handleClear = function handleClear(e) {
37468
37468
  e.stopPropagation();
@@ -55849,6 +55849,7 @@ var useTableTree = function useTableTree(props) {
55849
55849
 
55850
55850
 
55851
55851
 
55852
+ var MAX_ROW_SPAN = 200;
55852
55853
  var useTableVirtual = function useTableVirtual(props) {
55853
55854
  var _useState = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useState)(0),
55854
55855
  _useState2 = slicedToArray_default()(_useState, 2),
@@ -55988,8 +55989,9 @@ var useTableVirtual = function useTableVirtual(props) {
55988
55989
  sum += context.cachedHeight[i] || props.rowHeight;
55989
55990
  var rowSpanHeight = 0;
55990
55991
  if (rowSpanInfos) {
55992
+ var maxRowSpanLenth = Math.min(rowSpanInfos.length, props.rowsInView > MAX_ROW_SPAN ? props.rowsInView : props.rowsInView || MAX_ROW_SPAN);
55991
55993
  var siblingsIndexs = [];
55992
- for (var k = 0; k < rowSpanInfos.length; k++) {
55994
+ for (var k = 0; k < maxRowSpanLenth; k++) {
55993
55995
  if (rowSpanInfos[k] <= i && k > i) {
55994
55996
  siblingsIndexs.push(k);
55995
55997
  }
@@ -58534,11 +58536,10 @@ var Tabs = function Tabs(props) {
58534
58536
  className: tabsStyle.panelWrapper,
58535
58537
  style: panelStyle,
58536
58538
  children: external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).map(function (child, index) {
58537
- var Chlid = child;
58538
- if (tabs_isNamedComponent(Chlid.type) && Chlid.type.displayName === 'ShineoutTabsPanel') {
58539
- return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(Chlid, {
58540
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
58541
- active: active
58539
+ var Child = child;
58540
+ if (tabs_isNamedComponent(Child.type) && Child.type.displayName === 'ShineoutTabsPanel') {
58541
+ return /*#__PURE__*/(0,external_root_React_commonjs2_react_commonjs_react_amd_react_.cloneElement)(Child, {
58542
+ id: Child.props.id !== undefined ? Child.props.id : index
58542
58543
  });
58543
58544
  }
58544
58545
  return null;
@@ -58549,20 +58550,20 @@ var Tabs = function Tabs(props) {
58549
58550
  var tabs = [];
58550
58551
  var border = getSplitColor();
58551
58552
  external_root_React_commonjs2_react_commonjs_react_amd_react_.Children.toArray(children).forEach(function (child, index) {
58552
- var Chlid = child;
58553
- if (!Chlid || !Chlid.type) return;
58554
- var childBorder = Chlid.props.splitColor || Chlid.props.border;
58555
- var _Chlid$props$id = Chlid.props.id,
58556
- id = _Chlid$props$id === void 0 ? index : _Chlid$props$id;
58553
+ var Child = child;
58554
+ if (!Child || !Child.type) return;
58555
+ var childBorder = Child.props.splitColor || Child.props.border;
58556
+ var _Child$props$id = Child.props.id,
58557
+ id = _Child$props$id === void 0 ? index : _Child$props$id;
58557
58558
  if (active === id && childBorder) {
58558
58559
  border = childBorder;
58559
58560
  }
58560
58561
  tabs.push({
58561
- id: Chlid.props.id !== undefined ? Chlid.props.id : index,
58562
- tab: Chlid.props.tab,
58563
- disabled: Chlid.props.disabled,
58562
+ id: Child.props.id !== undefined ? Child.props.id : index,
58563
+ tab: Child.props.tab,
58564
+ disabled: Child.props.disabled,
58564
58565
  jssStyle: jssStyle,
58565
- color: Chlid.props.color || (active === id ? color : undefined)
58566
+ color: Child.props.color || (active === id ? color : undefined)
58566
58567
  });
58567
58568
  });
58568
58569
  var header = /*#__PURE__*/(0,jsx_runtime.jsx)(tabs_header, {
@@ -63931,7 +63932,7 @@ var upload_interface = __webpack_require__(8821);
63931
63932
 
63932
63933
 
63933
63934
  /* harmony default export */ var src_0 = ({
63934
- version: '3.3.6-beta.6'
63935
+ version: '3.3.6-beta.7'
63935
63936
  });
63936
63937
  }();
63937
63938
  /******/ return __webpack_exports__;