shineout 3.8.9 → 3.8.10-beta.1

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.9'
525
+ version: '3.8.10-beta.1'
526
526
  };
package/dist/shineout.js CHANGED
@@ -12398,7 +12398,7 @@ var handleStyle = function handleStyle(style) {
12398
12398
  };
12399
12399
  /* harmony default export */ var jss_style_handleStyle = (handleStyle);
12400
12400
  ;// CONCATENATED MODULE: ../shineout-style/src/version.ts
12401
- /* harmony default export */ var version = ('3.8.9');
12401
+ /* harmony default export */ var version = ('3.8.10-beta.1');
12402
12402
  ;// CONCATENATED MODULE: ../shineout-style/src/jss-style/index.tsx
12403
12403
 
12404
12404
 
@@ -49136,7 +49136,7 @@ var useDescriptions = function useDescriptions(props) {
49136
49136
 
49137
49137
 
49138
49138
  var Descriptions = function Descriptions(props) {
49139
- var _jssStyleProps$descri, _renderItem$;
49139
+ var _jssStyleProps$descri;
49140
49140
  var className = props.className,
49141
49141
  jssStyleProps = props.jssStyle,
49142
49142
  style = props.style,
@@ -49164,6 +49164,11 @@ var Descriptions = function Descriptions(props) {
49164
49164
  labelStyle: labelStyle
49165
49165
  }),
49166
49166
  renderItem = _useDescriptions.renderItem;
49167
+ var longestItem = (0,external_root_React_commonjs2_react_commonjs_react_amd_react_.useMemo)(function () {
49168
+ return renderItem.reduce(function (prev, curr) {
49169
+ return prev.length >= curr.length ? prev : curr;
49170
+ }, []);
49171
+ }, [renderItem]);
49167
49172
  var jssStyle = (jssStyleProps === null || jssStyleProps === void 0 || (_jssStyleProps$descri = jssStyleProps.descriptions) === null || _jssStyleProps$descri === void 0 ? void 0 : _jssStyleProps$descri.call(jssStyleProps)) || {};
49168
49173
  var Header = function Header() {
49169
49174
  if (!title && !extra) return null;
@@ -49260,7 +49265,7 @@ var Descriptions = function Descriptions(props) {
49260
49265
  cellPadding: 0,
49261
49266
  cellSpacing: 0,
49262
49267
  children: [layout === 'inlineHorizontal' && typeof column === 'number' && column > 1 && /*#__PURE__*/(0,jsx_runtime.jsx)("colgroup", {
49263
- children: (_renderItem$ = renderItem[0]) === null || _renderItem$ === void 0 ? void 0 : _renderItem$.map(function (_, index, arr) {
49268
+ children: longestItem === null || longestItem === void 0 ? void 0 : longestItem.map(function (_, index, arr) {
49264
49269
  return /*#__PURE__*/(0,jsx_runtime.jsx)("col", {
49265
49270
  style: {
49266
49271
  width: "".concat(1 / arr.length * 100, "%")
@@ -73394,7 +73399,7 @@ var upload_interface = __webpack_require__(8821);
73394
73399
 
73395
73400
 
73396
73401
  /* harmony default export */ var src_0 = ({
73397
- version: '3.8.9'
73402
+ version: '3.8.10-beta.1'
73398
73403
  });
73399
73404
  }();
73400
73405
  /******/ return __webpack_exports__;