fmui-base 2.1.52 → 2.1.54
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/README.md +3 -1
- package/lib/process_info/processInfo.js +1 -1
- package/lib/upload/upload.js +5 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1712,7 +1712,7 @@ var PageHome = function (_React$Component) {
|
|
|
1712
1712
|
for (var x = 0; x < subData.length; x++) {
|
|
1713
1713
|
if (subData[x].required) {
|
|
1714
1714
|
if (!subData[x].value) {
|
|
1715
|
-
this.scrollToAnchor("sub_" + subTblName + "_" + j + "_" +
|
|
1715
|
+
this.scrollToAnchor("sub_" + subTblName + "_" + j + "_" + subData[x].key);
|
|
1716
1716
|
return subData[x].label;
|
|
1717
1717
|
}
|
|
1718
1718
|
}
|
package/lib/upload/upload.js
CHANGED
|
@@ -640,7 +640,11 @@ var PageHome = function (_React$Component) {
|
|
|
640
640
|
if (b < 1) {
|
|
641
641
|
return Math.round(a * 100) / 100 + 'KB';
|
|
642
642
|
}
|
|
643
|
-
|
|
643
|
+
var c = b / 1024;
|
|
644
|
+
if (c < 1) {
|
|
645
|
+
return Math.round(b * 100) / 100 + 'MB';
|
|
646
|
+
}
|
|
647
|
+
return Math.round(c * 100) / 100 + 'GB';
|
|
644
648
|
}
|
|
645
649
|
return t.state.uploadType == 'image' ? _react2.default.createElement(
|
|
646
650
|
'div',
|