cloud-b2b 1.1.77 → 1.1.79

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