fmui-base 2.1.51 → 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,9 @@
2
2
 
3
3
  ---npm publish
4
4
 
5
- ## 更新日志
5
+ ## 更新日志
6
+ - 2.1.53:上传组件根据文件大小显示单位不同
7
+ - 2.1.52:流程提交到最后结束节点保存批示意见
6
8
  - 2.1.51:关联字段触发字段支持子表字段
7
9
  - 2.1.50:流程普通退回增加回调
8
10
  - 2.1.49:流程提交到最后结束节点可以直接结束,跳过确认环节
@@ -2327,7 +2327,12 @@ var PageHome = function (_React$Component) {
2327
2327
  urgentList: [],
2328
2328
  isEnd: isEnd
2329
2329
  }, function () {
2330
+ console.log("sendFlow直接结束");
2330
2331
  param.selectedActivity = '[{"id":"end_node","name":"结束","level":""}]';
2332
+ param.comment = newComment;
2333
+ param.hasCommentField = t.state.hasCommentField;
2334
+ param.attachId = t.state.commentAttachId;
2335
+ param.commentId = t.state.commentId;
2331
2336
  t.sendFlow(param);
2332
2337
  });
2333
2338
  return false;
@@ -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.51",
3
+ "version": "2.1.53",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes