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