@kdcloudjs/kdesign 1.5.4 → 1.5.7

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 (73) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/default-theme.js +4 -4
  3. package/dist/kdesign-complete.less +159 -85
  4. package/dist/kdesign.css +153 -83
  5. package/dist/kdesign.css.map +1 -1
  6. package/dist/kdesign.js +220 -151
  7. package/dist/kdesign.js.map +1 -1
  8. package/dist/kdesign.min.css +3 -3
  9. package/dist/kdesign.min.js +6 -6
  10. package/dist/kdesign.min.js.map +1 -1
  11. package/es/_utils/usePopper.js +17 -8
  12. package/es/alert/alert.js +2 -2
  13. package/es/alert/style/index.css +27 -11
  14. package/es/alert/style/index.less +24 -10
  15. package/es/alert/style/mixin.less +8 -2
  16. package/es/alert/style/token.less +16 -8
  17. package/es/config-provider/compDefaultProps.d.ts +1 -0
  18. package/es/config-provider/compDefaultProps.js +2 -1
  19. package/es/dropdown/style/index.css +13 -14
  20. package/es/dropdown/style/index.less +4 -5
  21. package/es/dropdown/style/token.less +6 -5
  22. package/es/radio/style/index.css +6 -0
  23. package/es/radio/style/index.less +8 -0
  24. package/es/search/style/index.css +3 -3
  25. package/es/spin/style/index.css +25 -26
  26. package/es/spin/style/index.less +18 -19
  27. package/es/spin/style/token.less +9 -3
  28. package/es/style/themes/default.less +3 -4
  29. package/es/timeline/style/index.css +22 -21
  30. package/es/timeline/style/index.less +2 -2
  31. package/es/timeline/style/token.less +4 -7
  32. package/es/tree/style/index.css +56 -7
  33. package/es/tree/style/index.less +26 -18
  34. package/es/tree/style/mixin.less +25 -1
  35. package/es/tree/style/token.less +6 -4
  36. package/es/tree/tree.d.ts +2 -0
  37. package/es/tree/tree.js +65 -11
  38. package/es/tree/treeHooks.js +0 -1
  39. package/es/tree/treeNode.d.ts +1 -0
  40. package/es/tree/treeNode.js +45 -49
  41. package/es/tree/utils/treeUtils.js +2 -2
  42. package/lib/_utils/usePopper.js +17 -8
  43. package/lib/alert/alert.js +2 -2
  44. package/lib/alert/style/index.css +27 -11
  45. package/lib/alert/style/index.less +24 -10
  46. package/lib/alert/style/mixin.less +8 -2
  47. package/lib/alert/style/token.less +16 -8
  48. package/lib/config-provider/compDefaultProps.d.ts +1 -0
  49. package/lib/config-provider/compDefaultProps.js +2 -1
  50. package/lib/dropdown/style/index.css +13 -14
  51. package/lib/dropdown/style/index.less +4 -5
  52. package/lib/dropdown/style/token.less +6 -5
  53. package/lib/radio/style/index.css +6 -0
  54. package/lib/radio/style/index.less +8 -0
  55. package/lib/search/style/index.css +3 -3
  56. package/lib/spin/style/index.css +25 -26
  57. package/lib/spin/style/index.less +18 -19
  58. package/lib/spin/style/token.less +9 -3
  59. package/lib/style/themes/default.less +3 -4
  60. package/lib/timeline/style/index.css +22 -21
  61. package/lib/timeline/style/index.less +2 -2
  62. package/lib/timeline/style/token.less +4 -7
  63. package/lib/tree/style/index.css +56 -7
  64. package/lib/tree/style/index.less +26 -18
  65. package/lib/tree/style/mixin.less +25 -1
  66. package/lib/tree/style/token.less +6 -4
  67. package/lib/tree/tree.d.ts +2 -0
  68. package/lib/tree/tree.js +67 -11
  69. package/lib/tree/treeHooks.js +0 -1
  70. package/lib/tree/treeNode.d.ts +1 -0
  71. package/lib/tree/treeNode.js +46 -48
  72. package/lib/tree/utils/treeUtils.js +2 -2
  73. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,64 @@
1
+ ## [1.5.5](https://github.com/kdcloudone/kdesign/compare/v1.5.4...v1.5.5) (2022-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [dropdown]修复设置defaultVisible后下拉菜单无法关闭的问题 ([0641a0f](https://github.com/kdcloudone/kdesign/commit/0641a0fb7d75dd00426be3bd69a6ffc6e664ef3a))
7
+ * [radio] BT-00876996 修复disabled状态下的鼠标悬浮手势 ([912a8ff](https://github.com/kdcloudone/kdesign/commit/912a8ff19cb00f9b29f5e97c560b9c004d9a32dd))
8
+ * [spin] 修复视觉走查问题点 ([4577e31](https://github.com/kdcloudone/kdesign/commit/4577e31786f45ddb2b4274d1ec21456442c35ca1))
9
+ * [timeline] 修复视觉走查问题点 ([5ad075b](https://github.com/kdcloudone/kdesign/commit/5ad075bdccf6145e490005f7723670adba4138a8))
10
+
11
+
12
+ ### Features
13
+
14
+ * [alert] 修复视觉走查问题点 ([ca149c3](https://github.com/kdcloudone/kdesign/commit/ca149c3012c8b0a6be23a0a92d87d907028d8839))
15
+ * [dropdown] 修复视觉走查问题点 ([72623bf](https://github.com/kdcloudone/kdesign/commit/72623bf11e408e0e476d795efd4e0571b2a7255f))
16
+ * [tree] 新增缩进模式配置 ([63d37a9](https://github.com/kdcloudone/kdesign/commit/63d37a9decf8a1dd417bdf2ad5eb68902204738d))
17
+ * [tree] 增加异步加载功能 ([ff7111a](https://github.com/kdcloudone/kdesign/commit/ff7111ab51de812371dd2e657ff71cdb185a0275))
18
+
19
+
20
+
21
+ ## [1.5.4](https://github.com/kdcloudone/kdesign/compare/v1.5.3...v1.5.4) (2022-08-04)
22
+
23
+
24
+ ### Bug Fixes
25
+
26
+ * [cli] 更改统一导航菜单 ([505bbde](https://github.com/kdcloudone/kdesign/commit/505bbdea8cdfa1b9a793398d96af0cb42d19f087))
27
+ * [cli] 更新footer的图片 ([1850985](https://github.com/kdcloudone/kdesign/commit/18509858492013208c1f4eff36db71bf8d4721a4))
28
+ * [drawer] 修复纵向抽屉无法设置高度问题 ([dd3b9e1](https://github.com/kdcloudone/kdesign/commit/dd3b9e1b1696904d6b75f796fc9719b862a98f8e))
29
+ * [Dropdown]dropdown组件item里面包含标签时点击无响应的bug ([d9368eb](https://github.com/kdcloudone/kdesign/commit/d9368ebda7e1e7a67b3b4b80d287183f7329cf24))
30
+ * [Filter]修复Filter组件demo展示问题 ([9e1e807](https://github.com/kdcloudone/kdesign/commit/9e1e807243098f73eab16543a4f63286ca49853c))
31
+ * [radio] 修复单选组合禁用状态样式问题 ([41782c2](https://github.com/kdcloudone/kdesign/commit/41782c28ef61ad2e9b13625e02513b86c1dbb34a))
32
+ * [select] 解决allowClear模式下 value为0时清空按钮被渲染为0的问题 ([4a383f4](https://github.com/kdcloudone/kdesign/commit/4a383f46155f4b9051a891f910cf85506ace4fa3))
33
+ * [stepper] 修复步进器禁用状态无效问题 ([7d9cc6b](https://github.com/kdcloudone/kdesign/commit/7d9cc6bed19ba400d4b9f49c29231566e519de8d))
34
+ * [tabs] 修复页签border宽度问题 ([a005a7b](https://github.com/kdcloudone/kdesign/commit/a005a7b20a62fa4c604e55ccd6e9280cb86a13e8))
35
+ * [Tooltip]组件-子组件的ref获取不到bug ([81b69f4](https://github.com/kdcloudone/kdesign/commit/81b69f4214e2e0d8e461bcb0a3eca0124b375fcd))
36
+ * [tree] 调整demo展开收起图标 ([4e87537](https://github.com/kdcloudone/kdesign/commit/4e87537ce8059217327d636393308ee0f07095fb))
37
+ * [tree] 增加节点过滤功能api ([c88575a](https://github.com/kdcloudone/kdesign/commit/c88575a8020183fb5ba3aa4d03f894e0462e663e))
38
+
39
+
40
+ ### Features
41
+
42
+ * [Dropdown]子元素的ref获取不到的bug ([b8bdabd](https://github.com/kdcloudone/kdesign/commit/b8bdabdc38b3ec66fd010e4c9d5dcc288a9a2a26))
43
+ * [icon] 新增展开收起图标 ([0915da7](https://github.com/kdcloudone/kdesign/commit/0915da77c5eb782f125e6cef9a72cd578cb79996))
44
+
45
+
46
+ ### Performance Improvements
47
+
48
+ * [tree] 去除重复遍历计算树结构数据的层级 ([14c3f20](https://github.com/kdcloudone/kdesign/commit/14c3f209face4a8f2ffdf761e671a11237e25ec6))
49
+ * [tree] 优化大数据虚模式下的节点过滤 ([874f1b0](https://github.com/kdcloudone/kdesign/commit/874f1b07bde6b6b3ccd2b1d2d904fdee63011b48))
50
+
51
+
52
+
53
+ ## [1.5.3](https://github.com/kdcloudone/kdesign/compare/v1.5.2...v1.5.3) (2022-07-29)
54
+
55
+
56
+ ### Bug Fixes
57
+
58
+ * [input]修复禁用状态下样式问题 ([3ff40ea](https://github.com/kdcloudone/kdesign/commit/3ff40ea0f9f250b3470c8668f177269f0220285b))
59
+
60
+
61
+
1
62
  ## [1.5.2](https://github.com/kdcloudone/kdesign/compare/v1.5.1...v1.5.2) (2022-07-28)
2
63
 
3
64
 
@@ -49,15 +49,14 @@ module.exports = {
49
49
  "bg2": "#f2f2f2",
50
50
  "bg3": "rgba(255, 255, 255, 0.65)",
51
51
  "contain-bg": "#fafafa",
52
- "radius-size": "2px",
53
52
  "input-color": "#999",
54
53
  "strong-border-color": "#d9d9d9",
55
54
  "strong-border-color-1": "#d9d9d9",
56
55
  "strong-border-color-2": "rgba(217, 217, 217, 0.65)",
57
56
  "weak-border-color": "#e5e5e5",
58
- "logo-color-1": "#2386ee",
59
- "logo-color-2": "#00ccfe",
60
- "logo-color-3": "#05c8c8",
57
+ "logo-color-1": "#2486ee",
58
+ "logo-color-2": "#02ccfe",
59
+ "logo-color-3": "#05c8c7",
61
60
  "logo-color-4": "#a06eff",
62
61
  "white": "#fff",
63
62
  "ease-out": "cubic-bezier(0,.4,.4,1)",
@@ -73,6 +72,7 @@ module.exports = {
73
72
  "large-font-size": "16px",
74
73
  "xlarge-font-size": "18px",
75
74
  "xxlarge-font-size": "20px",
75
+ "radius-size": "2px",
76
76
  "zIndex-below": "-1",
77
77
  "zIndex-popper": "1050",
78
78
  "zIndex-dialog": "1050",
@@ -16,11 +16,18 @@
16
16
  @info: @alert-info-bg-color;
17
17
  }
18
18
 
19
- .alert-font-type-set() {
20
- @success: @alert-success-font-color;
21
- @warning: @alert-warning-font-color;
22
- @error: @alert-error-font-color;
23
- @info: @alert-info-font-color;
19
+ .alert-icon-type-set() {
20
+ @success: @alert-success-icon-color;
21
+ @warning: @alert-warning-icon-color;
22
+ @error: @alert-error-icon-color;
23
+ @info: @alert-info-icon-color;
24
+ }
25
+
26
+ .alert-border-type-set() {
27
+ @success: @alert-success-border-color;
28
+ @warning: @alert-warning-border-color;
29
+ @error: @alert-error-border-color;
30
+ @info: @alert-info-border-color;
24
31
  }
25
32
 
26
33
  @alert-transition-fn: cubic-bezier(0.32, 0.94, 0.6, 1);
@@ -36,9 +43,11 @@
36
43
  z-index: @z-index-apex;
37
44
  display: none;
38
45
  width: 100%;
39
- padding: @alert-padding-top @alert-padding-horizontal @alert-padding-bottom;
46
+ padding: @alert-padding-vertical @alert-padding-horizontal;
40
47
  align-items: center;
41
48
  transition: display 3s;
49
+ border-radius: @alert-radius-border;
50
+ border: 1px solid;
42
51
  }
43
52
  &-banner-container {
44
53
  display: flex;
@@ -50,19 +59,24 @@
50
59
  each(.alert-bg-type-set(), {
51
60
  .alert-bg-type(@key, @value);
52
61
  });
53
- each(.alert-font-type-set(), {
54
- .alert-font-type(@key, @value);
62
+ each(.alert-border-type-set(), {
63
+ .alert-border-type(@key, @value);
55
64
  });
56
65
  &-icon {
57
66
  display: flex;
58
67
  cursor: default;
59
68
  .icon-center();
69
+ height: @alert-message-icon-font-size;
60
70
  margin-right: @alert-message-icon-margin-right;
61
71
  font-size: @alert-message-icon-font-size;
72
+ each(.alert-icon-type-set(), {
73
+ .alert-icon-type(@key, @value);
74
+ });
62
75
  }
63
76
  &-message {
77
+ color: @alert-message-color-text;
64
78
  font-size: @alert-message-font-size;
65
- line-height: 18px;
79
+ line-height: 16px;
66
80
  display: flex;
67
81
  flex-grow: 1;
68
82
  cursor: default;
@@ -86,10 +100,10 @@
86
100
  }
87
101
  &-close-icon {
88
102
  display: flex;
103
+ height: @alert-message-icon-font-size;
89
104
  margin-left: @alert-close-icon-margin-left;
90
105
  color: @alert-close-icon-color;
91
106
  font-size: @alert-close-icon-font-size;
92
- justify-self: flex-end;
93
107
  cursor: pointer;
94
108
  &:hover {
95
109
  color: @alert-close-icon-color-hover;
@@ -122,12 +136,18 @@
122
136
  }
123
137
  }
124
138
 
125
- .alert-font-type(@type, @color) {
126
- &.alert-@{type}-font-color {
139
+ .alert-icon-type(@type, @color) {
140
+ &.alert-@{type}-icon-color {
127
141
  color: @color
128
142
  }
129
143
  }
130
144
 
145
+ .alert-border-type(@type, @color) {
146
+ &.alert-@{type}-border-color {
147
+ border-color: @color
148
+ }
149
+ }
150
+
131
151
  .square(@side-length) {
132
152
  width: @side-length;
133
153
  height: @side-length;
@@ -142,10 +162,16 @@
142
162
  @alert-error-bg-color: var(~'@{alert-custom-prefix}-color-background-error', @color-background-error); // 反馈浮层错误提示的背景色
143
163
  @alert-info-bg-color: var(~'@{alert-custom-prefix}-color-background-info', @color-background-ongoing); // 反馈浮层一般提示的背景色
144
164
 
145
- @alert-success-font-color: var(~'@{alert-custom-prefix}-color-text-success', @color-success); // 反馈浮层成功提示的文字色
146
- @alert-warning-font-color: var(~'@{alert-custom-prefix}-color-text-warning', @color-warning); // 反馈浮层警告提示的文字色
147
- @alert-error-font-color: var(~'@{alert-custom-prefix}-color-text-error', @color-error); // 反馈浮层错误提示的文字色
148
- @alert-info-font-color: var(~'@{alert-custom-prefix}-color-text-info', @color-ongoing); // 反馈浮层一般提示的文字色
165
+ @alert-message-color-text: var(~'@{alert-custom-prefix}-color-text', @color-text-primary); // 反馈浮层提示的文字色
166
+ @alert-success-icon-color: var(~'@{alert-custom-prefix}-color-icon-success', @color-success); // 反馈浮层成功提示的图标颜色
167
+ @alert-warning-icon-color: var(~'@{alert-custom-prefix}-color-icon-warning', @color-warning); // 反馈浮层警告提示的图标颜色
168
+ @alert-error-icon-color: var(~'@{alert-custom-prefix}-color-icon-error', @color-error); // 反馈浮层错误提示的图标颜色
169
+ @alert-info-icon-color: var(~'@{alert-custom-prefix}-color-icon-info', @color-ongoing); // 反馈浮层一般提示的图标颜色
170
+
171
+ @alert-success-border-color: var(~'@{alert-custom-prefix}-color-border-success', #DCFAE4); // 反馈浮层成功提示的边框色
172
+ @alert-warning-border-color: var(~'@{alert-custom-prefix}-color-border-warning', #FFF1D4); // 反馈浮层警告提示的边框色
173
+ @alert-error-border-color: var(~'@{alert-custom-prefix}-color-border-error', #FFDBE0); // 反馈浮层错误提示的边框色
174
+ @alert-info-border-color: var(~'@{alert-custom-prefix}-color-border-info', #E0EFFF); // 反馈浮层一般提示的边框色
149
175
 
150
176
  @alert-close-icon-color: var(~'@{alert-custom-prefix}-close-icon-color-text', @color-text-secondary);
151
177
  @alert-close-icon-color-hover: var(~'@{alert-custom-prefix}-close-icon-color-text-hover', @color-theme-hover);
@@ -156,12 +182,14 @@
156
182
  @alert-close-icon-font-size: var(~'@{alert-custom-prefix}-close-icon-font-size', @font-size-middle);
157
183
 
158
184
  // spacing
159
- @alert-padding-top: var(~'@{alert-custom-prefix}-sizing-padding-top', 8px);
160
- @alert-padding-bottom: var(~'@{alert-custom-prefix}-sizing-padding-bottom', 12px);
161
- @alert-padding-horizontal: var(~'@{alert-custom-prefix}-sizing-padding-horizontal', 12px);
185
+ @alert-padding-vertical: var(~'@{alert-custom-prefix}-sizing-padding-vertical', 12px);
186
+ @alert-padding-horizontal: var(~'@{alert-custom-prefix}-sizing-padding-horizontal', 20px);
162
187
  @alert-message-icon-margin-right: var(~'@{alert-custom-prefix}-message-icon-sizing-margin-right', 8px);
163
188
  @alert-close-icon-margin-left: var(~'@{alert-custom-prefix}-close-icon-sizing-margin-left', 8px);
164
189
 
190
+ // radius
191
+ @alert-radius-border: var(~'@{alert-custom-prefix}-radius-border', 4px);
192
+
165
193
 
166
194
  @anchor-prefix-cls: ~'@{kd-prefix}-anchor';
167
195
 
@@ -3808,7 +3836,7 @@
3808
3836
  opacity: 1;
3809
3837
  visibility: visible;
3810
3838
  z-index: @z-index-popper;
3811
- background-color: @color-background;
3839
+ background-color: @dropdown-color-background;
3812
3840
  border-radius: @radius-border;
3813
3841
  min-width: @dropdown-menu-min-width;
3814
3842
  max-width: @dropdown-menu-max-width;
@@ -3820,7 +3848,7 @@
3820
3848
  }
3821
3849
 
3822
3850
  // 箭头样式
3823
- .popperArrow(@color-background, @dropdown-item-horizontal-gap, @dropdown-box-shadow-blur);
3851
+ .popperArrow(@dropdown-color-background, @dropdown-item-horizontal-gap, @dropdown-box-shadow-blur);
3824
3852
 
3825
3853
  &-menu {
3826
3854
  max-height: @dropdown-menu-max-height;
@@ -3851,11 +3879,10 @@
3851
3879
 
3852
3880
  &:not(.disabled):active,
3853
3881
  &:not(.disabled).selected {
3854
- color: @color-theme;
3855
- background-color: @dropdown-item-active-bg-color;
3882
+ color: @dropdown-item-active-color;
3856
3883
 
3857
3884
  > a {
3858
- color: @color-theme;
3885
+ color: @dropdown-item-active-color;
3859
3886
  }
3860
3887
  }
3861
3888
 
@@ -3907,22 +3934,23 @@
3907
3934
 
3908
3935
  // color
3909
3936
  @dropdown-item-hover-bg-color: var(~'@{dropdown-custom-prefix}-item-color-background-hover', @color-hover);
3910
- @dropdown-item-active-bg-color: var(~'@{dropdown-custom-prefix}-item-color-background-active', @color-theme-light-active);
3937
+ @dropdown-item-active-color: var(~'@{dropdown-custom-prefix}-item-color-text-active', @color-theme);
3911
3938
  @dropdown-item-color-disabled: var(~'@{dropdown-custom-prefix}-item-color-text-disabled', @color-disabled);
3912
3939
  @dropdown-item-color-text-danger: var(~'@{dropdown-custom-prefix}-item-color-text-danger', @color-error);
3913
3940
  @dropdown-item-color-background-danger-hover: var(~'@{dropdown-custom-prefix}-item-color-background-danger-hover', @color-error);
3914
3941
  @dropdown-item-hover-color-text: var(~'@{dropdown-custom-prefix}-item-color-text-hover', @color-text-primary);
3915
3942
  @dropdown-divided-color-bg: var(~'@{dropdown-custom-prefix}-divided-color-background', @color-border-weak);
3916
3943
  @dropdown-color: var(~'@{dropdown-custom-prefix}-menu-item-color-text', @color-text-primary);
3944
+ @dropdown-color-background: var(~'@{dropdown-custom-prefix}-menu-color-background', @color-background);
3917
3945
 
3918
3946
  // sizing
3919
- @dropdown-menu-min-width: var(~'@{dropdown-custom-prefix}-menu-sizing-min-width', 136px);
3920
- @dropdown-menu-max-width: var(~'@{dropdown-custom-prefix}-menu-sizing-max-width', 320px);
3921
- @dropdown-menu-max-height: var(~'@{dropdown-custom-prefix}-menu-sizing-max-height', 336px);
3947
+ @dropdown-menu-min-width: var(~'@{dropdown-custom-prefix}-menu-sizing-min-width', 64px);
3948
+ @dropdown-menu-max-width: var(~'@{dropdown-custom-prefix}-menu-sizing-max-width', 600px);
3949
+ @dropdown-menu-max-height: var(~'@{dropdown-custom-prefix}-menu-sizing-max-height', 328px);
3922
3950
  @dropdown-divided-height: var(~'@{dropdown-custom-prefix}-divided-sizing-height', 1px);
3923
3951
 
3924
3952
  // spacing
3925
- @dropdown-menu-padding-vertical: var(~'@{dropdown-custom-prefix}-menu-spacing-padding-vertical', 8px);
3953
+ @dropdown-menu-padding-vertical: var(~'@{dropdown-custom-prefix}-menu-spacing-padding-vertical', 4px);
3926
3954
  @dropdown-item-vertical-gap: var(~'@{dropdown-custom-prefix}-item-spacing-padding-vertical', 7px);
3927
3955
  @dropdown-item-horizontal-gap: var(~'@{dropdown-custom-prefix}-item-spacing-padding-horizontal', 12px);
3928
3956
 
@@ -7833,6 +7861,10 @@ textarea {
7833
7861
  opacity: 0;
7834
7862
  width: 100%;
7835
7863
  height: 100%;
7864
+
7865
+ &[disabled] {
7866
+ cursor: not-allowed;
7867
+ }
7836
7868
  }
7837
7869
 
7838
7870
  // 悬停状态
@@ -7943,6 +7975,10 @@ textarea {
7943
7975
  z-index: 1;
7944
7976
  cursor: pointer;
7945
7977
  opacity: 0;
7978
+
7979
+ &[disabled]{
7980
+ cursor: not-allowed;
7981
+ }
7946
7982
  }
7947
7983
 
7948
7984
  // 悬停状态
@@ -9545,9 +9581,9 @@ textarea {
9545
9581
  // right: 0;
9546
9582
 
9547
9583
  .@{spin-prefix-cls}-dot-spin {
9548
- width: 50px;
9549
- height: 50px;
9550
- padding: 5px;
9584
+ width: @spin-page-dot-spin-sizing;
9585
+ height: @spin-page-dot-spin-sizing;
9586
+ padding: @spin-page-dot-spin-spacing-padding;
9551
9587
  // background: @logo-color-1;
9552
9588
  box-sizing: border-box;
9553
9589
  display: flex;
@@ -9557,10 +9593,9 @@ textarea {
9557
9593
  }
9558
9594
 
9559
9595
  .@{spin-prefix-cls}-dot-item {
9560
- .dot(@spin-page-size, @spin-dot-color-first);
9596
+ .dot(@spin-page-dot-item-sizing, @spin-dot-color-first);
9561
9597
 
9562
9598
  &:nth-child(2n+1) {
9563
- margin-right: 10px;
9564
9599
  animation: pageLoading 1s .3s ease-in-out infinite
9565
9600
  }
9566
9601
 
@@ -9581,7 +9616,7 @@ textarea {
9581
9616
 
9582
9617
  @keyframes pageLoading {
9583
9618
  50% {
9584
- transform: scale(1.3);
9619
+ transform: scale(1.25);
9585
9620
  }
9586
9621
  100% {
9587
9622
  transform: scale(1);
@@ -9605,22 +9640,22 @@ textarea {
9605
9640
  &:nth-child(2n+1) {
9606
9641
  animation: containerLoading 1s .6s ease-in-out infinite
9607
9642
  }
9608
-
9643
+
9609
9644
  &:nth-child(2n+2) {
9610
9645
  background-color: @spin-dot-color-second;
9611
9646
  animation: containerLoading 1s .45s ease-in-out infinite
9612
9647
  }
9613
-
9648
+
9614
9649
  &:nth-child(2n+3) {
9615
9650
  background-color: @spin-dot-color-third;
9616
9651
  animation: containerLoading 1s .3s ease-in-out infinite
9617
9652
  }
9618
-
9653
+
9619
9654
  &:nth-child(2n+4) {
9620
9655
  background-color: @spin-dot-color-fourth;
9621
9656
  animation: containerLoading 1s .15s ease-in-out infinite
9622
9657
  }
9623
-
9658
+
9624
9659
  @keyframes containerLoading {
9625
9660
  50% {
9626
9661
  transform: translateY(-10px);
@@ -9636,24 +9671,24 @@ textarea {
9636
9671
  // 组件加载动画
9637
9672
  &-component {
9638
9673
  .@{spin-prefix-cls}-dot-spin {
9639
- width: 13px;
9640
- height: 13px;
9641
- border: 1px solid @spin-component-dot-color-border;
9674
+ width: @spin-component-spin-size;
9675
+ height: @spin-component-spin-size;
9676
+ border: @spin-component-spin-border solid @spin-component-dot-color-border;
9642
9677
  border-radius: 50%;
9643
9678
  position: relative;
9644
9679
  box-sizing: border-box;
9645
9680
 
9646
9681
  .@{spin-prefix-cls}-dot-item {
9647
- width: 13px;
9648
- height: 13px;
9682
+ width: @spin-component-spin-size;
9683
+ height: @spin-component-spin-size;
9649
9684
  box-sizing: border-box;
9650
- border: 1px solid transparent;
9685
+ border: @spin-component-spin-border solid transparent;
9651
9686
  // border-top-color: #5582f3;
9652
9687
  border-right-color: @spin-component-dot-item-color-border;
9653
9688
  border-radius: 50%;
9654
9689
  position: absolute;
9655
- top: -1px;
9656
- left: -1px;
9690
+ top: calc(-1 * @spin-component-spin-border);
9691
+ left: calc(-1 * @spin-component-spin-border);
9657
9692
  transform: rotate(-45deg);
9658
9693
  animation: componentRotate 1s linear infinite;
9659
9694
 
@@ -9697,6 +9732,7 @@ textarea {
9697
9732
  }
9698
9733
 
9699
9734
 
9735
+
9700
9736
  // code component mixin here
9701
9737
  .dot(@size, @color) {
9702
9738
  width: @size;
@@ -9714,12 +9750,19 @@ textarea {
9714
9750
  @spin-dot-color-second: var(~'@{spin-custom-prefix}-dot-color-backgroung-second', @color-logo-2);
9715
9751
  @spin-dot-color-third: var(~'@{spin-custom-prefix}-dot-color-backgroung-third', @color-logo-3);
9716
9752
  @spin-dot-color-fourth: var(~'@{spin-custom-prefix}-dot-color-backgroung-fourth', @color-logo-4);
9717
- @spin-component-dot-color-border: var(~'@{spin-custom-prefix}-component-dot-color-border', #e1e1e1);
9753
+ @spin-component-dot-color-border: var(~'@{spin-custom-prefix}-component-dot-color-border', #ebebeb);
9718
9754
  @spin-component-dot-item-color-border: var(~'@{spin-custom-prefix}-component-dot-item-color-border', @color-theme);
9719
9755
 
9720
9756
  // sizing
9721
- @spin-page-size: var(~'@{spin-custom-prefix}-page-sizing', 15px);
9722
- @spin-container-size: var(~'@{spin-custom-prefix}-dot-container-sizing', 5px);
9757
+ @spin-page-dot-item-sizing: var(~'@{spin-custom-prefix}-page-dot-item-sizing-square', 16px);
9758
+ @spin-page-dot-spin-sizing: var(~'@{spin-custom-prefix}-page-dot-spin-sizing-square', 48px);
9759
+ @spin-container-size: var(~'@{spin-custom-prefix}-dot-container-sizing-square', 5px);
9760
+ @spin-component-spin-size: var(~'@{spin-custom-prefix}-dot-component-sizing-square', 24px);
9761
+ @spin-component-spin-border: var(~'@{spin-custom-prefix}-dot-component-sizing-border', 2px);
9762
+
9763
+ // spacing
9764
+ @spin-page-dot-spin-spacing-padding: var(~'@{spin-custom-prefix}-page-dot-spin-spacing-padding', 4px);
9765
+
9723
9766
 
9724
9767
 
9725
9768
 
@@ -11308,15 +11351,14 @@ template {
11308
11351
  @bg2: #f2f2f2; // 底色灰背景
11309
11352
  @bg3: rgba(255, 255, 255, 0.65); // 次级底色背景
11310
11353
  @contain-bg: #fafafa; // 容器内的灰背景
11311
- @radius-size: 2px; // 圆角值
11312
11354
  @input-color: #999; // 线型录入的默认态
11313
11355
  @strong-border-color: #d9d9d9; // 强线条 --带操作
11314
11356
  @strong-border-color-1: #d9d9d9; // 强线条 --分割内容/容器包裹线
11315
11357
  @strong-border-color-2: rgba(217, 217, 217, 0.65); // 次级边框
11316
11358
  @weak-border-color: #e5e5e5; // 弱线条 -- 需要多层级时
11317
- @logo-color-1: #2386ee;
11318
- @logo-color-2: #00ccfe;
11319
- @logo-color-3: #05c8c8;
11359
+ @logo-color-1: #2486ee;
11360
+ @logo-color-2: #02ccfe;
11361
+ @logo-color-3: #05c8c7;
11320
11362
  @logo-color-4: #a06eff;
11321
11363
  // @shadow-on-hover: ; // 悬停时阴影
11322
11364
  @white: #fff;
@@ -12934,7 +12976,7 @@ template {
12934
12976
  .@{timeline-prefix-cls} {
12935
12977
  .reset-component;
12936
12978
  margin: 0;
12937
- padding: 0;
12979
+ padding: 0 4px;
12938
12980
  overflow: hidden;
12939
12981
  list-style: none;
12940
12982
 
@@ -13073,7 +13115,7 @@ template {
13073
13115
  margin-right:calc(-1 * (@timeline-dot-size - 1px) / 2) ;
13074
13116
 
13075
13117
  &.custom {
13076
- margin-right: 1px;
13118
+ margin-right: -18px;
13077
13119
  }
13078
13120
  }
13079
13121
  .@{timeline-item-prefix-cls}-content {
@@ -13189,12 +13231,10 @@ template {
13189
13231
 
13190
13232
 
13191
13233
  @timeline-prefix: '--@{kd-prefix}-c-timeline';
13192
- @timeline-gap: 8px;
13193
-
13194
- // @timeline-dot-size: var(~'@{timeline-prefix}-dot-sizing',9px);
13195
- @timeline-dot-size: 9px;
13196
-
13234
+ @timeline-gap: 8px;
13197
13235
 
13236
+ @timeline-dot-size: var(~'@{timeline-prefix}-dot-sizing',9px);
13237
+ // @timeline-dot-size: 9px;
13198
13238
 
13199
13239
  // color
13200
13240
  @timeline-finished-color: var(~'@{timeline-prefix}-finished-color',@color-theme);
@@ -13205,7 +13245,6 @@ template {
13205
13245
  @timeline-label-color-text: var(~'@{timeline-prefix}-label-color-text',#666666);
13206
13246
  @timeline-content-color-text: var(~'@{timeline-prefix}-content-color-text',@color-text-primary);
13207
13247
 
13208
-
13209
13248
  // font
13210
13249
  @timeline-content-font-size-small: var(~'@{timeline-prefix}-content-font-size',@font-size-small);
13211
13250
 
@@ -13214,7 +13253,7 @@ template {
13214
13253
  @timeline-width: var(~'@{timeline-prefix}-sizing-width',1px);
13215
13254
 
13216
13255
  // spacing
13217
- @timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',26px);
13256
+ @timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',24px);
13218
13257
 
13219
13258
 
13220
13259
 
@@ -13529,6 +13568,17 @@ template {
13529
13568
  display: flex;
13530
13569
  justify-content: flex-start;
13531
13570
  align-items: center;
13571
+
13572
+ .@{kd-prefix}-spin-dot-spin {
13573
+ border: none;
13574
+ width: @tree-expand-icon-loading-width;
13575
+ height: @tree-expand-icon-loading-height;
13576
+
13577
+ .@{kd-prefix}-spin-dot-item {
13578
+ width: @tree-expand-icon-loading-width;
13579
+ height: @tree-expand-icon-loading-height;
13580
+ }
13581
+ }
13532
13582
  }
13533
13583
  &-fb-children-pointerEvents * {
13534
13584
  pointer-events: none;
@@ -13536,13 +13586,8 @@ template {
13536
13586
  &-item {
13537
13587
  display: flex;
13538
13588
  align-items: center;
13539
- }
13540
- &-item-hover {
13541
- transition: background-color @tree-transition-duration, color @tree-transition-duration;
13542
- }
13543
- &-item-hover:hover {
13544
- background-color: @tree-node-hover-bg-color;
13545
- cursor: pointer;
13589
+
13590
+ .node-hover()
13546
13591
  }
13547
13592
 
13548
13593
  &-indent {
@@ -13571,6 +13616,11 @@ template {
13571
13616
  align-items: center;
13572
13617
  font-size: @tree-node-icon-size;
13573
13618
  color: @tree-node-icon-color-text;
13619
+
13620
+ &-hover:hover {
13621
+ background-color: @tree-node-hover-bg-color;
13622
+ cursor: pointer;
13623
+ }
13574
13624
  }
13575
13625
  &-icon-hidden {
13576
13626
  height: @tree-node-icon-height;
@@ -13600,22 +13650,19 @@ template {
13600
13650
  display: flex;
13601
13651
  align-items: center;
13602
13652
  height: 100%;
13653
+ padding-left: 4px;
13654
+
13655
+ .node-hover();
13656
+
13657
+ &-selected {
13658
+ .node-selected()
13659
+ }
13603
13660
  }
13604
13661
  &-title {
13605
13662
  white-space: nowrap;
13606
- margin-left: 6px;
13607
13663
  }
13608
13664
  &-selected {
13609
- background-color: @tree-node-checked-bg-color !important;
13610
- color: @tree-node-checked-text-color;
13611
-
13612
- .@{tree-node-prefix-cls}-title {
13613
- color: @tree-node-checked-text-color;
13614
- }
13615
-
13616
- .@{tree-node-prefix-cls}-icon {
13617
- color: @tree-node-checked-text-color;
13618
- }
13665
+ .node-selected()
13619
13666
  }
13620
13667
 
13621
13668
  &-draggabled {
@@ -13661,6 +13708,31 @@ template {
13661
13708
 
13662
13709
 
13663
13710
 
13711
+ .node-hover {
13712
+ &-hover {
13713
+ transition: background-color @tree-transition-duration, color @tree-transition-duration;
13714
+
13715
+ &:hover {
13716
+ background-color: @tree-node-hover-bg-color;
13717
+ cursor: pointer;
13718
+ }
13719
+ }
13720
+ }
13721
+
13722
+ .node-selected {
13723
+ background-color: @tree-node-checked-bg-color !important;
13724
+ color: @tree-node-checked-text-color;
13725
+
13726
+ .@{tree-node-prefix-cls}-title {
13727
+ color: @tree-node-checked-text-color;
13728
+ }
13729
+
13730
+ .@{tree-node-prefix-cls}-icon {
13731
+ color: @tree-node-checked-text-color;
13732
+ }
13733
+ }
13734
+
13735
+
13664
13736
 
13665
13737
  @tree-prefix: '--@{kd-prefix}-c-tree';
13666
13738
 
@@ -13678,10 +13750,12 @@ template {
13678
13750
  @tree-node-drag-line-border-color: var(~'@{tree-prefix}-node-drag-line-color-background', #276FF5);
13679
13751
 
13680
13752
  // sizing
13681
- @tree-expand-icon-height: var(~'@{tree-prefix}-expand-icon-sizing-height', 22px);
13682
- @tree-expand-icon-width: var(~'@{tree-prefix}-expand-icon-sizing-width', 22px);
13683
- @tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 20px);
13684
- @tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 20px);
13753
+ @tree-expand-icon-height: var(~'@{tree-prefix}-expand-icon-sizing-height', 16px);
13754
+ @tree-expand-icon-width: var(~'@{tree-prefix}-expand-icon-sizing-width', 16px);
13755
+ @tree-expand-icon-loading-height: var(~'@{tree-prefix}-expand-icon-loading-sizing-height', 16px);
13756
+ @tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
13757
+ @tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
13758
+ @tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
13685
13759
 
13686
13760
  // font
13687
13761
  @tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);