fmui-base 2.0.0 → 2.0.1

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
@@ -1,8 +1,10 @@
1
1
  ## 移动端组件
2
2
 
3
- ---npm publish --tag beta
3
+ ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.0.1: 流程表单选人组件联动开发
7
+ - 2.0.0: 2.0正式版
6
8
  - 2.1.1-beta.1:流程列表样式修改
7
9
  - 2.1.1-beta.0:流程表单修改
8
10
  - 2.1.0-beta.9:流程表单修改
package/lib/form/form.js CHANGED
@@ -953,29 +953,36 @@ var PageHome = function (_React$Component) {
953
953
  } else if (itemType == 'upload' || itemType == 'image') {
954
954
  //附件图片
955
955
  var formDataAttr = form.dataAttr;
956
+ var uploadFileNumLimit = "";
957
+ var uploadFileLimit = "";
958
+ var canDownload = "";
956
959
  if (formDataAttr) {
957
- var uploadFileNumLimit = formDataAttr.uploadFileNumLimit; //上传个数限制
958
- var uploadFileLimit = formDataAttr.uploadFileLimit; //上传类型限制
959
- var canDownload = formDataAttr.canDownload; //是否下载
960
- if (value) {
961
- value = value.replace(/\|/g, ",");
962
- itemParam.initIds = value;
963
- value = [];
964
- } else {
965
- value = [];
966
- }
967
- if (uploadFileNumLimit) {
968
- itemParam.uploadFileNumLimit = uploadFileNumLimit;
969
- } else {
970
- itemParam.uploadFileNumLimit = -1;
971
- }
960
+ uploadFileNumLimit = formDataAttr.uploadFileNumLimit; //上传个数限制
961
+ uploadFileLimit = formDataAttr.uploadFileLimit; //上传类型限制
962
+ canDownload = formDataAttr.canDownload; //是否下载
963
+ }
964
+ if (value) {
965
+ value = value.replace(/\|/g, ",");
966
+ itemParam.initIds = value;
967
+ value = [];
968
+ } else {
969
+ value = [];
970
+ }
971
+ if (uploadFileNumLimit) {
972
+ itemParam.uploadFileNumLimit = uploadFileNumLimit;
973
+ } else {
974
+ itemParam.uploadFileNumLimit = -1;
975
+ }
972
976
 
973
- if (uploadFileLimit) {
974
- itemParam.uploadFileLimit = uploadFileLimit;
975
- } else {
976
- itemParam.uploadFileLimit = "";
977
- }
977
+ if (uploadFileLimit) {
978
+ itemParam.uploadFileLimit = uploadFileLimit;
979
+ } else {
980
+ itemParam.uploadFileLimit = "";
981
+ }
982
+ if (canDownload) {
978
983
  itemParam.canDownload = canDownload;
984
+ } else {
985
+ itemParam.canDownload = "0";
979
986
  }
980
987
  } else if (itemType == 'poppage') {
981
988
  //弹出选择
@@ -2235,12 +2242,12 @@ var PageHome = function (_React$Component) {
2235
2242
  newValue = "";
2236
2243
  }
2237
2244
  data = this.editData(code, newValue, data);
2238
- // var itemParam = this.state.itemParam;
2239
- // itemParam.value = newValue;
2240
- // this.setState({
2241
- // itemParam: itemParam
2242
- // });
2243
- this.props.onChange(data, this.state.itemParam);
2245
+ var itemParam = this.state.itemParam;
2246
+ itemParam.value = newValue;
2247
+ this.setState({
2248
+ itemParam: itemParam
2249
+ });
2250
+ this.props.onChange(data, itemParam);
2244
2251
  // var json = [
2245
2252
  // {"scopeValue":'113',"scopeType":"user","scopeName":"葛萌"}
2246
2253
  // ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.0.0",
3
+ "version": "2.0.1",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",