@kdcloudjs/kdesign 1.1.1 → 1.2.0

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 (128) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/kdesign-complete.less +662 -572
  3. package/dist/kdesign.css +400 -316
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +287 -40
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +4 -4
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/usePopper.js +4 -5
  11. package/es/anchor/anchor.js +0 -6
  12. package/es/anchor/style/index.css +5 -2
  13. package/es/anchor/style/index.less +6 -2
  14. package/es/anchor/style/token.less +2 -1
  15. package/es/button/button.d.ts +1 -1
  16. package/es/button/button.js +2 -2
  17. package/es/button/group.d.ts +21 -0
  18. package/es/button/group.js +130 -0
  19. package/es/button/index.d.ts +5 -1
  20. package/es/button/index.js +4 -1
  21. package/es/button/style/index.css +117 -21
  22. package/es/button/style/index.less +332 -192
  23. package/es/button/style/token.less +41 -25
  24. package/es/carousel/carousel.js +4 -0
  25. package/es/checkbox/checkbox.js +3 -4
  26. package/es/checkbox/style/index.css +36 -33
  27. package/es/checkbox/style/index.less +25 -18
  28. package/es/checkbox/style/token.less +34 -35
  29. package/es/config-provider/compDefaultProps.d.ts +4 -0
  30. package/es/config-provider/compDefaultProps.js +4 -0
  31. package/es/date-picker/style/index.css +8 -8
  32. package/es/date-picker/style/index.less +8 -8
  33. package/es/date-picker/style/token.less +3 -21
  34. package/es/empty/defaultEmptyImg.js +5 -3
  35. package/es/empty/illustrationEmptyImg.js +6 -4
  36. package/es/icon/interface.js +1 -1
  37. package/es/image/preview.js +1 -1
  38. package/es/image/style/index.css +8 -8
  39. package/es/image/style/index.less +5 -5
  40. package/es/image/style/token.less +12 -25
  41. package/es/input/style/index.css +53 -50
  42. package/es/input/style/index.less +5 -4
  43. package/es/input/style/mixin.less +1 -0
  44. package/es/input/style/token.less +23 -20
  45. package/es/layout/style/index.css +1 -1
  46. package/es/layout/style/index.less +1 -1
  47. package/es/layout/style/token.less +5 -5
  48. package/es/menu/style/index.css +76 -114
  49. package/es/menu/style/index.less +66 -140
  50. package/es/menu/style/mixin.less +10 -1
  51. package/es/menu/style/token.less +9 -12
  52. package/es/menu/subMenu.js +2 -1
  53. package/es/pagination/pagination.js +4 -4
  54. package/es/pagination/style/index.css +70 -55
  55. package/es/pagination/style/index.less +61 -43
  56. package/es/pagination/style/token.less +4 -4
  57. package/es/radio/radio.js +21 -8
  58. package/es/rate/style/index.css +9 -9
  59. package/es/rate/style/token.less +6 -6
  60. package/es/select/style/index.css +1 -1
  61. package/es/select/style/token.less +1 -1
  62. package/es/stepper/style/index.css +1 -1
  63. package/es/stepper/style/token.less +1 -1
  64. package/es/style/icon/kdicon.css +225 -0
  65. package/es/style/icon/kdicon.woff +0 -0
  66. package/es/switch/style/index.css +11 -11
  67. package/es/switch/style/index.less +2 -2
  68. package/es/switch/style/token.less +7 -10
  69. package/lib/_utils/usePopper.js +4 -5
  70. package/lib/anchor/anchor.js +0 -6
  71. package/lib/anchor/style/index.css +5 -2
  72. package/lib/anchor/style/index.less +6 -2
  73. package/lib/anchor/style/token.less +2 -1
  74. package/lib/button/button.d.ts +1 -1
  75. package/lib/button/button.js +2 -2
  76. package/lib/button/group.d.ts +21 -0
  77. package/lib/button/group.js +166 -0
  78. package/lib/button/index.d.ts +5 -1
  79. package/lib/button/index.js +5 -1
  80. package/lib/button/style/index.css +117 -21
  81. package/lib/button/style/index.less +332 -192
  82. package/lib/button/style/token.less +41 -25
  83. package/lib/carousel/carousel.js +4 -0
  84. package/lib/checkbox/checkbox.js +3 -4
  85. package/lib/checkbox/style/index.css +36 -33
  86. package/lib/checkbox/style/index.less +25 -18
  87. package/lib/checkbox/style/token.less +34 -35
  88. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  89. package/lib/config-provider/compDefaultProps.js +4 -0
  90. package/lib/date-picker/style/index.css +8 -8
  91. package/lib/date-picker/style/index.less +8 -8
  92. package/lib/date-picker/style/token.less +3 -21
  93. package/lib/empty/defaultEmptyImg.js +6 -3
  94. package/lib/empty/illustrationEmptyImg.js +7 -4
  95. package/lib/icon/interface.js +1 -1
  96. package/lib/image/preview.js +1 -1
  97. package/lib/image/style/index.css +8 -8
  98. package/lib/image/style/index.less +5 -5
  99. package/lib/image/style/token.less +12 -25
  100. package/lib/input/style/index.css +53 -50
  101. package/lib/input/style/index.less +5 -4
  102. package/lib/input/style/mixin.less +1 -0
  103. package/lib/input/style/token.less +23 -20
  104. package/lib/layout/style/index.css +1 -1
  105. package/lib/layout/style/index.less +1 -1
  106. package/lib/layout/style/token.less +5 -5
  107. package/lib/menu/style/index.css +76 -114
  108. package/lib/menu/style/index.less +66 -140
  109. package/lib/menu/style/mixin.less +10 -1
  110. package/lib/menu/style/token.less +9 -12
  111. package/lib/menu/subMenu.js +2 -1
  112. package/lib/pagination/pagination.js +4 -3
  113. package/lib/pagination/style/index.css +70 -55
  114. package/lib/pagination/style/index.less +61 -43
  115. package/lib/pagination/style/token.less +4 -4
  116. package/lib/radio/radio.js +21 -8
  117. package/lib/rate/style/index.css +9 -9
  118. package/lib/rate/style/token.less +6 -6
  119. package/lib/select/style/index.css +1 -1
  120. package/lib/select/style/token.less +1 -1
  121. package/lib/stepper/style/index.css +1 -1
  122. package/lib/stepper/style/token.less +1 -1
  123. package/lib/style/icon/kdicon.css +225 -0
  124. package/lib/style/icon/kdicon.woff +0 -0
  125. package/lib/switch/style/index.css +11 -11
  126. package/lib/switch/style/index.less +2 -2
  127. package/lib/switch/style/token.less +7 -10
  128. package/package.json +1 -1
package/dist/kdesign.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.1.0
3
+ * @kdcloudjs/kdesign v1.1.3
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -1473,7 +1473,7 @@ function usePopper(locatorElement, popperElement, props) {
1473
1473
  _props$placement = props.placement,
1474
1474
  placement = _props$placement === void 0 ? 'top' : _props$placement,
1475
1475
  _props$gap = props.gap,
1476
- defalutGap = _props$gap === void 0 ? 4 : _props$gap,
1476
+ defaultGap = _props$gap === void 0 ? 4 : _props$gap,
1477
1477
  _props$scrollHidden = props.scrollHidden,
1478
1478
  scrollHidden = _props$scrollHidden === void 0 ? false : _props$scrollHidden,
1479
1479
  _props$mouseEnterDela = props.mouseEnterDelay,
@@ -1520,7 +1520,7 @@ function usePopper(locatorElement, popperElement, props) {
1520
1520
  top: 0,
1521
1521
  left: 0
1522
1522
  };
1523
- var gap = defalutGap + (arrow ? 10 : 0);
1523
+ var gap = defaultGap + (arrow ? 10 : 0);
1524
1524
 
1525
1525
  var _useState = Object(react__WEBPACK_IMPORTED_MODULE_18__["useState"])(initPos),
1526
1526
  _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_6___default()(_useState, 2),
@@ -1782,8 +1782,8 @@ function usePopper(locatorElement, popperElement, props) {
1782
1782
  };
1783
1783
  var popperNode = popperRef.current;
1784
1784
  var locatorNode = locatorRef.current;
1785
- Object(_hooks__WEBPACK_IMPORTED_MODULE_24__["useResizeObserver"])(popperNode, alignPopper);
1786
- Object(_hooks__WEBPACK_IMPORTED_MODULE_24__["useResizeObserver"])(locatorNode, alignPopper);
1785
+ Object(_hooks__WEBPACK_IMPORTED_MODULE_24__["useResizeObserver"])(popperNode || document.body, alignPopper);
1786
+ Object(_hooks__WEBPACK_IMPORTED_MODULE_24__["useResizeObserver"])(locatorNode || document.body, alignPopper);
1787
1787
  var showPopper = Object(react__WEBPACK_IMPORTED_MODULE_18__["useCallback"])(function (evType) {
1788
1788
  if (!disabled) {
1789
1789
  !exist && setExist(true);
@@ -1805,7 +1805,6 @@ function usePopper(locatorElement, popperElement, props) {
1805
1805
  }
1806
1806
  }, [disabled, exist, onTrigger, visible]);
1807
1807
  var hidePopper = Object(react__WEBPACK_IMPORTED_MODULE_18__["useCallback"])(function () {
1808
- setEvType('');
1809
1808
  props.visible === undefined && setVisible(false);
1810
1809
  onVisibleChange && onVisibleChange(false);
1811
1810
  }, [onVisibleChange, props.visible]);
@@ -2766,12 +2765,6 @@ var InternalAnchor = function InternalAnchor(props, ref) {
2766
2765
  var handleVisibleChange = function handleVisibleChange(visible) {
2767
2766
  !isLocked && onVisibleChange && onVisibleChange(visible);
2768
2767
  if (props.visible !== undefined) return;
2769
-
2770
- if (visible) {
2771
- setOptionShow(visible);
2772
- return;
2773
- }
2774
-
2775
2768
  !isLocked && setOptionShow(visible);
2776
2769
  };
2777
2770
 
@@ -4400,7 +4393,7 @@ var _excluded = ["type", "iconPlace", "children", "className", "prefixCls", "siz
4400
4393
 
4401
4394
  var ButtonTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('second', 'primary', 'ghost', 'text');
4402
4395
  var ButtonSizes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('large', 'middle', 'small');
4403
- var ButtonShapes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('circle', 'round');
4396
+ var ButtonShapes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('circle', 'round', 'none');
4404
4397
  var ButtonIconPlaces = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('left', 'right');
4405
4398
  var ButtonHTMLTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_9__["tuple"])('submit', 'button', 'reset');
4406
4399
 
@@ -4482,7 +4475,7 @@ var InternalButton = function InternalButton(props, ref) {
4482
4475
 
4483
4476
  var isTextBtn = type === 'text'; // 判断按钮是否文本类型。这些类型下有部分样式不适用
4484
4477
 
4485
- var btnClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(btnPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-shape-").concat(shape), shape && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), _classNames));
4478
+ var btnClasses = classnames__WEBPACK_IMPORTED_MODULE_6___default()(btnPrefixCls, className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-").concat(type), type), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-size-").concat(size), size), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-shape-").concat(shape), shape && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-no-border"), !bordered), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-background-ghost"), ghost && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-loading"), loading && !isTextBtn), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-block"), block && !shape), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_1___default()(_classNames, "".concat(btnPrefixCls, "-icon-only"), !children && children !== 0 && icon), _classNames));
4486
4479
  var iconWrapperClassName = "".concat(btnPrefixCls, "-iconWrapper-").concat(iconPlace === 'left' ? 'left' : 'right');
4487
4480
  var iconNode = icon && !loading ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_4___default.a.createElement("span", {
4488
4481
  className: iconWrapperClassName
@@ -4527,6 +4520,188 @@ Button.displayName = 'Button';
4527
4520
 
4528
4521
  /***/ }),
4529
4522
 
4523
+ /***/ "./components/button/group.tsx":
4524
+ /*!*************************************!*\
4525
+ !*** ./components/button/group.tsx ***!
4526
+ \*************************************/
4527
+ /*! exports provided: ButtonGroupTypes, default */
4528
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
4529
+
4530
+ "use strict";
4531
+ __webpack_require__.r(__webpack_exports__);
4532
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ButtonGroupTypes", function() { return ButtonGroupTypes; });
4533
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @babel/runtime/helpers/defineProperty */ "./node_modules/@babel/runtime/helpers/defineProperty.js");
4534
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
4535
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @babel/runtime/helpers/slicedToArray */ "./node_modules/@babel/runtime/helpers/slicedToArray.js");
4536
+ /* harmony import */ var _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__);
4537
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! core-js/modules/es.array.concat.js */ "./node_modules/core-js/modules/es.array.concat.js");
4538
+ /* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_2__);
4539
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! core-js/modules/es.array.map.js */ "./node_modules/core-js/modules/es.array.map.js");
4540
+ /* harmony import */ var core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_map_js__WEBPACK_IMPORTED_MODULE_3__);
4541
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! core-js/modules/es.object.keys.js */ "./node_modules/core-js/modules/es.object.keys.js");
4542
+ /* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_4__);
4543
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! core-js/modules/es.symbol.js */ "./node_modules/core-js/modules/es.symbol.js");
4544
+ /* harmony import */ var core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_symbol_js__WEBPACK_IMPORTED_MODULE_5__);
4545
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! core-js/modules/es.array.filter.js */ "./node_modules/core-js/modules/es.array.filter.js");
4546
+ /* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__);
4547
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! core-js/modules/es.object.to-string.js */ "./node_modules/core-js/modules/es.object.to-string.js");
4548
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_7__);
4549
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptor.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptor.js");
4550
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptor_js__WEBPACK_IMPORTED_MODULE_8__);
4551
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! core-js/modules/web.dom-collections.for-each.js */ "./node_modules/core-js/modules/web.dom-collections.for-each.js");
4552
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_9__);
4553
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! core-js/modules/es.object.get-own-property-descriptors.js */ "./node_modules/core-js/modules/es.object.get-own-property-descriptors.js");
4554
+ /* harmony import */ var core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_get_own_property_descriptors_js__WEBPACK_IMPORTED_MODULE_10__);
4555
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! react */ "react");
4556
+ /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__);
4557
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(/*! classnames */ "./node_modules/classnames/index.js");
4558
+ /* harmony import */ var classnames__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_12__);
4559
+ /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
4560
+ /* harmony import */ var _utils__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(/*! ../_utils */ "./components/_utils/index.ts");
4561
+ /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(/*! ../index */ "./components/index.tsx");
4562
+ /* harmony import */ var _utils_usePopper__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(/*! ../_utils/usePopper */ "./components/_utils/usePopper.tsx");
4563
+ /* harmony import */ var _utils_react_children__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(/*! ../_utils/react-children */ "./components/_utils/react-children.ts");
4564
+ /* harmony import */ var _utils_type__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(/*! ../_utils/type */ "./components/_utils/type.ts");
4565
+
4566
+
4567
+
4568
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4569
+
4570
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
4571
+
4572
+
4573
+
4574
+
4575
+
4576
+
4577
+
4578
+
4579
+
4580
+
4581
+
4582
+
4583
+
4584
+
4585
+
4586
+
4587
+
4588
+
4589
+ var ButtonGroupTypes = Object(_utils_type__WEBPACK_IMPORTED_MODULE_18__["tuple"])('basic', 'similar');
4590
+
4591
+ var InternalButtonGroup = function InternalButtonGroup(props, ref) {
4592
+ var _useContext = Object(react__WEBPACK_IMPORTED_MODULE_11__["useContext"])(_config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_13__["default"]),
4593
+ getPrefixCls = _useContext.getPrefixCls,
4594
+ prefixCls = _useContext.prefixCls,
4595
+ userDefaultProps = _useContext.compDefaultProps;
4596
+
4597
+ var buttonGoupProps = Object(_utils__WEBPACK_IMPORTED_MODULE_14__["getCompProps"])('ButtonGroup', userDefaultProps, props);
4598
+ var style = buttonGoupProps.style,
4599
+ className = buttonGoupProps.className,
4600
+ children = buttonGoupProps.children,
4601
+ customPrefixcls = buttonGoupProps.prefixCls,
4602
+ onClick = buttonGoupProps.onClick,
4603
+ onItemClick = buttonGoupProps.onItemClick,
4604
+ overlay = buttonGoupProps.overlay,
4605
+ icon = buttonGoupProps.icon,
4606
+ type = buttonGoupProps.type,
4607
+ buttonType = buttonGoupProps.buttonType,
4608
+ disabled = buttonGoupProps.disabled,
4609
+ onVisibleChange = buttonGoupProps.onVisibleChange;
4610
+
4611
+ var _useState = Object(react__WEBPACK_IMPORTED_MODULE_11__["useState"])(false),
4612
+ _useState2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_useState, 2),
4613
+ optionShow = _useState2[0],
4614
+ setOptionShow = _useState2[1]; // 下拉列表是否展示
4615
+
4616
+
4617
+ var refBtnGroup = react__WEBPACK_IMPORTED_MODULE_11___default.a.useRef(null) || ref;
4618
+ var triggerRef = react__WEBPACK_IMPORTED_MODULE_11___default.a.useRef(null);
4619
+ var isBsicType = type === 'basic';
4620
+ var btnGroupPrefixCls = getPrefixCls(prefixCls, 'btn-group', customPrefixcls);
4621
+ var btnGroupClasses = classnames__WEBPACK_IMPORTED_MODULE_12___default()("".concat(btnGroupPrefixCls), className, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(btnGroupPrefixCls, "-").concat(type), type));
4622
+ var renderTriggerButton = Object(react__WEBPACK_IMPORTED_MODULE_11__["useCallback"])(function () {
4623
+ var _toArray = Object(_utils_react_children__WEBPACK_IMPORTED_MODULE_17__["toArray"])(icon),
4624
+ _toArray2 = _babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(_toArray, 2),
4625
+ _toArray2$ = _toArray2[0],
4626
+ iconUp = _toArray2$ === void 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Icon"], {
4627
+ type: "arrow-up"
4628
+ }) : _toArray2$,
4629
+ _toArray2$2 = _toArray2[1],
4630
+ iconDown = _toArray2$2 === void 0 ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Icon"], {
4631
+ type: "arrow-down"
4632
+ }) : _toArray2$2;
4633
+
4634
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
4635
+ style: style,
4636
+ className: btnGroupClasses,
4637
+ ref: refBtnGroup
4638
+ }, isBsicType && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Button"], {
4639
+ type: buttonType,
4640
+ disabled: disabled
4641
+ }, children, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("span", {
4642
+ className: "".concat(btnGroupPrefixCls, "-basic-icon")
4643
+ }, optionShow ? iconUp : iconDown)), !isBsicType && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Button"], {
4644
+ type: buttonType,
4645
+ disabled: disabled,
4646
+ onClick: onClick
4647
+ }, children), !isBsicType && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("span", {
4648
+ className: "".concat(btnGroupPrefixCls, "-trigger"),
4649
+ ref: triggerRef
4650
+ }, optionShow ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Button"], {
4651
+ icon: iconUp,
4652
+ type: buttonType,
4653
+ disabled: disabled
4654
+ }) : /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(_index__WEBPACK_IMPORTED_MODULE_15__["Button"], {
4655
+ icon: iconDown,
4656
+ type: buttonType,
4657
+ disabled: disabled
4658
+ })));
4659
+ }, [icon, btnGroupPrefixCls, style, btnGroupClasses, refBtnGroup, isBsicType, buttonType, disabled, children, optionShow, onClick]);
4660
+ var handleItemClick = Object(react__WEBPACK_IMPORTED_MODULE_11__["useCallback"])(function (data) {
4661
+ onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(data);
4662
+ setOptionShow(false);
4663
+ }, [onItemClick]);
4664
+ var renderContent = Object(react__WEBPACK_IMPORTED_MODULE_11__["useCallback"])(function () {
4665
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
4666
+ className: "".concat(btnGroupPrefixCls, "-dropdown")
4667
+ }, (overlay || []).map(function (item) {
4668
+ return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div", {
4669
+ key: item.value,
4670
+ className: "".concat(btnGroupPrefixCls, "-dropdown-item"),
4671
+ onClick: function onClick() {
4672
+ return handleItemClick === null || handleItemClick === void 0 ? void 0 : handleItemClick(item);
4673
+ }
4674
+ }, item.label);
4675
+ }));
4676
+ }, [btnGroupPrefixCls, overlay, handleItemClick]);
4677
+
4678
+ var handleVisibleChange = function handleVisibleChange(visible) {
4679
+ setOptionShow(visible);
4680
+ onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(visible);
4681
+ };
4682
+
4683
+ var popperProps = _objectSpread(_objectSpread({
4684
+ placement: 'bottomLeft',
4685
+ trigger: 'click'
4686
+ }, buttonGoupProps), {}, {
4687
+ prefixCls: btnGroupPrefixCls,
4688
+ defaultVisible: optionShow,
4689
+ visible: optionShow,
4690
+ onVisibleChange: handleVisibleChange,
4691
+ getTriggerElement: function getTriggerElement(locatorNode) {
4692
+ return isBsicType ? locatorNode : triggerRef.current;
4693
+ }
4694
+ });
4695
+
4696
+ return Object(_utils_usePopper__WEBPACK_IMPORTED_MODULE_16__["default"])(renderTriggerButton(), renderContent(), popperProps);
4697
+ };
4698
+
4699
+ var ButtonGroup = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11___default.a.forwardRef(InternalButtonGroup);
4700
+ ButtonGroup.displayName = 'ButtonGroup';
4701
+ /* harmony default export */ __webpack_exports__["default"] = (ButtonGroup);
4702
+
4703
+ /***/ }),
4704
+
4530
4705
  /***/ "./components/button/index.tsx":
4531
4706
  /*!*************************************!*\
4532
4707
  !*** ./components/button/index.tsx ***!
@@ -4537,13 +4712,17 @@ Button.displayName = 'Button';
4537
4712
  "use strict";
4538
4713
  __webpack_require__.r(__webpack_exports__);
4539
4714
  /* harmony import */ var _button__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./button */ "./components/button/button.tsx");
4715
+ /* harmony import */ var _group__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./group */ "./components/button/group.tsx");
4540
4716
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "ButtonType", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["ButtonType"]; });
4541
4717
 
4542
4718
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "IButtonProps", function() { return _button__WEBPACK_IMPORTED_MODULE_0__["IButtonProps"]; });
4543
4719
 
4544
4720
 
4545
4721
 
4546
- /* harmony default export */ __webpack_exports__["default"] = (_button__WEBPACK_IMPORTED_MODULE_0__["default"]);
4722
+ var Button = _button__WEBPACK_IMPORTED_MODULE_0__["default"];
4723
+ Button.Dropdown = _group__WEBPACK_IMPORTED_MODULE_1__["default"];
4724
+
4725
+ /* harmony default export */ __webpack_exports__["default"] = (Button);
4547
4726
 
4548
4727
  /***/ }),
4549
4728
 
@@ -4899,6 +5078,10 @@ var InternalCarousel = function InternalCarousel(props, ref) {
4899
5078
  if (autoplay) {
4900
5079
  play();
4901
5080
  }
5081
+
5082
+ return function () {
5083
+ autoplayRef.current && clearTimeout(autoplayRef.current);
5084
+ };
4902
5085
  }, [currentIndex, autoplay, intervalTime, play]);
4903
5086
 
4904
5087
  var showDot = function showDot() {
@@ -5742,8 +5925,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
5742
5925
  return selected ? false : indeterminate;
5743
5926
  };
5744
5927
 
5745
- var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(size), true && !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _classNames));
5746
- var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected && !disabled), _classNames2));
5928
+ var getDefaultClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(size), true && !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames, "checked", selected), _classNames));
5929
+ var getSquareClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected && !disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "checked", selected), _classNames2));
5747
5930
  var getRootClassName = isDefaultType() ? getDefaultClassName : getSquareClassName;
5748
5931
  var inputClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()({}, "".concat(checkboxPrefixCls, "-input"), true));
5749
5932
  var checkedWrapperClassName = classnames__WEBPACK_IMPORTED_MODULE_4___default()((_classNames4 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-no-child"), !children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper"), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-wrapper-size"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-margin"), !!children), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked"), selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-indeterminate"), getIndeterminate()), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-disabled"), disabled && !selected), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames4, "".concat(checkboxPrefixCls, "-").concat(checkboxType, "-checked-disabled"), disabled && selected), _classNames4));
@@ -5787,8 +5970,7 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
5787
5970
  ref: ref,
5788
5971
  value: value,
5789
5972
  checked: selected,
5790
- disabled: disabled,
5791
- name: name
5973
+ disabled: disabled
5792
5974
  })), children && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
5793
5975
  className: "".concat(checkboxPrefixCls, "-children")
5794
5976
  }, children), !isDefaultType() && /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_3___default.a.createElement("span", {
@@ -7421,6 +7603,10 @@ var compDefaultProps = {
7421
7603
  size: 'middle',
7422
7604
  bordered: true
7423
7605
  },
7606
+ ButtonGroup: {
7607
+ buttonType: 'primary',
7608
+ type: 'basic'
7609
+ },
7424
7610
  Card: {
7425
7611
  hoverable: false,
7426
7612
  selectable: false
@@ -14065,6 +14251,9 @@ __webpack_require__.r(__webpack_exports__);
14065
14251
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14066
14252
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14067
14253
  /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
14254
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");
14255
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
14256
+
14068
14257
 
14069
14258
 
14070
14259
 
@@ -14074,6 +14263,7 @@ function DefaultEmptyImg() {
14074
14263
  prefixCls = _useContext.prefixCls;
14075
14264
 
14076
14265
  var emptyPrefixCls = getPrefixCls(prefixCls, 'empty');
14266
+ var linearGradientId = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()(emptyPrefixCls + '-default-linearGradient');
14077
14267
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", {
14078
14268
  className: "".concat(emptyPrefixCls, "-image"),
14079
14269
  width: "168px",
@@ -14086,7 +14276,7 @@ function DefaultEmptyImg() {
14086
14276
  y1: "0%",
14087
14277
  x2: "50%",
14088
14278
  y2: "100%",
14089
- id: "linearGradient-1"
14279
+ id: linearGradientId
14090
14280
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("stop", {
14091
14281
  stopColor: "#D6DCE7",
14092
14282
  offset: "0%"
@@ -14136,7 +14326,7 @@ function DefaultEmptyImg() {
14136
14326
  height: "6"
14137
14327
  })), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
14138
14328
  transform: "translate(108.000000, 40.000000)",
14139
- fill: "url(#linearGradient-1)",
14329
+ fill: "url(#".concat(linearGradientId, ")"),
14140
14330
  id: "\u80CC\u666F/\u4E91",
14141
14331
  opacity: "0.300000012"
14142
14332
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
@@ -14145,7 +14335,7 @@ function DefaultEmptyImg() {
14145
14335
  d: "M3,39 L3,24 C3,15.7157288 9.71572875,9 18,9 C25.4616776,9 31.6508469,14.4482558 32.8063948,21.5836543 C33.797875,21.2064779 34.8748247,21 36,21 C40.9705627,21 45,25.0294373 45,30 L45,39 L3,39 Z"
14146
14336
  }))), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
14147
14337
  transform: "translate(12.000000, 32.000000)",
14148
- fill: "url(#linearGradient-1)",
14338
+ fill: "url(#".concat(linearGradientId, ")"),
14149
14339
  id: "\u80CC\u666F/\u4E91",
14150
14340
  opacity: "0.300000012"
14151
14341
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
@@ -14268,6 +14458,9 @@ __webpack_require__.r(__webpack_exports__);
14268
14458
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "react");
14269
14459
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
14270
14460
  /* harmony import */ var _config_provider_ConfigContext__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../config-provider/ConfigContext */ "./components/config-provider/ConfigContext.tsx");
14461
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! lodash/uniqueId */ "./node_modules/lodash/uniqueId.js");
14462
+ /* harmony import */ var lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2__);
14463
+
14271
14464
 
14272
14465
 
14273
14466
 
@@ -14277,6 +14470,7 @@ function IllustrationEmptyImg() {
14277
14470
  prefixCls = _useContext.prefixCls;
14278
14471
 
14279
14472
  var emptyPrefixCls = getPrefixCls(prefixCls, 'empty');
14473
+ var linearGradientId = lodash_uniqueId__WEBPACK_IMPORTED_MODULE_2___default()(emptyPrefixCls + '-illus-linearGradient-');
14280
14474
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("svg", {
14281
14475
  className: "".concat(emptyPrefixCls, "-image"),
14282
14476
  width: "200px",
@@ -14295,7 +14489,7 @@ function IllustrationEmptyImg() {
14295
14489
  y1: "0%",
14296
14490
  x2: "50%",
14297
14491
  y2: "100%",
14298
- id: "linearGradient-3"
14492
+ id: linearGradientId
14299
14493
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("stop", {
14300
14494
  stopColor: "#F2F5FA",
14301
14495
  offset: "0%"
@@ -14308,7 +14502,7 @@ function IllustrationEmptyImg() {
14308
14502
  y1: "0%",
14309
14503
  x2: "50%",
14310
14504
  y2: "100%",
14311
- id: "linearGradient-4"
14505
+ id: "".concat(linearGradientId, "-1")
14312
14506
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("stop", {
14313
14507
  stopColor: "#F2F5FA",
14314
14508
  offset: "0%"
@@ -14362,7 +14556,7 @@ function IllustrationEmptyImg() {
14362
14556
  transform: "translate(11.428571, 37.050000)"
14363
14557
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
14364
14558
  transform: "translate(34.285714, 34.200000) scale(-1, 1) translate(-34.285714, -34.200000) ",
14365
- fill: "url(#linearGradient-3)",
14559
+ fill: "url(#".concat(linearGradientId, ")"),
14366
14560
  id: "\u5F62\u72B6\u7ED3\u5408"
14367
14561
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
14368
14562
  d: "M4.28571429,55.575 L4.28571429,34.2535714 C4.28571429,22.4188982 13.8796125,12.825 25.7142857,12.825 C36.3598894,12.825 45.1923741,20.587885 46.8597669,30.7616821 C48.2786739,30.2207368 49.8190861,29.925 51.4285714,29.925 C58.5293754,29.925 64.2857143,35.6813389 64.2857143,42.7821429 L64.2857143,55.575 L4.28571429,55.575 Z"
@@ -14371,7 +14565,7 @@ function IllustrationEmptyImg() {
14371
14565
  id: "\u80CC\u666F/\u4E91"
14372
14566
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("g", {
14373
14567
  transform: "translate(142.857143, 51.300000)",
14374
- fill: "url(#linearGradient-4)",
14568
+ fill: "url(#".concat(linearGradientId, "-1)"),
14375
14569
  id: "\u5F62\u72B6\u7ED3\u5408"
14376
14570
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default.a.createElement("path", {
14377
14571
  d: "M17.1428571,8.55 C24.2401777,8.55 30.1286667,13.7256234 31.2399627,20.508509 C32.186033,20.1471098 33.2128549,19.95 34.2857143,19.95 C39.0195836,19.95 42.8571429,23.7875593 42.8571429,28.5214286 L42.8571429,37.05 L31.4281429,37.049 L31.4285714,37.05 L2.85714286,37.05 L2.85714286,22.8357143 C2.85714286,14.9459321 9.253075,8.55 17.1428571,8.55 Z"
@@ -18474,7 +18668,7 @@ var Preview = function Preview(props) {
18474
18668
  }, operations, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["createElement"]("span", {
18475
18669
  onClick: onClose
18476
18670
  }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_11__["createElement"](_icon__WEBPACK_IMPORTED_MODULE_16__["default"], {
18477
- type: "close"
18671
+ type: "close-solid"
18478
18672
  }), "\u5173\u95ED"))));
18479
18673
  return /*#__PURE__*/react_dom__WEBPACK_IMPORTED_MODULE_12___default.a.createPortal(peviewContainer, document.body);
18480
18674
  };
@@ -21928,7 +22122,8 @@ var SubMenu = function SubMenu(props) {
21928
22122
  return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("li", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_1___default()({
21929
22123
  ref: subMenuRef,
21930
22124
  className: classnames__WEBPACK_IMPORTED_MODULE_12___default()(prefixCls, className, (_classNames2 = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default()(_classNames2, "".concat(prefixCls, "-hover"), !disabled && isVisible), _classNames2)),
21931
- key: keyValue
22125
+ key: keyValue,
22126
+ title: title
21932
22127
  }, mouseEvent, {
21933
22128
  style: style
21934
22129
  }), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_8__["createElement"]("div", {
@@ -23624,8 +23819,6 @@ __webpack_require__.r(__webpack_exports__);
23624
23819
 
23625
23820
 
23626
23821
 
23627
- /* eslint-disable react/jsx-no-comment-textnodes */
23628
-
23629
23822
 
23630
23823
 
23631
23824
 
@@ -23859,9 +24052,11 @@ var Pagination = function Pagination(props) {
23859
24052
  selectedKey: size,
23860
24053
  menu: sizeOptions,
23861
24054
  trigger: "click",
24055
+ placement: "bottomRight",
23862
24056
  disabled: disabled,
24057
+ prefix: "".concat(prefixCls, "-dropdown"),
23863
24058
  popperStyle: {
23864
- minWidth: 67
24059
+ minWidth: 64
23865
24060
  },
23866
24061
  onItemClick: handleChangeSize,
23867
24062
  getPopupContainer: function getPopupContainer(triggerNode) {
@@ -24011,7 +24206,7 @@ var Pagination = function Pagination(props) {
24011
24206
  menu: sizeOptions,
24012
24207
  disabled: disabled,
24013
24208
  popperStyle: {
24014
- minWidth: 67
24209
+ minWidth: 64
24015
24210
  },
24016
24211
  onItemClick: handleChangeSize,
24017
24212
  getPopupContainer: function getPopupContainer(triggerNode) {
@@ -25229,14 +25424,27 @@ var InternalRadio = function InternalRadio(props, ref) {
25229
25424
 
25230
25425
  var classString = classnames__WEBPACK_IMPORTED_MODULE_13___default()((_classNames = {}, _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls), true), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls, "-disabled"), radioProps.disabled), _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_8___default()(_classNames, "".concat(radioPrefixCls, "-checked"), context ? radioProps.checked : isChecked), _classNames), className); // 单选包裹元素class名称
25231
25426
 
25232
- return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("label", {
25233
- className: classString,
25234
- style: style,
25235
- ref: mergedRef
25236
- }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7___default()({
25237
- type: "radio",
25238
- className: "".concat(radioPrefixCls, "-input")
25239
- }, radioProps)), children !== undefined ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("span", null, children) : null);
25427
+ var handleRepeatClick = function handleRepeatClick(e) {
25428
+ var element = e.target;
25429
+
25430
+ if (element.tagName !== 'INPUT') {
25431
+ e.stopPropagation();
25432
+ }
25433
+ };
25434
+
25435
+ return (
25436
+ /*#__PURE__*/
25437
+ // eslint-disable-next-line
25438
+ react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("label", {
25439
+ className: classString,
25440
+ style: style,
25441
+ ref: mergedRef,
25442
+ onClick: handleRepeatClick
25443
+ }, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("input", _babel_runtime_helpers_extends__WEBPACK_IMPORTED_MODULE_7___default()({
25444
+ type: "radio",
25445
+ className: "".concat(radioPrefixCls, "-input")
25446
+ }, radioProps)), children !== undefined ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["createElement"]("span", null, children) : null)
25447
+ );
25240
25448
  };
25241
25449
 
25242
25450
  var Radio = /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_12__["forwardRef"](InternalRadio);
@@ -101607,6 +101815,45 @@ function toString(value) {
101607
101815
  module.exports = toString;
101608
101816
 
101609
101817
 
101818
+ /***/ }),
101819
+
101820
+ /***/ "./node_modules/lodash/uniqueId.js":
101821
+ /*!*****************************************!*\
101822
+ !*** ./node_modules/lodash/uniqueId.js ***!
101823
+ \*****************************************/
101824
+ /*! no static exports found */
101825
+ /***/ (function(module, exports, __webpack_require__) {
101826
+
101827
+ var toString = __webpack_require__(/*! ./toString */ "./node_modules/lodash/toString.js");
101828
+
101829
+ /** Used to generate unique IDs. */
101830
+ var idCounter = 0;
101831
+
101832
+ /**
101833
+ * Generates a unique ID. If `prefix` is given, the ID is appended to it.
101834
+ *
101835
+ * @static
101836
+ * @since 0.1.0
101837
+ * @memberOf _
101838
+ * @category Util
101839
+ * @param {string} [prefix=''] The value to prefix the ID with.
101840
+ * @returns {string} Returns the unique ID.
101841
+ * @example
101842
+ *
101843
+ * _.uniqueId('contact_');
101844
+ * // => 'contact_104'
101845
+ *
101846
+ * _.uniqueId();
101847
+ * // => '105'
101848
+ */
101849
+ function uniqueId(prefix) {
101850
+ var id = ++idCounter;
101851
+ return toString(prefix) + id;
101852
+ }
101853
+
101854
+ module.exports = uniqueId;
101855
+
101856
+
101610
101857
  /***/ }),
101611
101858
 
101612
101859
  /***/ "./node_modules/object-assign/index.js":