shineout 3.8.7-beta.3 → 3.8.7-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.7-beta.3'
525
+ version: '3.8.7-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.7-beta.3');
12389
+ /* harmony default export */ var version = ('3.8.7-beta.5');
12390
12390
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12391
12391
 
12392
12392
 
@@ -33692,7 +33692,15 @@ var BreadcrumbItem = function BreadcrumbItem(_ref) {
33692
33692
  }
33693
33693
  }
33694
33694
  if (renderItem) {
33695
- return renderItem(dataItem);
33695
+ if (max !== undefined) {
33696
+ item = /*#__PURE__*/(0,jsx_runtime.jsx)("span", {
33697
+ className: contentClass,
33698
+ ref: contentRef,
33699
+ children: renderItem(dataItem)
33700
+ });
33701
+ } else {
33702
+ return renderItem(dataItem);
33703
+ }
33696
33704
  }
33697
33705
  if (isOverflow && d.title && max !== undefined) {
33698
33706
  return /*#__PURE__*/(0,jsx_runtime.jsx)(src_tooltip_tooltip, {
@@ -33770,17 +33778,18 @@ var Breadcrumb = function Breadcrumb(props) {
33770
33778
  };
33771
33779
  return [first, more].concat(toConsumableArray_default()(reset));
33772
33780
  };
33781
+ var lastIndex = Math.min(data.length - 1, maxCount !== undefined ? maxCount : data.length - 1);
33773
33782
  return /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
33774
33783
  className: className,
33775
33784
  style: props.style,
33776
33785
  children: data && getRenderData().map(function (d, index) {
33777
33786
  var itemFirst = Array.isArray(d) ? d[0] : d;
33778
- var isLastItem = index === (maxCount !== undefined ? maxCount : data.length - 1);
33787
+ var isLastItem = index === lastIndex;
33779
33788
  return /*#__PURE__*/(0,jsx_runtime.jsxs)("div", {
33780
33789
  className: breadcrumbClasses === null || breadcrumbClasses === void 0 ? void 0 : breadcrumbClasses.item,
33781
33790
  children: [Array.isArray(d) ? renderArray(d) : /*#__PURE__*/(0,jsx_runtime.jsx)(breadcrumb_item, {
33782
33791
  dataItem: d,
33783
- renderItem: renderItem,
33792
+ renderItem: props.renderItem,
33784
33793
  jssStyle: props.jssStyle,
33785
33794
  max: maxCount
33786
33795
  }), !isLastItem && /*#__PURE__*/(0,jsx_runtime.jsx)("div", {
@@ -73339,7 +73348,7 @@ var upload_interface = __webpack_require__(8821);
73339
73348
 
73340
73349
 
73341
73350
  /* harmony default export */ var src_0 = ({
73342
- version: '3.8.7-beta.3'
73351
+ version: '3.8.7-beta.5'
73343
73352
  });
73344
73353
  }();
73345
73354
  /******/ return __webpack_exports__;