@kdcloudjs/kdesign 1.7.47 → 1.7.48
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/dist/kdesign-complete.less +11 -21
- package/dist/kdesign.css +18 -20
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +17934 -1070
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +2 -2
- package/dist/kdesign.min.js +18 -10
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/formatUtil.js +3 -1
- package/es/_utils/hooks.js +1 -1
- package/es/alert/alert.js +3 -1
- package/es/anchor/anchor.js +9 -1
- package/es/badge/badge.js +3 -1
- package/es/breadcrumb/breadcrumb.js +19 -16
- package/es/breadcrumb/style/index.css +2 -2
- package/es/breadcrumb/style/index.less +2 -2
- package/es/breadcrumb/style/token.less +0 -12
- package/es/button/button.js +3 -1
- package/es/card/card.js +3 -1
- package/es/cascader/cascader.js +3 -1
- package/es/cascader/util.js +3 -1
- package/es/checkbox/checkbox.js +3 -1
- package/es/checkbox/group.js +3 -1
- package/es/clipboard/clipboard.js +3 -1
- package/es/collapse/panel.js +3 -1
- package/es/date-picker/panel/year/year.js +2 -2
- package/es/divider/divider.js +3 -1
- package/es/divider/style/index.css +15 -17
- package/es/divider/style/index.less +6 -4
- package/es/divider/style/mixin.less +3 -3
- package/es/dropdown/menu.js +3 -1
- package/es/empty/empty.js +3 -1
- package/es/form/Field.js +3 -1
- package/es/form/Form.js +3 -1
- package/es/grid/col.js +3 -1
- package/es/icon/icon.js +3 -1
- package/es/image-cropper/image-cropper.js +15 -11
- package/es/index.d.ts +1 -1
- package/es/index.js +2 -2
- package/es/input/TextArea.js +3 -1
- package/es/input/input.js +3 -1
- package/es/input-number/inputNumber.js +32 -9
- package/es/layout/layout.js +3 -1
- package/es/layout/sider.js +3 -1
- package/es/link/link.js +3 -1
- package/es/locale/locale.js +1 -1
- package/es/menu/menu.js +3 -1
- package/es/menu/menuItem.js +3 -1
- package/es/menu/subMenu.js +3 -1
- package/es/modal/confirm.js +3 -1
- package/es/modal/modal.js +3 -1
- package/es/notification-base/index.js +3 -1
- package/es/progress/utils.js +3 -1
- package/es/radio/radio-button.js +3 -1
- package/es/radio/radio.js +3 -1
- package/es/search/quick-search.js +3 -1
- package/es/search/search.js +3 -1
- package/es/select/select.js +1 -1
- package/es/slider/slider.js +3 -1
- package/es/slider/sliderTooltip.js +3 -1
- package/es/spin/spin.js +3 -1
- package/es/steps/Step.js +3 -1
- package/es/steps/Steps.js +3 -1
- package/es/switch/switch.js +3 -1
- package/es/table/feature/rowSelection.js +3 -1
- package/es/tag/tag.js +3 -1
- package/es/timeline/Timeline.js +3 -1
- package/es/timeline/TimelineItem.js +3 -1
- package/es/tree/tree.js +3 -1
- package/es/tree/treeNode.js +3 -1
- package/es/tree/utils/treeUtils.js +3 -1
- package/es/typography/base.js +3 -1
- package/es/typography/title.js +3 -1
- package/es/typography/typography.js +3 -1
- package/es/upload/dragger.js +3 -1
- package/es/upload/upload.js +26 -24
- package/es/virtual-list/utils/itemUtil.js +3 -1
- package/es/virtual-list/virtual-list.js +3 -1
- package/lib/_utils/formatUtil.js +3 -1
- package/lib/_utils/hooks.js +1 -1
- package/lib/alert/alert.js +3 -1
- package/lib/anchor/anchor.js +9 -1
- package/lib/badge/badge.js +3 -1
- package/lib/breadcrumb/breadcrumb.js +19 -16
- package/lib/breadcrumb/style/index.css +2 -2
- package/lib/breadcrumb/style/index.less +2 -2
- package/lib/breadcrumb/style/token.less +0 -12
- package/lib/button/button.js +3 -1
- package/lib/card/card.js +3 -1
- package/lib/cascader/cascader.js +3 -1
- package/lib/cascader/util.js +3 -1
- package/lib/checkbox/checkbox.js +3 -1
- package/lib/checkbox/group.js +3 -1
- package/lib/clipboard/clipboard.js +3 -1
- package/lib/collapse/panel.js +3 -1
- package/lib/date-picker/panel/year/year.js +2 -2
- package/lib/divider/divider.js +3 -1
- package/lib/divider/style/index.css +15 -17
- package/lib/divider/style/index.less +6 -4
- package/lib/divider/style/mixin.less +3 -3
- package/lib/dropdown/menu.js +3 -1
- package/lib/empty/empty.js +3 -1
- package/lib/form/Field.js +3 -1
- package/lib/form/Form.js +3 -1
- package/lib/grid/col.js +3 -1
- package/lib/icon/icon.js +3 -1
- package/lib/image-cropper/image-cropper.js +15 -11
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/input/TextArea.js +3 -1
- package/lib/input/input.js +3 -1
- package/lib/input-number/inputNumber.js +32 -9
- package/lib/layout/layout.js +3 -1
- package/lib/layout/sider.js +3 -1
- package/lib/link/link.js +3 -1
- package/lib/locale/locale.js +1 -1
- package/lib/menu/menu.js +3 -1
- package/lib/menu/menuItem.js +3 -1
- package/lib/menu/subMenu.js +3 -1
- package/lib/modal/confirm.js +3 -1
- package/lib/modal/modal.js +3 -1
- package/lib/notification-base/index.js +3 -1
- package/lib/progress/utils.js +3 -1
- package/lib/radio/radio-button.js +3 -1
- package/lib/radio/radio.js +3 -1
- package/lib/search/quick-search.js +3 -1
- package/lib/search/search.js +3 -1
- package/lib/select/select.js +1 -1
- package/lib/slider/slider.js +3 -1
- package/lib/slider/sliderTooltip.js +3 -1
- package/lib/spin/spin.js +3 -1
- package/lib/steps/Step.js +3 -1
- package/lib/steps/Steps.js +3 -1
- package/lib/switch/switch.js +3 -1
- package/lib/table/feature/rowSelection.js +3 -1
- package/lib/tag/tag.js +3 -1
- package/lib/timeline/Timeline.js +3 -1
- package/lib/timeline/TimelineItem.js +3 -1
- package/lib/tree/tree.js +3 -1
- package/lib/tree/treeNode.js +3 -1
- package/lib/tree/utils/treeUtils.js +3 -1
- package/lib/typography/base.js +3 -1
- package/lib/typography/title.js +3 -1
- package/lib/typography/typography.js +3 -1
- package/lib/upload/dragger.js +3 -1
- package/lib/upload/upload.js +26 -24
- package/lib/virtual-list/utils/itemUtil.js +3 -1
- package/lib/virtual-list/virtual-list.js +3 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -1794
package/lib/upload/upload.js
CHANGED
|
@@ -242,30 +242,32 @@ var InternalUpload = function InternalUpload(props, ref) {
|
|
|
242
242
|
return __awaiter(void 0, void 0, void 0, /*#__PURE__*/_regenerator.default.mark(function _callee() {
|
|
243
243
|
var url;
|
|
244
244
|
return _regenerator.default.wrap(function _callee$(_context3) {
|
|
245
|
-
while (1)
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
245
|
+
while (1) {
|
|
246
|
+
switch (_context3.prev = _context3.next) {
|
|
247
|
+
case 0:
|
|
248
|
+
file.status = 'done';
|
|
249
|
+
file.response = response;
|
|
250
|
+
file.xhr = xhr;
|
|
251
|
+
if (!(/image/.test(file.type) && !file.url)) {
|
|
252
|
+
_context3.next = 8;
|
|
253
|
+
break;
|
|
254
|
+
}
|
|
255
|
+
_context3.next = 6;
|
|
256
|
+
return (0, _utils2.getBase64)(file);
|
|
257
|
+
case 6:
|
|
258
|
+
url = _context3.sent;
|
|
259
|
+
file.url = url;
|
|
260
|
+
case 8:
|
|
261
|
+
delete reqs[uid];
|
|
262
|
+
_onSuccess && _onSuccess(response, file, xhr);
|
|
263
|
+
fileList = (0, _map.default)(fileList).call(fileList, function (fileItem) {
|
|
264
|
+
return fileItem.uid === file.uid ? file : fileItem;
|
|
265
|
+
});
|
|
266
|
+
onFileListChange(file, fileList);
|
|
267
|
+
case 12:
|
|
268
|
+
case "end":
|
|
269
|
+
return _context3.stop();
|
|
270
|
+
}
|
|
269
271
|
}
|
|
270
272
|
}, _callee);
|
|
271
273
|
}));
|
|
@@ -20,7 +20,9 @@ var _reactDom = require("react-dom");
|
|
|
20
20
|
var _getStringLength = _interopRequireDefault(require("../../_utils/getStringLength"));
|
|
21
21
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
22
22
|
var t = {};
|
|
23
|
-
for (var p in s)
|
|
23
|
+
for (var p in s) {
|
|
24
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
25
|
+
}
|
|
24
26
|
if (s != null && typeof _getOwnPropertySymbols.default === "function") for (var i = 0, p = (0, _getOwnPropertySymbols.default)(s); i < p.length; i++) {
|
|
25
27
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
26
28
|
}
|
|
@@ -30,7 +30,9 @@ function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "functi
|
|
|
30
30
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof3(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
31
31
|
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
32
32
|
var t = {};
|
|
33
|
-
for (var p in s)
|
|
33
|
+
for (var p in s) {
|
|
34
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
35
|
+
}
|
|
34
36
|
if (s != null && typeof _getOwnPropertySymbols.default === "function") for (var i = 0, p = (0, _getOwnPropertySymbols.default)(s); i < p.length; i++) {
|
|
35
37
|
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
36
38
|
}
|