@kdcloudjs/kdesign 1.3.6 → 1.3.9

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 (58) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/kdesign-complete.less +132 -127
  3. package/dist/kdesign.css +168 -121
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +55 -28
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +2 -2
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/anchor/anchor.js +3 -3
  11. package/es/anchor/style/index.css +7 -7
  12. package/es/anchor/style/index.less +5 -5
  13. package/es/anchor/style/token.less +1 -1
  14. package/es/button/style/index.css +36 -0
  15. package/es/button/style/index.less +14 -2
  16. package/es/checkbox/checkbox.js +7 -3
  17. package/es/config-provider/compDefaultProps.d.ts +1 -0
  18. package/es/config-provider/compDefaultProps.js +2 -1
  19. package/es/menu/menu.js +22 -8
  20. package/es/menu/style/index.css +122 -110
  21. package/es/menu/style/index.less +51 -73
  22. package/es/menu/style/mixin.less +59 -42
  23. package/es/menu/subMenu.js +5 -4
  24. package/es/radio/radio.js +7 -3
  25. package/es/select/select.js +6 -4
  26. package/es/switch/style/index.css +1 -1
  27. package/es/switch/style/token.less +1 -1
  28. package/es/table/table.js +2 -0
  29. package/es/tree/style/index.css +1 -2
  30. package/es/tree/style/index.less +1 -2
  31. package/es/tree/style/token.less +0 -1
  32. package/es/tree/tree.js +1 -2
  33. package/es/tree/treeNode.js +1 -1
  34. package/lib/anchor/anchor.js +3 -3
  35. package/lib/anchor/style/index.css +7 -7
  36. package/lib/anchor/style/index.less +5 -5
  37. package/lib/anchor/style/token.less +1 -1
  38. package/lib/button/style/index.css +36 -0
  39. package/lib/button/style/index.less +14 -2
  40. package/lib/checkbox/checkbox.js +7 -3
  41. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  42. package/lib/config-provider/compDefaultProps.js +2 -1
  43. package/lib/menu/menu.js +22 -8
  44. package/lib/menu/style/index.css +122 -110
  45. package/lib/menu/style/index.less +51 -73
  46. package/lib/menu/style/mixin.less +59 -42
  47. package/lib/menu/subMenu.js +5 -4
  48. package/lib/radio/radio.js +7 -3
  49. package/lib/select/select.js +6 -4
  50. package/lib/switch/style/index.css +1 -1
  51. package/lib/switch/style/token.less +1 -1
  52. package/lib/table/table.js +2 -0
  53. package/lib/tree/style/index.css +1 -2
  54. package/lib/tree/style/index.less +1 -2
  55. package/lib/tree/style/token.less +0 -1
  56. package/lib/tree/tree.js +1 -2
  57. package/lib/tree/treeNode.js +1 -1
  58. package/package.json +1 -1
@@ -20,12 +20,15 @@
20
20
  cursor: pointer;
21
21
 
22
22
  &-title {
23
- .menuItemTitle();
24
- }
25
-
26
- &-title > span {
27
- opacity: 1;
28
- transition: opacity calc(@menu-motion-duration - 0.1s) cubic-bezier(0,.4,.4,1);
23
+ display: flex;
24
+ align-items: center;
25
+ height: 50px;
26
+ .ellipsis();
27
+ & > span {
28
+ .ellipsis();
29
+ opacity: 1;
30
+ transition: opacity calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1);
31
+ }
29
32
  }
30
33
 
31
34
  &-collapsed {
@@ -42,7 +45,7 @@
42
45
 
43
46
  & > span {
44
47
  opacity: 0;
45
- transition: opacity calc(@menu-motion-duration - 0.1s) cubic-bezier(0,.4,.4,1);
48
+ transition: opacity calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1);
46
49
  }
47
50
  }
48
51
  }
@@ -54,76 +57,90 @@
54
57
 
55
58
  &-disabled {
56
59
  cursor: not-allowed;
57
- color: @menu-color-disabled;
58
- }
59
-
60
- &-active {
61
- .hover();
60
+ color: @menu-color-disabled !important;
61
+ background-color: @menu-color-background !important;
62
62
  }
63
63
 
64
64
  &-arrow {
65
65
  margin-left: auto;
66
66
  font-size: 16px;
67
+
67
68
  &-up {
68
69
  transform: rotate(180deg);
69
- transition: transform calc(@menu-motion-duration - 0.1s) cubic-bezier(0,.4,.4,1);
70
+ transition: transform calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1);
70
71
  }
71
72
 
72
73
  &-down {
73
74
  transform: rotate(0deg);
74
- transition: transform calc(@menu-motion-duration - 0.1s) cubic-bezier(0.4,0,0.6,1);
75
+ transition: transform calc(@menu-motion-duration - 0.1s) cubic-bezier(0.4, 0, 0.6, 1);
75
76
  }
76
77
  }
77
78
  }
78
79
 
80
+
79
81
  .hover {
80
82
  background-color: @menu-sub-color-background;
81
83
  color: @menu-sub-color-hover;
82
84
  }
83
85
 
84
- .light-hover {
85
- background-color: @menu-light-color-background-hover;
86
- color: @menu-light-color-hover;
87
- }
88
-
89
- .light-active {
90
- background-color: @menu-light-color-background-active;
91
- color: @menu-light-color-active;
92
- }
93
-
94
- .light-default {
95
- color: @menu-light-color;
96
- background: #ffffff;
86
+ .active {
87
+ background-color: @menu-sub-color-background;
88
+ color: @menu-sub-color-hover;
97
89
  }
98
90
 
99
- .menuItemTitle() {
100
- display: flex;
101
- align-items: center;
102
- height: 50px;
103
- .ellipsis();
104
- & > span {
105
- .ellipsis();
106
- }
91
+ .active-inline-title {
92
+ color: @menu-sub-color-hover !important;
93
+ background: @menu-color-background !important;
94
+ border: none;
107
95
  }
108
96
 
109
97
 
110
98
  .light {
111
99
  .light-default();
112
100
 
113
- .@{submenu-prefix-cls}-hover,
114
- .@{submenu-prefix-cls}-sub {
115
- .light-default();
101
+ .@{menuitem-prefix-cls}-disabled, .@{submenu-prefix-cls}-disabled {
102
+ background-color: #fff !important;
116
103
  }
117
104
 
118
- .@{submenu-prefix-cls}-title:hover {
119
- color: @menu-light-color-hover;
105
+ .@{submenu-prefix-cls}-sub {
106
+ color: @menu-light-color;
107
+ background: #FAFAFA;
120
108
  }
121
109
 
122
- .@{submenu-prefix-cls}:not(.@{submenu-prefix-cls}-disabled):hover {
110
+ .@{menuitem-prefix-cls}:hover {
123
111
  .light-hover();
124
112
  }
125
113
 
126
- .@{menuitem-prefix-cls}:not(.@{menuitem-prefix-cls}-disabled):hover {
114
+ .@{menuitem-prefix-cls}-hover, .@{submenu-prefix-cls}-hover {
127
115
  .light-hover();
128
116
  }
117
+
118
+ .@{menuitem-prefix-cls}-active, .@{submenu-prefix-cls}-active {
119
+ .light-active();
120
+ }
121
+ }
122
+
123
+ .light-default {
124
+ color: @menu-light-color;
125
+ background: #ffffff;
126
+ }
127
+
128
+ .light-hover {
129
+ background-color: @menu-light-color-background-hover;
130
+ color: @menu-light-color-hover;
131
+ border: none;
129
132
  }
133
+
134
+ .light-active {
135
+ background-color: @menu-light-color-background-active !important;
136
+ color: @menu-light-color-active !important;
137
+ border: none;
138
+ }
139
+
140
+ .light-active-inline-title {
141
+ color: @menu-light-color-active !important;
142
+ background: #ffffff !important;
143
+ border: none;
144
+ }
145
+
146
+
@@ -50,6 +50,7 @@ var SubMenu = function SubMenu(props) {
50
50
  collapsed = _a.collapsed,
51
51
  keyValue = _a.keyValue,
52
52
  selectedKey = _a.selectedKey,
53
+ selectedKeyPath = _a.selectedKeyPath,
53
54
  openKeys = _a.openKeys,
54
55
  triggerSubMenuAction = _a.triggerSubMenuAction,
55
56
  forceSubMenuRender = _a.forceSubMenuRender,
@@ -59,7 +60,7 @@ var SubMenu = function SubMenu(props) {
59
60
  handleOnOpenChange = _a.handleOnOpenChange,
60
61
  _a$paddingLeft = _a.paddingLeft,
61
62
  paddingLeft = _a$paddingLeft === void 0 ? 0 : _a$paddingLeft,
62
- restProps = __rest(_a, ["prefixCls", "theme", "mode", "title", "icon", "disabled", "children", "collapsed", "keyValue", "selectedKey", "openKeys", "triggerSubMenuAction", "forceSubMenuRender", "inlineIndent", "className", "style", "handleOnOpenChange", "paddingLeft"]);
63
+ restProps = __rest(_a, ["prefixCls", "theme", "mode", "title", "icon", "disabled", "children", "collapsed", "keyValue", "selectedKey", "selectedKeyPath", "openKeys", "triggerSubMenuAction", "forceSubMenuRender", "inlineIndent", "className", "style", "handleOnOpenChange", "paddingLeft"]);
63
64
 
64
65
  var isVertical = mode === 'vertical'; // 初始化level
65
66
 
@@ -288,7 +289,7 @@ var SubMenu = function SubMenu(props) {
288
289
  }; // eslint-disable-next-line react-hooks/rules-of-hooks
289
290
 
290
291
  var verticalView = usePopper( /*#__PURE__*/React.createElement("li", _extends({
291
- className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "light", theme === 'light'), _defineProperty(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-hover"), !disabled && visible), _defineProperty(_classNames2, "".concat(prefixCls, "-active"), Array.isArray(openKeys) && _includesInstanceProperty(openKeys).call(openKeys, keyValue)), _classNames2)),
292
+ className: classNames(prefixCls, className, (_classNames2 = {}, _defineProperty(_classNames2, "light", theme === 'light'), _defineProperty(_classNames2, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames2, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames2, "".concat(prefixCls, "-hover"), !disabled && Array.isArray(openKeys) && _includesInstanceProperty(openKeys).call(openKeys, keyValue)), _defineProperty(_classNames2, "".concat(prefixCls, "-active"), Array.isArray(selectedKeyPath) && _includesInstanceProperty(selectedKeyPath).call(selectedKeyPath, keyValue)), _classNames2)),
292
293
  ref: subMenuVerticalRef,
293
294
  key: keyValue
294
295
  }, {
@@ -332,7 +333,7 @@ var SubMenu = function SubMenu(props) {
332
333
  arrow: false,
333
334
  placement: 'rightTop',
334
335
  gap: 0,
335
- visible: isVertical ? visible : false,
336
+ visible: isVertical && !disabled ? visible : false,
336
337
  disabled: isVertical ? undefined : true,
337
338
  prefixCls: 'kd-menu-popper',
338
339
  popperClassName: theme === 'light' ? 'light' : ''
@@ -345,7 +346,7 @@ var SubMenu = function SubMenu(props) {
345
346
 
346
347
  return /*#__PURE__*/React.createElement("li", _extends({
347
348
  ref: subMenuRef,
348
- className: classNames(prefixCls, className, (_classNames4 = {}, _defineProperty(_classNames4, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames4, "".concat(prefixCls, "-disabled"), disabled), _classNames4)),
349
+ className: classNames(prefixCls, className, (_classNames4 = {}, _defineProperty(_classNames4, "".concat(prefixCls, "-collapsed"), collapsed), _defineProperty(_classNames4, "".concat(prefixCls, "-disabled"), disabled), _defineProperty(_classNames4, "".concat(prefixCls, "-active"), Array.isArray(selectedKeyPath) && _includesInstanceProperty(selectedKeyPath).call(selectedKeyPath, keyValue)), _classNames4)),
349
350
  key: keyValue
350
351
  }, mouseEvent, {
351
352
  style: style
package/es/radio/radio.js CHANGED
@@ -86,6 +86,8 @@ var InternalRadio = function InternalRadio(props, ref) {
86
86
  var classString = classNames((_classNames = {}, _defineProperty(_classNames, "".concat(radioPrefixCls), true), _defineProperty(_classNames, "".concat(radioPrefixCls, "-disabled"), radioProps.disabled), _defineProperty(_classNames, "".concat(radioPrefixCls, "-checked"), context ? radioProps.checked : isChecked), _classNames), className); // 单选包裹元素class名称
87
87
 
88
88
  useEffect(function () {
89
+ var _a;
90
+
89
91
  var handleRepeatClick = function handleRepeatClick(e) {
90
92
  var element = e.target;
91
93
 
@@ -95,10 +97,12 @@ var InternalRadio = function InternalRadio(props, ref) {
95
97
  };
96
98
 
97
99
  var radioRef = mergedRef;
98
- radioRef.current.addEventListener('click', handleRepeatClick);
100
+ (_a = radioRef === null || radioRef === void 0 ? void 0 : radioRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', handleRepeatClick);
99
101
  return function () {
100
- // eslint-disable-next-line react-hooks/exhaustive-deps
101
- radioRef.current.removeEventListener('click', handleRepeatClick);
102
+ var _a; // eslint-disable-next-line react-hooks/exhaustive-deps
103
+
104
+
105
+ (_a = radioRef === null || radioRef === void 0 ? void 0 : radioRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', handleRepeatClick);
102
106
  };
103
107
  }, []);
104
108
  return (
@@ -55,7 +55,9 @@ var InternalSelect = function InternalSelect(props, ref) {
55
55
  placeholder = selectProps.placeholder,
56
56
  dropdownStyle = selectProps.dropdownStyle,
57
57
  style = selectProps.style,
58
- clearIcon = selectProps.clearIcon;
58
+ clearIcon = selectProps.clearIcon,
59
+ _selectProps$popperSt = selectProps.popperStyle,
60
+ popperStyle = _selectProps$popperSt === void 0 ? {} : _selectProps$popperSt;
59
61
  var isMultiple = mode === 'multiple'; // 是否多选
60
62
 
61
63
  var _useMergedState = useMergedState(undefined, {
@@ -116,7 +118,7 @@ var InternalSelect = function InternalSelect(props, ref) {
116
118
 
117
119
  var searchCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-dropdown-search"), true)); // 下拉子项列表样式
118
120
 
119
- var dropContentCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-dropdown-scroll"), isMultiple ? (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 8 : (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 10)); // 多选底部样式
121
+ var dropContentCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-dropdown-scroll"), (isMultiple ? (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 8 : (realChildren === null || realChildren === void 0 ? void 0 : realChildren.length) > 10) || selectProps.dropdownRender)); // 多选底部样式
120
122
 
121
123
  var multipleFooterCls = classNames(_defineProperty({}, "".concat(selectPrefixCls, "-multiple-footer"), true)); // 多选,单选公共样式
122
124
 
@@ -668,10 +670,10 @@ var InternalSelect = function InternalSelect(props, ref) {
668
670
  var _ref2 = (_a = selectRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect(),
669
671
  width = _ref2.width;
670
672
 
671
- return {
673
+ return _extends({
672
674
  width: (dropdownStyle === null || dropdownStyle === void 0 ? void 0 : dropdownStyle.width) || (width > 75 ? width : 75),
673
675
  zIndex: 1050
674
- };
676
+ }, popperStyle);
675
677
  }
676
678
  };
677
679
 
@@ -185,7 +185,7 @@
185
185
  .kd-switch-size-small {
186
186
  height: var(--kd-c-switch-small-sizing-height, 16px);
187
187
  min-width: var(--kd-c-switch-small-sizing-width, 32px);
188
- line-height: var(--kd-c-switch-small-line-height, 14px);
188
+ line-height: var(--kd-c-switch-small-line-height, 16px);
189
189
  font-size: var(--kd-c-switch-small-font-size, var(--kd-g-font-size-small, 12px));
190
190
  border-radius: var(--kd-c-switch-small-radius-border, 8px);
191
191
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  // line-height
19
19
  @switch-large-line-height: var(~'@{switch-prefix}-large-line-height', 20px);
20
- @switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 14px);
20
+ @switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 16px);
21
21
 
22
22
  //radius
23
23
  @switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 8px);
package/es/table/table.js CHANGED
@@ -67,6 +67,8 @@ function Table(props) {
67
67
  });
68
68
 
69
69
  if (footerDataSource) {
70
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
71
+ // @ts-ignore
70
72
  pipeline.footerDataSource(footerDataSource);
71
73
  }
72
74
  /* -------------------------------------------------------------------------- */
@@ -140,7 +140,6 @@
140
140
  pointer-events: none;
141
141
  }
142
142
  .kd-tree-node-item {
143
- height: var(--kd-c-tree-node-sizing-height, 32px);
144
143
  display: -webkit-box;
145
144
  display: -ms-flexbox;
146
145
  display: flex;
@@ -167,7 +166,7 @@
167
166
  border-right: 10px;
168
167
  border-color: white;
169
168
  border-style: solid;
170
- height: var(--kd-c-tree-node-sizing-height, 32px);
169
+ height: 100%;
171
170
  cursor: default;
172
171
  opacity: 0;
173
172
  }
@@ -33,7 +33,6 @@
33
33
  pointer-events: none;
34
34
  }
35
35
  &-item {
36
- height: @tree-node-height;
37
36
  display: flex;
38
37
  align-items: center;
39
38
  }
@@ -54,7 +53,7 @@
54
53
  border-right: 10px;
55
54
  border-color: white;
56
55
  border-style: solid;
57
- height: @tree-node-height;
56
+ height: 100%;
58
57
  cursor: default;
59
58
  opacity: 0;
60
59
  }
@@ -13,7 +13,6 @@
13
13
  @tree-node-icon-color-text: var(~'@{tree-prefix}-node-icon-color-text', #666666);
14
14
 
15
15
  // sizing
16
- @tree-node-height: var(~'@{tree-prefix}-node-sizing-height', 32px);
17
16
  @tree-expand-icon-height: var(~'@{tree-prefix}-expand-icon-sizing-height', 22px);
18
17
  @tree-expand-icon-width: var(~'@{tree-prefix}-expand-icon-sizing-width', 22px);
19
18
  @tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 20px);
package/es/tree/tree.js CHANGED
@@ -57,8 +57,7 @@ var InternalTree = /*#__PURE__*/React.forwardRef(function (props, ref) {
57
57
  setTreeNodeClassName = _TreeProps$setTreeNod2 === void 0 ? function () {
58
58
  return '';
59
59
  } : _TreeProps$setTreeNod2,
60
- _TreeProps$estimatedI = TreeProps.estimatedItemSize,
61
- innerEstimatedItemSize = _TreeProps$estimatedI === void 0 ? 28 : _TreeProps$estimatedI,
60
+ innerEstimatedItemSize = TreeProps.estimatedItemSize,
62
61
  style = TreeProps.style;
63
62
  var treePrefixCls = getPrefixCls(prefixCls, 'tree', customPrefixcls); // 树样式前缀
64
63
 
@@ -324,7 +324,7 @@ var TreeNode = /*#__PURE__*/React.forwardRef(function (props, ref) {
324
324
  return /*#__PURE__*/React.createElement("div", {
325
325
  className: classNames("".concat(treeNodePrefixCls, "-item"), _defineProperty({}, "".concat(treeNodePrefixCls, "-item-hover"), !disabled && selectable), _defineProperty({}, "".concat(treeNodePrefixCls, "-selected"), selected && selectable && !disabled), _defineProperty({}, "".concat(treeNodePrefixCls, "-disabled"), disabled), _defineProperty({}, "".concat(treeNodePrefixCls, "-opened"), expandState), _concatInstanceProperty(_context = "".concat(treeNodePrefixCls, "-item-")).call(_context, nodeKey), className),
326
326
  style: _extends({
327
- height: "".concat(estimatedItemSize)
327
+ height: "".concat(estimatedItemSize, "px")
328
328
  }, style),
329
329
  onClick: handleClick
330
330
  }, renderNode());
@@ -186,7 +186,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
186
186
 
187
187
  var anchorMenuClass = (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(anchorPrefixCls, "-menu"), true));
188
188
  var anchorAdvancedClass = (0, _classnames.default)((0, _defineProperty2.default)({}, "".concat(anchorPrefixCls, "-advanced"), true));
189
- var inkClass = (0, _classnames.default)("".concat(anchorPrefixCls, "-ink-line"), {
189
+ var inkClass = (0, _classnames.default)("".concat(anchorPrefixCls, "-line-slider"), {
190
190
  visible: activeLink
191
191
  });
192
192
 
@@ -343,7 +343,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
343
343
  getScrollContainer().addEventListener('scroll', handleScroll);
344
344
  handleScroll();
345
345
  return function () {
346
- return window.removeEventListener('scroll', handleScroll);
346
+ return getScrollContainer().removeEventListener('scroll', handleScroll);
347
347
  };
348
348
  }, [handleScroll, getScrollContainer]);
349
349
  (0, _react.useEffect)(function () {
@@ -418,7 +418,7 @@ var InternalAnchor = function InternalAnchor(props, ref) {
418
418
  width: anchorPosition.width
419
419
  } : undefined
420
420
  }, /*#__PURE__*/_react.default.createElement("div", {
421
- className: "".concat(anchorPrefixCls, "-ink")
421
+ className: "".concat(anchorPrefixCls, "-line")
422
422
  }, /*#__PURE__*/_react.default.createElement("span", {
423
423
  className: inkClass,
424
424
  ref: inkRef
@@ -189,7 +189,7 @@
189
189
  content: '';
190
190
  height: 0;
191
191
  width: 40px;
192
- border-bottom: var(--kd-c-anchor-ink-line-spacing-width, 1px) dashed var(--kd-c-anchor-color-border-disabled, var(--kd-g-color-border-disabled, #ccc));
192
+ border-bottom: var(--kd-c-anchor-line-slider-spacing-width, 1px) dashed var(--kd-c-anchor-color-border-disabled, var(--kd-g-color-border-disabled, #ccc));
193
193
  margin: 4px;
194
194
  }
195
195
  .kd-anchor-advanced-arrows {
@@ -227,31 +227,31 @@
227
227
  .kd-anchor-advanced .kd-anchor {
228
228
  max-width: var(--kd-c-anchor-advanced-sizing-width, 160px);
229
229
  }
230
- .kd-anchor-ink {
230
+ .kd-anchor-line {
231
231
  position: absolute;
232
232
  left: var(--kd-c-anchor-spacing-horizontal, 7px);
233
233
  top: 0;
234
234
  height: 100%;
235
235
  }
236
- .kd-anchor-ink::before {
236
+ .kd-anchor-line::before {
237
237
  position: relative;
238
238
  display: block;
239
- width: var(--kd-c-anchor-ink-line-spacing-width, 1px);
239
+ width: var(--kd-c-anchor-line-slider-spacing-width, 1px);
240
240
  height: 100%;
241
241
  margin: 0 auto;
242
242
  background-color: var(--kd-c-anchor-color-border, var(--kd-g-color-border-strong, #d9d9d9));
243
243
  content: '';
244
244
  }
245
- .kd-anchor-ink-line {
245
+ .kd-anchor-line-slider {
246
246
  position: absolute;
247
247
  display: none;
248
248
  width: 0;
249
249
  height: 16px;
250
- border-right: var(--kd-c-anchor-ink-line-spacing-width, 1px) solid var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
250
+ border-right: var(--kd-c-anchor-line-slider-spacing-width, 1px) solid var(--kd-c-anchor-color-theme, var(--kd-g-color-theme, #5582f3));
251
251
  -webkit-transition: top 0.3s ease-in-out;
252
252
  transition: top 0.3s ease-in-out;
253
253
  }
254
- .kd-anchor-ink-line.visible {
254
+ .kd-anchor-line-slider.visible {
255
255
  display: inline-block;
256
256
  }
257
257
  .kd-anchor-link {
@@ -83,7 +83,7 @@
83
83
  content: '';
84
84
  height: 0;
85
85
  width: 40px;
86
- border-bottom: @anchor-ink-line-width dashed @anchor-disabled-border-color;
86
+ border-bottom: @anchor-line-slider-width dashed @anchor-disabled-border-color;
87
87
  margin: 4px;
88
88
  }
89
89
  }
@@ -123,7 +123,7 @@
123
123
  }
124
124
  }
125
125
 
126
- &-ink {
126
+ &-line {
127
127
  position: absolute;
128
128
  left: @anchor-link-left;
129
129
  top: 0;
@@ -131,19 +131,19 @@
131
131
  &::before {
132
132
  position: relative;
133
133
  display: block;
134
- width: @anchor-ink-line-width;
134
+ width: @anchor-line-slider-width;
135
135
  height: 100%;
136
136
  margin: 0 auto;
137
137
  background-color: @anchor-border-color;
138
138
  content: '';
139
139
  }
140
140
 
141
- &-line {
141
+ &-slider {
142
142
  position: absolute;
143
143
  display: none;
144
144
  width: 0;
145
145
  height: 16px;
146
- border-right: @anchor-ink-line-width solid @anchor-color-theme;
146
+ border-right: @anchor-line-slider-width solid @anchor-color-theme;
147
147
  transition: top 0.3s ease-in-out;
148
148
  &.visible {
149
149
  display: inline-block;
@@ -22,7 +22,7 @@
22
22
  @anchor-link-secondary-padding: var(~'@{anchor-prefix}-secondary-spacing-padding', 12px 8px);
23
23
  @anchor-advanced-padding-top: var(~'@{anchor-prefix}-advanced-spacing-padding-top', 8px);
24
24
  @anchor-advanced-padding-bottom: var(~'@{anchor-prefix}-advanced-spacing-padding-bottom', 7px);
25
- @anchor-ink-line-width: var(~'@{anchor-prefix}-ink-line-spacing-width', 1px);
25
+ @anchor-line-slider-width: var(~'@{anchor-prefix}-line-slider-spacing-width', 1px);
26
26
 
27
27
 
28
28
  // font
@@ -241,6 +241,15 @@
241
241
  .kd-btn-size-small.kd-btn-icon-only {
242
242
  font-size: var(--kd-c-button-icon-font-size-small, 14px);
243
243
  padding: 0 var(--kd-c-button-icon-spacing-padding-horizontal, 4px);
244
+ display: -webkit-inline-box;
245
+ display: -ms-inline-flexbox;
246
+ display: inline-flex;
247
+ -webkit-box-pack: center;
248
+ -ms-flex-pack: center;
249
+ justify-content: center;
250
+ -webkit-box-align: center;
251
+ -ms-flex-align: center;
252
+ align-items: center;
244
253
  }
245
254
  .kd-btn-size-small .kd-btn-group-basic-icon {
246
255
  font-size: var(--kd-c-button-icon-font-size-small, 14px);
@@ -255,6 +264,15 @@
255
264
  .kd-btn-size-middle.kd-btn-icon-only {
256
265
  font-size: var(--kd-c-button-icon-font-size-middle, 16px);
257
266
  padding: 0 var(--kd-c-button-icon-spacing-padding-horizontal, 4px);
267
+ display: -webkit-inline-box;
268
+ display: -ms-inline-flexbox;
269
+ display: inline-flex;
270
+ -webkit-box-pack: center;
271
+ -ms-flex-pack: center;
272
+ justify-content: center;
273
+ -webkit-box-align: center;
274
+ -ms-flex-align: center;
275
+ align-items: center;
258
276
  }
259
277
  .kd-btn-size-middle .kd-btn-group-basic-icon {
260
278
  font-size: var(--kd-c-button-icon-font-size-middle, 16px);
@@ -269,6 +287,15 @@
269
287
  .kd-btn-size-large.kd-btn-icon-only {
270
288
  font-size: var(--kd-c-button-icon-font-size-large, 18px);
271
289
  padding: 0 var(--kd-c-button-icon-spacing-padding-horizontal, 4px);
290
+ display: -webkit-inline-box;
291
+ display: -ms-inline-flexbox;
292
+ display: inline-flex;
293
+ -webkit-box-pack: center;
294
+ -ms-flex-pack: center;
295
+ justify-content: center;
296
+ -webkit-box-align: center;
297
+ -ms-flex-align: center;
298
+ align-items: center;
272
299
  }
273
300
  .kd-btn-size-large .kd-btn-group-basic-icon {
274
301
  font-size: var(--kd-c-button-icon-font-size-large, 18px);
@@ -337,6 +364,15 @@
337
364
  }
338
365
  .kd-btn-loading {
339
366
  cursor: default;
367
+ display: -webkit-inline-box;
368
+ display: -ms-inline-flexbox;
369
+ display: inline-flex;
370
+ -webkit-box-pack: center;
371
+ -ms-flex-pack: center;
372
+ justify-content: center;
373
+ -webkit-box-align: center;
374
+ -ms-flex-align: center;
375
+ align-items: center;
340
376
  }
341
377
  .kd-btn-block {
342
378
  width: 100%;
@@ -114,6 +114,9 @@
114
114
  &.@{btn-prefix-cls}-icon-only {
115
115
  font-size: @btn-icon-small-font-size;
116
116
  padding: 0 @btn-icon-padding-horizontal;
117
+ display: inline-flex;
118
+ justify-content: center;
119
+ align-items: center;
117
120
  }
118
121
 
119
122
  .@{btn-prefix-cls}-group-basic-icon {
@@ -127,6 +130,9 @@
127
130
  &.@{btn-prefix-cls}-icon-only {
128
131
  font-size: @btn-icon-middle-font-size;
129
132
  padding: 0 @btn-icon-padding-horizontal;
133
+ display: inline-flex;
134
+ justify-content: center;
135
+ align-items: center;
130
136
  }
131
137
 
132
138
  .@{btn-prefix-cls}-group-basic-icon {
@@ -140,6 +146,9 @@
140
146
  &.@{btn-prefix-cls}-icon-only {
141
147
  font-size: @btn-icon-large-font-size;
142
148
  padding: 0 @btn-icon-padding-horizontal;
149
+ display: inline-flex;
150
+ justify-content: center;
151
+ align-items: center;
143
152
  }
144
153
 
145
154
  .@{btn-prefix-cls}-group-basic-icon {
@@ -234,6 +243,9 @@
234
243
  // 加载中按钮
235
244
  &-loading {
236
245
  cursor: default;
246
+ display: inline-flex;
247
+ justify-content: center;
248
+ align-items: center;
237
249
  }
238
250
  // 按钮开启块化撑满父元素
239
251
  &-block {
@@ -271,11 +283,11 @@
271
283
  background: @btn-group-trigger-color-background-hover;
272
284
  border-color: @btn-group-trigger-color-background-hover;
273
285
  }
274
-
286
+
275
287
  &:active {
276
288
  background: @btn-group-trigger-color-background-active;
277
289
  }
278
-
290
+
279
291
  &:disabled {
280
292
  background: @btn-group-trigger-color-background-disabled !important;
281
293
  }
@@ -104,6 +104,8 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
104
104
  (0, _isBoolean.default)(checked) && checked !== selected && setSelected(checked);
105
105
  }, [checked, selected]);
106
106
  (0, _react.useEffect)(function () {
107
+ var _a;
108
+
107
109
  var handleRepeatClick = function handleRepeatClick(e) {
108
110
  var element = e.target;
109
111
 
@@ -112,10 +114,12 @@ var InternalCheckbox = function InternalCheckbox(props, ref) {
112
114
  }
113
115
  };
114
116
 
115
- labelRef.current.addEventListener('click', handleRepeatClick);
117
+ (_a = labelRef === null || labelRef === void 0 ? void 0 : labelRef.current) === null || _a === void 0 ? void 0 : _a.addEventListener('click', handleRepeatClick);
116
118
  return function () {
117
- // eslint-disable-next-line react-hooks/exhaustive-deps
118
- labelRef.current.removeEventListener('click', handleRepeatClick);
119
+ var _a; // eslint-disable-next-line react-hooks/exhaustive-deps
120
+
121
+
122
+ (_a = labelRef === null || labelRef === void 0 ? void 0 : labelRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('click', handleRepeatClick);
119
123
  };
120
124
  }, []);
121
125
 
@@ -305,6 +305,7 @@ declare const compDefaultProps: {
305
305
  draggable: boolean;
306
306
  virtual: boolean;
307
307
  switcherIcon: () => JSX.Element;
308
+ estimatedItemSize: number;
308
309
  };
309
310
  TreeNode: {};
310
311
  ToolTip: {
@@ -337,7 +337,8 @@ var compDefaultProps = {
337
337
  return /*#__PURE__*/React.createElement(_index.Icon, {
338
338
  type: "arrow-right-solid"
339
339
  });
340
- }
340
+ },
341
+ estimatedItemSize: 32
341
342
  },
342
343
  TreeNode: {},
343
344
  ToolTip: {