fmui-base 2.1.4 → 2.1.6

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
@@ -3,6 +3,8 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.1.6:增加二开自定义按钮的扩展方法
7
+ - 2.1.5:退回流程提交到退回活动,默认勾选
6
8
  - 2.1.4:流程表单加载水印
7
9
  - 2.1.3:流程支持取消超时问题处理
8
10
  - 2.1.2:流程支持取消超时
@@ -248,7 +248,7 @@ var PageHome = function (_React$Component) {
248
248
  }
249
249
  var backTypeList = [{
250
250
  value: "1",
251
- checked: false,
251
+ checked: true,
252
252
  content: '允许提交至退回活动',
253
253
  disable: false
254
254
  }];
@@ -2638,6 +2638,12 @@ var PageHome = function (_React$Component) {
2638
2638
  if (canBackType == '') {
2639
2639
  canBackType = '2';
2640
2640
  }
2641
+ if (canBackType.indexOf('3') >= 0) {
2642
+ var backTypeList = t.state.backTypeList;
2643
+ t.setState({
2644
+ backTypeSelectList: backTypeList
2645
+ });
2646
+ }
2641
2647
  if (selectBackActivity.value == null) {
2642
2648
  //没有点击过驳回
2643
2649
  _db2.default.FlowModuleAPI.getCanBackActivity({
@@ -2939,6 +2945,16 @@ var PageHome = function (_React$Component) {
2939
2945
  });
2940
2946
  });
2941
2947
  } else {
2948
+ //项目开发模块统一扩展
2949
+ var mobileModuleExt;
2950
+ try {
2951
+ if (t.state.module) {
2952
+ mobileModuleExt = typeof eval(t.state.module + "_mobileExt") !== 'undefined' ? eval(t.state.module + "_mobileExt") : null;
2953
+ }
2954
+ } catch (e) {}
2955
+ // alert("exception: "+e.message);
2956
+
2957
+
2942
2958
  //项目开发扩展
2943
2959
  var mobileExt;
2944
2960
  try {
@@ -2960,6 +2976,18 @@ var PageHome = function (_React$Component) {
2960
2976
  content: msg
2961
2977
  });
2962
2978
  });
2979
+ } else if (typeof mobileModuleExt !== 'undefined' && typeof mobileModuleExt[operate] === "function") {
2980
+ mobileModuleExt[operate](t.state, function (msg) {
2981
+ _Toast2.default.show({
2982
+ type: 'success',
2983
+ content: msg
2984
+ });
2985
+ }, function (msg) {
2986
+ _Toast2.default.show({
2987
+ type: 'error',
2988
+ content: msg
2989
+ });
2990
+ });
2963
2991
  }
2964
2992
  }
2965
2993
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.1.4",
3
+ "version": "2.1.6",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",