fmui-base 2.2.27 → 2.2.28

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,7 @@
3
3
  ---npm publish
4
4
 
5
5
  ## 更新日志
6
+ - 2.2.28: 表单组件支持单独渲染
6
7
  - 2.2.27: 批示意见落款被加签的用户增加标识
7
8
  - 2.2.26: 表单组件支持查看发票
8
9
  - 2.2.25: 表单组件支持弹出加签意见
@@ -155,8 +155,11 @@ var PageHome = function (_React$Component) {
155
155
  url = context + '/api/m/plugin/attachment/mobile/getAttachmentByIds?token=' + token + '&ids=';
156
156
  commentList = this.props.list;
157
157
  attachIds = "";
158
- // var attachMap = {};
159
158
 
159
+ if (!commentList || typeof commentList == 'undefined' || commentList.length == 0) {
160
+ commentList = [];
161
+ }
162
+ // var attachMap = {};
160
163
  commentList.map(function (item) {
161
164
  // var commentId = item.id;
162
165
  var attachId = item.attachId;
@@ -168,12 +171,12 @@ var PageHome = function (_React$Component) {
168
171
  });
169
172
 
170
173
  if (!attachIds) {
171
- _context.next = 13;
174
+ _context.next = 14;
172
175
  break;
173
176
  }
174
177
 
175
178
  attachIds = attachIds.substring(1);
176
- _context.next = 10;
179
+ _context.next = 11;
177
180
  return t.promises(url + attachIds).then(function (e) {
178
181
  commentList.map(function (item) {
179
182
  // var commentId = item.id;
@@ -193,15 +196,15 @@ var PageHome = function (_React$Component) {
193
196
  });
194
197
  });
195
198
 
196
- case 10:
199
+ case 11:
197
200
  sucess(commentList);
198
- _context.next = 14;
201
+ _context.next = 15;
199
202
  break;
200
203
 
201
- case 13:
204
+ case 14:
202
205
  sucess(commentList);
203
206
 
204
- case 14:
207
+ case 15:
205
208
  case 'end':
206
209
  return _context.stop();
207
210
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fmui-base",
3
- "version": "2.2.27",
3
+ "version": "2.2.28",
4
4
  "title": "fmui-base",
5
5
  "description": "fmui移动端组件",
6
6
  "main": "lib/index.js",