shineout 3.8.2-beta.3 → 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.3'
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.3');
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
  }
@@ -51239,6 +51240,9 @@ var SchemaBuilder = /*#__PURE__*/function () {
51239
51240
  fieldSchemaInfo.enum = enumData;
51240
51241
  }
51241
51242
  }
51243
+ if (componentElement.props.data.length > 0) {
51244
+ fieldSchemaInfo.description += "enumData: ".concat(JSON.stringify(componentElement.props.data), ";");
51245
+ }
51242
51246
  break;
51243
51247
  }
51244
51248
  case 'ShineoutDatePicker':
@@ -51290,6 +51294,9 @@ var SchemaBuilder = /*#__PURE__*/function () {
51290
51294
  } else {
51291
51295
  fieldSchemaInfo.items.enum = this.mapEnumData(componentElement.props.data, format);
51292
51296
  }
51297
+ if (componentElement.props.data.length > 0) {
51298
+ fieldSchemaInfo.description += "enumData: ".concat(JSON.stringify(componentElement.props.data), ";");
51299
+ }
51293
51300
  break;
51294
51301
  }
51295
51302
  case 'ShineoutRadio':
@@ -51322,6 +51329,9 @@ var SchemaBuilder = /*#__PURE__*/function () {
51322
51329
  } else {
51323
51330
  fieldSchemaInfo.enum = this.mapEnumData(componentElement.props.data, format);
51324
51331
  }
51332
+ if (componentElement.props.data.length > 0) {
51333
+ fieldSchemaInfo.description += "enumData: ".concat(JSON.stringify(componentElement.props.data), ";");
51334
+ }
51325
51335
  break;
51326
51336
  }
51327
51337
  case 'ShineoutSwitch':
@@ -73076,7 +73086,7 @@ var upload_interface = __webpack_require__(8821);
73076
73086
 
73077
73087
 
73078
73088
  /* harmony default export */ var src_0 = ({
73079
- version: '3.8.2-beta.3'
73089
+ version: '3.8.2-beta.5'
73080
73090
  });
73081
73091
  }();
73082
73092
  /******/ return __webpack_exports__;