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 CHANGED
@@ -2,7 +2,9 @@
2
2
 
3
3
  ---npm publish
4
4
 
5
- ## 更新日志
5
+ ## 更新日志
6
+ - 2.1.54:子表必填项校验定位位置不对
7
+ - 2.1.53:上传组件根据文件大小显示单位不同
6
8
  - 2.1.52:流程提交到最后结束节点保存批示意见
7
9
  - 2.1.51:关联字段触发字段支持子表字段
8
10
  - 2.1.50:流程普通退回增加回调
@@ -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 + "_" + mainTblData[i].key);
1715
+ this.scrollToAnchor("sub_" + subTblName + "_" + j + "_" + subData[x].key);
1716
1716
  return subData[x].label;
1717
1717
  }
1718
1718
  }
@@ -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.54",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",