easy3wui 1.5.38 → 1.5.40-beta1

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.
@@ -1355,7 +1355,7 @@ var Easy3wFormPage = function (_Component) {
1355
1355
  maxlength = cmptPros.maxLength || cmptPros.maxlength;
1356
1356
  }
1357
1357
  if (!cmptPros.rows) {
1358
- cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: true } }, cmptPros);
1358
+ cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: 9999 } }, cmptPros);
1359
1359
  }
1360
1360
  return _react2['default'].createElement(TextArea, (0, _extends3['default'])({ onChange: function onChange(e) {
1361
1361
  return _this.textAreaOnchange(e, maxlength);
@@ -490,7 +490,19 @@ var _initialiseProps = function _initialiseProps() {
490
490
  };
491
491
 
492
492
  this.numeralFormat = function (text) {
493
- return (0, _numeral2['default'])(text).format('0,0.00');
493
+ var strText = text;
494
+ if (text || text === 0 || isNaN(text)) {
495
+ if (typeof text === 'string') {
496
+ strText = text;
497
+ } else if (typeof text === 'number') {
498
+ if (Number.isInfinite(text) || isNaN(NaN)) {
499
+ strText = text;
500
+ } else {
501
+ strText = (0, _numeral2['default'])(text).format('0,0.00');
502
+ }
503
+ }
504
+ }
505
+ return strText;
494
506
  };
495
507
 
496
508
  this.rowSelected = function (record) {
@@ -79,7 +79,7 @@ var Easy3wGridTextArea = function (_Component) {
79
79
 
80
80
  var defaultMaxLength = 2000;
81
81
  if (!rows) {
82
- cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: true } }, cmptPros);
82
+ cmptPros = (0, _extends3['default'])({ autosize: { minRows: 2, maxRows: 9999 } }, cmptPros);
83
83
  }
84
84
  var rules = [{ required: required, message: requiredMessage || '\u8BF7\u586B\u5199' + label }, { max: maxLength || defaultMaxLength, message: '\u5F55\u5165\u6587\u5B57\u957F\u5EA6\u4E0D\u80FD\u8D85\u8FC7' + (maxLength || defaultMaxLength), transform: this.touchTransform }];
85
85
  if (disabled) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.38",
3
+ "version": "1.5.40-beta1",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",