shineout 3.8.2-beta.4 → 3.8.2-beta.5

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
@@ -522,5 +522,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
522
522
  // 此文件由脚本自动生成,请勿直接修改。
523
523
  // This file was generated automatically by a script. Please do not modify it directly.
524
524
  var _default = exports.default = {
525
- version: '3.8.2-beta.4'
525
+ version: '3.8.2-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12386,7 +12386,7 @@ var handleStyle = function handleStyle(style) {
12386
12386
  };
12387
12387
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12388
12388
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12389
- /* harmony default export */ var version = ('3.8.2-beta.4');
12389
+ /* harmony default export */ var version = ('3.8.2-beta.5');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -41901,17 +41901,18 @@ var More = function More(props) {
41901
41901
  visible = _useState2[0],
41902
41902
  setVisible = _useState2[1];
41903
41903
  var styles = classes;
41904
- var shouldShowMore = showNum < 0 || showNum >= data.length;
41904
+ var shouldShowMore = !showNum || showNum < 0 || showNum >= data.length;
41905
41905
  var before = [];
41906
41906
  var after = [];
41907
41907
  var afterLength = 0;
41908
41908
  if (!shouldShowMore) {
41909
- before = new Array(showNum).fill(undefined).map(function (_item, index) {
41909
+ var validShowNum = showNum || 0;
41910
+ before = new Array(validShowNum).fill(undefined).map(function (_item, index) {
41910
41911
  return data[index];
41911
41912
  });
41912
- var afterCount = Math.max(0, data.length - showNum);
41913
+ var afterCount = Math.max(0, data.length - validShowNum);
41913
41914
  after = new Array(afterCount).fill(undefined).map(function (_item, index) {
41914
- return data[showNum + index];
41915
+ return data[validShowNum + index];
41915
41916
  });
41916
41917
  afterLength = after.length;
41917
41918
  }
@@ -73085,7 +73086,7 @@ var upload_interface = __webpack_require__(8821);
73085
73086
 
73086
73087
 
73087
73088
  /* harmony default export */ var src_0 = ({
73088
- version: '3.8.2-beta.4'
73089
+ version: '3.8.2-beta.5'
73089
73090
  });
73090
73091
  }();
73091
73092
  /******/ return __webpack_exports__;