shineout 3.9.9-beta.3 → 3.9.9-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.9.9-beta.3'
525
+ version: '3.9.9-beta.5'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12402,7 +12402,7 @@ var handleStyle = function handleStyle(style) {
12402
12402
  };
12403
12403
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12404
12404
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12405
- /* harmony default export */ var version = ('3.9.9-beta.3');
12405
+ /* harmony default export */ var version = ('3.9.9-beta.5');
12406
12406
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12407
12407
 
12408
12408
 
@@ -43136,14 +43136,14 @@ var More = function More(props) {
43136
43136
  var after = [];
43137
43137
  var afterLength = 0;
43138
43138
  if (!shouldShowMore) {
43139
- var validShowNum = showNum || 0;
43140
- before = new Array(validShowNum).fill(undefined).map(function (_item, index) {
43139
+ var _validShowNum = showNum || 0;
43140
+ before = new Array(_validShowNum).fill(undefined).map(function (_item, index) {
43141
43141
  return data[index];
43142
43142
  });
43143
- var afterCount = Math.max(0, data.length - validShowNum);
43143
+ var afterCount = Math.max(0, data.length - _validShowNum);
43144
43144
  try {
43145
43145
  after = new Array(afterCount).fill(undefined).map(function (_item, index) {
43146
- return data[validShowNum + index];
43146
+ return data[_validShowNum + index];
43147
43147
  });
43148
43148
  afterLength = after.length;
43149
43149
  } catch (error) {
@@ -43199,13 +43199,17 @@ var More = function More(props) {
43199
43199
  })]
43200
43200
  });
43201
43201
  };
43202
+
43203
+ // 当 compressed === 'no-repeat' 时,只传递未显示的数据
43204
+ var validShowNum = showNum || 0;
43205
+ var compressedData = compressed === 'no-repeat' ? (datas || []).slice(validShowNum) : datas;
43202
43206
  return /*#__PURE__*/(0,jsx_runtime.jsxs)((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, {
43203
43207
  children: [shouldShowMore ? data : before, /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
43204
43208
  style: {
43205
43209
  display: 'inline-flex'
43206
43210
  },
43207
43211
  children: renderCompressed ? renderCompressed({
43208
- data: datas,
43212
+ data: compressedData,
43209
43213
  onRemove: onRemove
43210
43214
  }) : renderCompressedTag()
43211
43215
  })]
@@ -69352,7 +69356,7 @@ var TabsHeader = function TabsHeader(props) {
69352
69356
  if (offset !== undefined) {
69353
69357
  setTransform(offset);
69354
69358
  }
69355
- }, [active, tabRef.current, headerRef.current, scrollRef.current, shouldScroll]);
69359
+ }, [active, tabRef.current, headerRef.current, scrollRef.current, shouldScroll, tabs === null || tabs === void 0 ? void 0 : tabs.length]);
69356
69360
  var getDataProps = function getDataProps(options) {
69357
69361
  return getDataAttribute(objectSpread2_default()({}, options));
69358
69362
  };
@@ -75329,7 +75333,7 @@ var upload_interface = __webpack_require__(8821);
75329
75333
 
75330
75334
 
75331
75335
  /* harmony default export */ var src_0 = ({
75332
- version: '3.9.9-beta.3'
75336
+ version: '3.9.9-beta.5'
75333
75337
  });
75334
75338
  }();
75335
75339
  /******/ return __webpack_exports__;