easy3wui 1.4.196 → 1.4.197
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.
|
@@ -1266,6 +1266,12 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1266
1266
|
addrules.push.apply(addrules, rules);
|
|
1267
1267
|
}
|
|
1268
1268
|
var afterBtns = _this.getAfterBtn(item);
|
|
1269
|
+
// 只读场景格式化数字金额
|
|
1270
|
+
var valueFormat = '';
|
|
1271
|
+
if (Number(value)) {
|
|
1272
|
+
var numValue = Number(value).toFixed(2);
|
|
1273
|
+
valueFormat = numValue.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ',');
|
|
1274
|
+
}
|
|
1269
1275
|
if (readFlag || allReadFlag) {
|
|
1270
1276
|
return _react2['default'].createElement(
|
|
1271
1277
|
FormItem,
|
|
@@ -1275,7 +1281,7 @@ var Easy3wFormPage = function (_Component) {
|
|
|
1275
1281
|
style: formItemStyle,
|
|
1276
1282
|
className: (0, _classnames2['default'])(['formContent'])
|
|
1277
1283
|
}),
|
|
1278
|
-
|
|
1284
|
+
valueFormat + ' ' + (cmptPros.addonAfter || '')
|
|
1279
1285
|
);
|
|
1280
1286
|
}
|
|
1281
1287
|
return _react2['default'].createElement(
|