easy3wui 1.5.39 → 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.
- package/lib/Easy3wGridPage/index.js +13 -1
- package/package.json +1 -1
|
@@ -490,7 +490,19 @@ var _initialiseProps = function _initialiseProps() {
|
|
|
490
490
|
};
|
|
491
491
|
|
|
492
492
|
this.numeralFormat = function (text) {
|
|
493
|
-
|
|
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) {
|