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.
- package/es/Area/Area.js +13 -10
- package/es/CodeInput/CodeInput.js +19 -16
- package/es/Enhance/Dialogs.js +14 -11
- package/es/Enhance/Loading.js +18 -15
- package/es/Header/Header.js +20 -17
- package/es/Header/Vertical.js +14 -11
- package/es/ImageView/ImageView.js +13 -10
- package/es/InpurCascader/InputCascader.js +14 -11
- package/es/InputEditor/InputEditor.js +18 -16
- package/es/InputSearch/InputSearch.js +23 -20
- package/es/InputSelect/InputSelect.js +17 -14
- package/es/InputTreeSelect/InputTreeSelect.js +13 -10
- package/es/InputWriting/InputWriting.js +15 -12
- package/es/Layout/Layout.js +17 -14
- package/es/Link/Link.js +10 -7
- package/es/NumberInput/NumberInput.js +16 -13
- package/es/Search/Search.js +55 -52
- package/es/Search2/Search.js +86 -83
- package/es/Search2/Search.less +64 -64
- package/es/Search2/package.json +6 -6
- package/es/Sidebar/Sidebar.js +14 -11
- package/es/Sidebar2/Sidebar.js +16 -13
- package/es/SuperForm/SuperForm.js +79 -74
- package/es/SuperForm2/SuperForm.js +114 -108
- package/es/SuperPagination/SuperPagination.js +11 -8
- package/es/SuperTab/SuperTab.js +15 -12
- package/es/SuperTab2/SuperTab2.js +16 -13
- package/es/SuperTable/DragSortRow.js +15 -12
- package/es/SuperTable/FilterDropDown.js +14 -11
- package/es/SuperTable/SuperTable.js +73 -70
- package/es/SuperTable2/SuperTable2.js +92 -89
- package/es/SuperTable2/SuperTableCell.js +30 -27
- package/es/SuperTable3/FilterDropDown.js +14 -11
- package/es/SuperTable3/SuperTable.js +61 -58
- package/es/SuperToolbar/SuperToolbar.js +68 -26
- package/es/SuperUpload/SuperUpload.js +63 -53
- package/es/Viewer/ImageViews.js +19 -16
- package/es/Viewer/Viewer.js +14 -11
- package/es/helper.js +17 -18
- package/lib/Area/Area.js +13 -10
- package/lib/CodeInput/CodeInput.js +19 -16
- package/lib/Enhance/Dialogs.js +14 -11
- package/lib/Enhance/Loading.js +18 -15
- package/lib/Header/Header.js +20 -17
- package/lib/Header/Vertical.js +14 -11
- package/lib/ImageView/ImageView.js +13 -10
- package/lib/InpurCascader/InputCascader.js +14 -11
- package/lib/InputEditor/InputEditor.js +18 -16
- package/lib/InputSearch/InputSearch.js +23 -20
- package/lib/InputSelect/InputSelect.js +17 -14
- package/lib/InputTreeSelect/InputTreeSelect.js +13 -10
- package/lib/InputWriting/InputWriting.js +15 -12
- package/lib/Layout/Layout.js +17 -14
- package/lib/LayoutLink/LayoutLink.js +2 -1
- package/lib/Link/Link.js +10 -7
- package/lib/NumberInput/NumberInput.js +16 -13
- package/lib/Search/Search.js +57 -53
- package/lib/Search2/Search.js +88 -84
- package/lib/Search2/Search.less +64 -64
- package/lib/Search2/package.json +6 -6
- package/lib/Sidebar/Sidebar.js +14 -11
- package/lib/Sidebar2/Sidebar.js +16 -13
- package/lib/SuperForm/SuperForm.js +81 -75
- package/lib/SuperForm2/SuperForm.js +116 -109
- package/lib/SuperPagination/SuperPagination.js +11 -8
- package/lib/SuperTab/SuperTab.js +15 -12
- package/lib/SuperTab2/SuperTab2.js +16 -13
- package/lib/SuperTable/DragSortRow.js +15 -12
- package/lib/SuperTable/FilterDropDown.js +14 -11
- package/lib/SuperTable/SuperTable.js +73 -70
- package/lib/SuperTable2/SuperTable2.js +94 -90
- package/lib/SuperTable2/SuperTableCell.js +30 -27
- package/lib/SuperTable3/FilterDropDown.js +14 -11
- package/lib/SuperTable3/SuperTable.js +61 -58
- package/lib/SuperToolbar/SuperToolbar.js +67 -26
- package/lib/SuperUpload/SuperUpload.js +65 -54
- package/lib/Viewer/ImageViews.js +19 -16
- package/lib/Viewer/Viewer.js +14 -11
- package/lib/helper.js +17 -18
- 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
|
-
|
|
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 =
|
|
184
|
-
_context4.next =
|
|
182
|
+
_context4.prev = 3;
|
|
183
|
+
_context4.next = 6;
|
|
185
184
|
return fetch(url, option);
|
|
186
|
-
case
|
|
185
|
+
case 6:
|
|
187
186
|
res = _context4.sent;
|
|
188
187
|
if (res.ok) {
|
|
189
|
-
_context4.next =
|
|
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
|
|
197
|
-
_context4.next =
|
|
195
|
+
case 11:
|
|
196
|
+
_context4.next = 13;
|
|
198
197
|
return res.json();
|
|
199
|
-
case
|
|
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
|
|
216
|
-
_context4.next =
|
|
214
|
+
case 17:
|
|
215
|
+
_context4.next = 22;
|
|
217
216
|
break;
|
|
218
|
-
case
|
|
219
|
-
_context4.prev =
|
|
220
|
-
|
|
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
|
|
224
|
+
case 22:
|
|
226
225
|
case "end":
|
|
227
226
|
return _context4.stop();
|
|
228
227
|
}
|
|
229
|
-
}, _callee, null, [[
|
|
228
|
+
}, _callee, null, [[3, 19]]);
|
|
230
229
|
}));
|
|
231
230
|
return function fetchJson(_x, _x2) {
|
|
232
231
|
return _ref.apply(this, arguments);
|