fmui-base 2.1.52 → 2.1.53

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 CHANGED
@@ -2,7 +2,8 @@
2
2
 
3
3
  ---npm publish
4
4
 
5
- ## 更新日志
5
+ ## 更新日志
6
+ - 2.1.53:上传组件根据文件大小显示单位不同
6
7
  - 2.1.52:流程提交到最后结束节点保存批示意见
7
8
  - 2.1.51:关联字段触发字段支持子表字段
8
9
  - 2.1.50:流程普通退回增加回调
@@ -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
- return Math.round(b * 100) / 100 + 'MB';
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',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.52",
3
+ "version": "2.1.53",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",