cloud-b2b 1.1.61 → 1.1.63

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.
Files changed (80) hide show
  1. package/es/Area/Area.js +8 -11
  2. package/es/CodeInput/CodeInput.js +16 -19
  3. package/es/Enhance/Dialogs.js +11 -14
  4. package/es/Enhance/Loading.js +15 -18
  5. package/es/Header/Header.js +17 -20
  6. package/es/Header/Vertical.js +11 -14
  7. package/es/ImageView/ImageView.js +10 -13
  8. package/es/InpurCascader/InputCascader.js +11 -14
  9. package/es/InputEditor/InputEditor.js +16 -18
  10. package/es/InputSearch/InputSearch.js +19 -22
  11. package/es/InputSelect/InputSelect.js +14 -17
  12. package/es/InputTreeSelect/InputTreeSelect.js +10 -13
  13. package/es/InputWriting/InputWriting.js +12 -15
  14. package/es/Layout/Layout.js +14 -17
  15. package/es/Link/Link.js +7 -10
  16. package/es/NumberInput/NumberInput.js +13 -16
  17. package/es/Search/Search.js +52 -55
  18. package/es/Search2/Search.js +85 -88
  19. package/es/Search2/Search.less +64 -64
  20. package/es/Search2/package.json +6 -6
  21. package/es/Sidebar/Sidebar.js +11 -14
  22. package/es/Sidebar2/Sidebar.js +13 -16
  23. package/es/SuperForm/SuperForm.js +74 -79
  24. package/es/SuperForm2/SuperForm.js +95 -100
  25. package/es/SuperPagination/SuperPagination.js +8 -11
  26. package/es/SuperTab/SuperTab.js +12 -15
  27. package/es/SuperTab2/SuperTab2.js +13 -16
  28. package/es/SuperTable/DragSortRow.js +12 -15
  29. package/es/SuperTable/FilterDropDown.js +11 -14
  30. package/es/SuperTable/SuperTable.js +68 -71
  31. package/es/SuperTable2/SuperTable2.js +90 -88
  32. package/es/SuperTable2/SuperTableCell.js +27 -30
  33. package/es/SuperTable3/FilterDropDown.js +11 -14
  34. package/es/SuperTable3/SuperTable.js +58 -61
  35. package/es/SuperToolbar/SuperToolbar.js +11 -14
  36. package/es/SuperUpload/SuperUpload.js +107 -91
  37. package/es/Viewer/ImageViews.js +16 -19
  38. package/es/Viewer/Viewer.js +11 -14
  39. package/es/helper.js +18 -17
  40. package/lib/Area/Area.js +8 -11
  41. package/lib/CodeInput/CodeInput.js +16 -19
  42. package/lib/Enhance/Dialogs.js +11 -14
  43. package/lib/Enhance/Loading.js +15 -18
  44. package/lib/Header/Header.js +17 -20
  45. package/lib/Header/Vertical.js +11 -14
  46. package/lib/ImageView/ImageView.js +10 -13
  47. package/lib/InpurCascader/InputCascader.js +11 -14
  48. package/lib/InputEditor/InputEditor.js +16 -18
  49. package/lib/InputSearch/InputSearch.js +19 -22
  50. package/lib/InputSelect/InputSelect.js +14 -17
  51. package/lib/InputTreeSelect/InputTreeSelect.js +10 -13
  52. package/lib/InputWriting/InputWriting.js +12 -15
  53. package/lib/Layout/Layout.js +14 -17
  54. package/lib/LayoutLink/LayoutLink.js +1 -2
  55. package/lib/Link/Link.js +7 -10
  56. package/lib/NumberInput/NumberInput.js +13 -16
  57. package/lib/Search/Search.js +53 -57
  58. package/lib/Search2/Search.js +86 -90
  59. package/lib/Search2/Search.less +64 -64
  60. package/lib/Search2/package.json +6 -6
  61. package/lib/Sidebar/Sidebar.js +11 -14
  62. package/lib/Sidebar2/Sidebar.js +13 -16
  63. package/lib/SuperForm/SuperForm.js +75 -81
  64. package/lib/SuperForm2/SuperForm.js +96 -102
  65. package/lib/SuperPagination/SuperPagination.js +8 -11
  66. package/lib/SuperTab/SuperTab.js +12 -15
  67. package/lib/SuperTab2/SuperTab2.js +13 -16
  68. package/lib/SuperTable/DragSortRow.js +12 -15
  69. package/lib/SuperTable/FilterDropDown.js +11 -14
  70. package/lib/SuperTable/SuperTable.js +68 -71
  71. package/lib/SuperTable2/SuperTable2.js +91 -90
  72. package/lib/SuperTable2/SuperTableCell.js +27 -30
  73. package/lib/SuperTable3/FilterDropDown.js +11 -14
  74. package/lib/SuperTable3/SuperTable.js +58 -61
  75. package/lib/SuperToolbar/SuperToolbar.js +11 -14
  76. package/lib/SuperUpload/SuperUpload.js +96 -81
  77. package/lib/Viewer/ImageViews.js +16 -19
  78. package/lib/Viewer/Viewer.js +11 -14
  79. package/lib/helper.js +18 -17
  80. package/package.json +1 -1
package/lib/helper.js CHANGED
@@ -144,15 +144,16 @@ var getObject = exports.getObject = function getObject(obj, keys) {
144
144
  }, {});
145
145
  };
146
146
  var fetchJson = exports.fetchJson = /*#__PURE__*/function () {
147
- var _ref = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(url, option) {
147
+ var _ref = (0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee(url, option) {
148
148
  var cookie,
149
149
  jump,
150
150
  res,
151
151
  _context3,
152
152
  json,
153
153
  roleKey,
154
- _args = arguments;
155
- return _regenerator["default"].wrap(function _callee$(_context4) {
154
+ _args = arguments,
155
+ _t;
156
+ return _regenerator["default"].wrap(function (_context4) {
156
157
  while (1) switch (_context4.prev = _context4.next) {
157
158
  case 0:
158
159
  cookie = _args.length > 2 && _args[2] !== undefined ? _args[2] : true;
@@ -179,23 +180,23 @@ var fetchJson = exports.fetchJson = /*#__PURE__*/function () {
179
180
  };
180
181
  }
181
182
  }
182
- _context4.prev = 3;
183
- _context4.next = 6;
183
+ _context4.prev = 1;
184
+ _context4.next = 2;
184
185
  return fetch(url, option);
185
- case 6:
186
+ case 2:
186
187
  res = _context4.sent;
187
188
  if (res.ok) {
188
- _context4.next = 11;
189
+ _context4.next = 3;
189
190
  break;
190
191
  }
191
192
  return _context4.abrupt("return", {
192
193
  returnCode: res.status,
193
194
  returnMsg: (0, _concat["default"])(_context3 = "".concat(res.status, " - ")).call(_context3, res.statusText)
194
195
  });
195
- case 11:
196
- _context4.next = 13;
196
+ case 3:
197
+ _context4.next = 4;
197
198
  return res.json();
198
- case 13:
199
+ case 4:
199
200
  json = _context4.sent;
200
201
  if (json.returnCode !== 0 && json.errorCode) {
201
202
  json.returnCode = Number(json.errorCode) || 10001;
@@ -211,21 +212,21 @@ var fetchJson = exports.fetchJson = /*#__PURE__*/function () {
211
212
  }
212
213
  }
213
214
  return _context4.abrupt("return", json);
214
- case 17:
215
- _context4.next = 22;
215
+ case 5:
216
+ _context4.next = 7;
216
217
  break;
217
- case 19:
218
- _context4.prev = 19;
219
- _context4.t0 = _context4["catch"](3);
218
+ case 6:
219
+ _context4.prev = 6;
220
+ _t = _context4["catch"](1);
220
221
  return _context4.abrupt("return", {
221
222
  returnCode: 10000,
222
223
  returnMsg: '无法请求资源'
223
224
  });
224
- case 22:
225
+ case 7:
225
226
  case "end":
226
227
  return _context4.stop();
227
228
  }
228
- }, _callee, null, [[3, 19]]);
229
+ }, _callee, null, [[1, 6]]);
229
230
  }));
230
231
  return function fetchJson(_x, _x2) {
231
232
  return _ref.apply(this, arguments);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cloud-b2b",
3
- "version": "1.1.61",
3
+ "version": "1.1.63",
4
4
  "description": "A react component library dependent antd",
5
5
  "keywords": [
6
6
  "react",