easy3wui 1.5.65 → 1.5.66

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.
@@ -125,7 +125,7 @@ var Easy3wButtonOne = function (_Component) {
125
125
  } },
126
126
  _react2['default'].createElement(
127
127
  _button2['default'],
128
- (0, _extends3['default'])({}, typeProps, { className: (0, _classnames2['default'])(['btn', 'e3wFootBtn']) }),
128
+ (0, _extends3['default'])({}, typeProps, { className: (0, _classnames2['default'])(['btn', className || 'e3wFootBtn']) }),
129
129
  cName || children
130
130
  )
131
131
  );
@@ -507,7 +507,9 @@ var _initialiseProps = function _initialiseProps() {
507
507
 
508
508
  this.numeralFormat = function (text) {
509
509
  var strText = text;
510
- if (Number.isFinite(text)) {
510
+ if (text === 0 || text === '0') {
511
+ return '0.00';
512
+ } else if (Number.isFinite(text)) {
511
513
  // 有限值数字 用于检查一个数值是否是有限的。如果数值是有限数(即不是 Infinity、-Infinity 或 NaN),那么 Number.isFinite() 返回 true,否则返回 false。
512
514
  strText = (0, _numeral2['default'])(text).format('0,0.00');
513
515
  } else if (typeof text === 'string') {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "easy3wui",
3
- "version": "1.5.65",
3
+ "version": "1.5.66",
4
4
  "description": "easy3wui components for react",
5
5
  "keywords": [
6
6
  "react",