@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.
Files changed (150) hide show
  1. package/dist/kdesign-complete.less +11 -21
  2. package/dist/kdesign.css +18 -20
  3. package/dist/kdesign.css.map +1 -1
  4. package/dist/kdesign.js +17934 -1070
  5. package/dist/kdesign.js.map +1 -1
  6. package/dist/kdesign.min.css +2 -2
  7. package/dist/kdesign.min.js +18 -10
  8. package/dist/kdesign.min.js.map +1 -1
  9. package/es/_utils/formatUtil.js +3 -1
  10. package/es/_utils/hooks.js +1 -1
  11. package/es/alert/alert.js +3 -1
  12. package/es/anchor/anchor.js +9 -1
  13. package/es/badge/badge.js +3 -1
  14. package/es/breadcrumb/breadcrumb.js +19 -16
  15. package/es/breadcrumb/style/index.css +2 -2
  16. package/es/breadcrumb/style/index.less +2 -2
  17. package/es/breadcrumb/style/token.less +0 -12
  18. package/es/button/button.js +3 -1
  19. package/es/card/card.js +3 -1
  20. package/es/cascader/cascader.js +3 -1
  21. package/es/cascader/util.js +3 -1
  22. package/es/checkbox/checkbox.js +3 -1
  23. package/es/checkbox/group.js +3 -1
  24. package/es/clipboard/clipboard.js +3 -1
  25. package/es/collapse/panel.js +3 -1
  26. package/es/date-picker/panel/year/year.js +2 -2
  27. package/es/divider/divider.js +3 -1
  28. package/es/divider/style/index.css +15 -17
  29. package/es/divider/style/index.less +6 -4
  30. package/es/divider/style/mixin.less +3 -3
  31. package/es/dropdown/menu.js +3 -1
  32. package/es/empty/empty.js +3 -1
  33. package/es/form/Field.js +3 -1
  34. package/es/form/Form.js +3 -1
  35. package/es/grid/col.js +3 -1
  36. package/es/icon/icon.js +3 -1
  37. package/es/image-cropper/image-cropper.js +15 -11
  38. package/es/index.d.ts +1 -1
  39. package/es/index.js +2 -2
  40. package/es/input/TextArea.js +3 -1
  41. package/es/input/input.js +3 -1
  42. package/es/input-number/inputNumber.js +32 -9
  43. package/es/layout/layout.js +3 -1
  44. package/es/layout/sider.js +3 -1
  45. package/es/link/link.js +3 -1
  46. package/es/locale/locale.js +1 -1
  47. package/es/menu/menu.js +3 -1
  48. package/es/menu/menuItem.js +3 -1
  49. package/es/menu/subMenu.js +3 -1
  50. package/es/modal/confirm.js +3 -1
  51. package/es/modal/modal.js +3 -1
  52. package/es/notification-base/index.js +3 -1
  53. package/es/progress/utils.js +3 -1
  54. package/es/radio/radio-button.js +3 -1
  55. package/es/radio/radio.js +3 -1
  56. package/es/search/quick-search.js +3 -1
  57. package/es/search/search.js +3 -1
  58. package/es/select/select.js +1 -1
  59. package/es/slider/slider.js +3 -1
  60. package/es/slider/sliderTooltip.js +3 -1
  61. package/es/spin/spin.js +3 -1
  62. package/es/steps/Step.js +3 -1
  63. package/es/steps/Steps.js +3 -1
  64. package/es/switch/switch.js +3 -1
  65. package/es/table/feature/rowSelection.js +3 -1
  66. package/es/tag/tag.js +3 -1
  67. package/es/timeline/Timeline.js +3 -1
  68. package/es/timeline/TimelineItem.js +3 -1
  69. package/es/tree/tree.js +3 -1
  70. package/es/tree/treeNode.js +3 -1
  71. package/es/tree/utils/treeUtils.js +3 -1
  72. package/es/typography/base.js +3 -1
  73. package/es/typography/title.js +3 -1
  74. package/es/typography/typography.js +3 -1
  75. package/es/upload/dragger.js +3 -1
  76. package/es/upload/upload.js +26 -24
  77. package/es/virtual-list/utils/itemUtil.js +3 -1
  78. package/es/virtual-list/virtual-list.js +3 -1
  79. package/lib/_utils/formatUtil.js +3 -1
  80. package/lib/_utils/hooks.js +1 -1
  81. package/lib/alert/alert.js +3 -1
  82. package/lib/anchor/anchor.js +9 -1
  83. package/lib/badge/badge.js +3 -1
  84. package/lib/breadcrumb/breadcrumb.js +19 -16
  85. package/lib/breadcrumb/style/index.css +2 -2
  86. package/lib/breadcrumb/style/index.less +2 -2
  87. package/lib/breadcrumb/style/token.less +0 -12
  88. package/lib/button/button.js +3 -1
  89. package/lib/card/card.js +3 -1
  90. package/lib/cascader/cascader.js +3 -1
  91. package/lib/cascader/util.js +3 -1
  92. package/lib/checkbox/checkbox.js +3 -1
  93. package/lib/checkbox/group.js +3 -1
  94. package/lib/clipboard/clipboard.js +3 -1
  95. package/lib/collapse/panel.js +3 -1
  96. package/lib/date-picker/panel/year/year.js +2 -2
  97. package/lib/divider/divider.js +3 -1
  98. package/lib/divider/style/index.css +15 -17
  99. package/lib/divider/style/index.less +6 -4
  100. package/lib/divider/style/mixin.less +3 -3
  101. package/lib/dropdown/menu.js +3 -1
  102. package/lib/empty/empty.js +3 -1
  103. package/lib/form/Field.js +3 -1
  104. package/lib/form/Form.js +3 -1
  105. package/lib/grid/col.js +3 -1
  106. package/lib/icon/icon.js +3 -1
  107. package/lib/image-cropper/image-cropper.js +15 -11
  108. package/lib/index.d.ts +1 -1
  109. package/lib/index.js +1 -1
  110. package/lib/input/TextArea.js +3 -1
  111. package/lib/input/input.js +3 -1
  112. package/lib/input-number/inputNumber.js +32 -9
  113. package/lib/layout/layout.js +3 -1
  114. package/lib/layout/sider.js +3 -1
  115. package/lib/link/link.js +3 -1
  116. package/lib/locale/locale.js +1 -1
  117. package/lib/menu/menu.js +3 -1
  118. package/lib/menu/menuItem.js +3 -1
  119. package/lib/menu/subMenu.js +3 -1
  120. package/lib/modal/confirm.js +3 -1
  121. package/lib/modal/modal.js +3 -1
  122. package/lib/notification-base/index.js +3 -1
  123. package/lib/progress/utils.js +3 -1
  124. package/lib/radio/radio-button.js +3 -1
  125. package/lib/radio/radio.js +3 -1
  126. package/lib/search/quick-search.js +3 -1
  127. package/lib/search/search.js +3 -1
  128. package/lib/select/select.js +1 -1
  129. package/lib/slider/slider.js +3 -1
  130. package/lib/slider/sliderTooltip.js +3 -1
  131. package/lib/spin/spin.js +3 -1
  132. package/lib/steps/Step.js +3 -1
  133. package/lib/steps/Steps.js +3 -1
  134. package/lib/switch/switch.js +3 -1
  135. package/lib/table/feature/rowSelection.js +3 -1
  136. package/lib/tag/tag.js +3 -1
  137. package/lib/timeline/Timeline.js +3 -1
  138. package/lib/timeline/TimelineItem.js +3 -1
  139. package/lib/tree/tree.js +3 -1
  140. package/lib/tree/treeNode.js +3 -1
  141. package/lib/tree/utils/treeUtils.js +3 -1
  142. package/lib/typography/base.js +3 -1
  143. package/lib/typography/title.js +3 -1
  144. package/lib/typography/typography.js +3 -1
  145. package/lib/upload/dragger.js +3 -1
  146. package/lib/upload/upload.js +26 -24
  147. package/lib/virtual-list/utils/itemUtil.js +3 -1
  148. package/lib/virtual-list/virtual-list.js +3 -1
  149. package/package.json +1 -1
  150. package/CHANGELOG.md +0 -1794
@@ -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) switch (_context3.prev = _context3.next) {
246
- case 0:
247
- file.status = 'done';
248
- file.response = response;
249
- file.xhr = xhr;
250
- if (!(/image/.test(file.type) && !file.url)) {
251
- _context3.next = 8;
252
- break;
253
- }
254
- _context3.next = 6;
255
- return (0, _utils2.getBase64)(file);
256
- case 6:
257
- url = _context3.sent;
258
- file.url = url;
259
- case 8:
260
- delete reqs[uid];
261
- _onSuccess && _onSuccess(response, file, xhr);
262
- fileList = (0, _map.default)(fileList).call(fileList, function (fileItem) {
263
- return fileItem.uid === file.uid ? file : fileItem;
264
- });
265
- onFileListChange(file, fileList);
266
- case 12:
267
- case "end":
268
- return _context3.stop();
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) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
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) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.7.47",
3
+ "version": "1.7.48",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [