@kdcloudjs/kdesign 1.5.2 → 1.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +64 -0
- package/dist/default-theme.js +4 -4
- package/dist/kdesign-complete.less +169 -88
- package/dist/kdesign.css +165 -86
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +335 -220
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +6 -6
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +17 -8
- package/es/alert/alert.js +2 -2
- package/es/alert/style/index.css +27 -11
- package/es/alert/style/index.less +24 -10
- package/es/alert/style/mixin.less +8 -2
- package/es/alert/style/token.less +16 -8
- package/es/config-provider/compDefaultProps.d.ts +1 -0
- package/es/config-provider/compDefaultProps.js +2 -1
- package/es/drawer/drawer.js +1 -0
- package/es/dropdown/dropdown.js +16 -6
- package/es/dropdown/style/index.css +13 -14
- package/es/dropdown/style/index.less +4 -5
- package/es/dropdown/style/token.less +6 -5
- package/es/input/ClearableLabeledInput.js +5 -5
- package/es/input/style/index.css +5 -0
- package/es/input/style/index.less +5 -0
- package/es/radio/style/index.css +7 -1
- package/es/radio/style/index.less +9 -1
- package/es/search/style/index.css +3 -3
- package/es/select/select.js +1 -1
- package/es/spin/style/index.css +25 -26
- package/es/spin/style/index.less +18 -19
- package/es/spin/style/token.less +9 -3
- package/es/stepper/stepper.js +9 -4
- package/es/stepper/style/index.css +2 -0
- package/es/stepper/style/index.less +2 -0
- package/es/stepper/style/token.less +1 -2
- package/es/style/icon/kdicon.css +2 -1
- package/es/style/icon/kdicon.woff +0 -0
- package/es/style/themes/default.less +3 -4
- package/es/tabs/style/index.css +1 -0
- package/es/tabs/style/index.less +1 -0
- package/es/timeline/style/index.css +22 -21
- package/es/timeline/style/index.less +2 -2
- package/es/timeline/style/token.less +4 -7
- package/es/tooltip/tooltip.js +1 -1
- package/es/tree/style/index.css +56 -7
- package/es/tree/style/index.less +26 -18
- package/es/tree/style/mixin.less +25 -1
- package/es/tree/style/token.less +6 -4
- package/es/tree/tree.d.ts +2 -0
- package/es/tree/tree.js +77 -20
- package/es/tree/treeHooks.d.ts +1 -1
- package/es/tree/treeHooks.js +3 -4
- package/es/tree/treeNode.d.ts +1 -0
- package/es/tree/treeNode.js +45 -49
- package/es/tree/utils/treeUtils.d.ts +6 -3
- package/es/tree/utils/treeUtils.js +66 -42
- package/lib/_utils/usePopper.js +17 -8
- package/lib/alert/alert.js +2 -2
- package/lib/alert/style/index.css +27 -11
- package/lib/alert/style/index.less +24 -10
- package/lib/alert/style/mixin.less +8 -2
- package/lib/alert/style/token.less +16 -8
- package/lib/config-provider/compDefaultProps.d.ts +1 -0
- package/lib/config-provider/compDefaultProps.js +2 -1
- package/lib/drawer/drawer.js +1 -0
- package/lib/dropdown/dropdown.js +15 -6
- package/lib/dropdown/style/index.css +13 -14
- package/lib/dropdown/style/index.less +4 -5
- package/lib/dropdown/style/token.less +6 -5
- package/lib/input/ClearableLabeledInput.js +5 -5
- package/lib/input/style/index.css +5 -0
- package/lib/input/style/index.less +5 -0
- package/lib/radio/style/index.css +7 -1
- package/lib/radio/style/index.less +9 -1
- package/lib/search/style/index.css +3 -3
- package/lib/select/select.js +1 -1
- package/lib/spin/style/index.css +25 -26
- package/lib/spin/style/index.less +18 -19
- package/lib/spin/style/token.less +9 -3
- package/lib/stepper/stepper.js +9 -4
- package/lib/stepper/style/index.css +2 -0
- package/lib/stepper/style/index.less +2 -0
- package/lib/stepper/style/token.less +1 -2
- package/lib/style/icon/kdicon.css +2 -1
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/style/themes/default.less +3 -4
- package/lib/tabs/style/index.css +1 -0
- package/lib/tabs/style/index.less +1 -0
- package/lib/timeline/style/index.css +22 -21
- package/lib/timeline/style/index.less +2 -2
- package/lib/timeline/style/token.less +4 -7
- package/lib/tooltip/tooltip.js +1 -1
- package/lib/tree/style/index.css +56 -7
- package/lib/tree/style/index.less +26 -18
- package/lib/tree/style/mixin.less +25 -1
- package/lib/tree/style/token.less +6 -4
- package/lib/tree/tree.d.ts +2 -0
- package/lib/tree/tree.js +78 -20
- package/lib/tree/treeHooks.d.ts +1 -1
- package/lib/tree/treeHooks.js +3 -4
- package/lib/tree/treeNode.d.ts +1 -0
- package/lib/tree/treeNode.js +46 -48
- package/lib/tree/utils/treeUtils.d.ts +6 -3
- package/lib/tree/utils/treeUtils.js +64 -42
- package/package.json +1 -1
|
@@ -16,11 +16,18 @@
|
|
|
16
16
|
@info: @alert-info-bg-color;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
-
.alert-
|
|
20
|
-
@success: @alert-success-
|
|
21
|
-
@warning: @alert-warning-
|
|
22
|
-
@error: @alert-error-
|
|
23
|
-
@info: @alert-info-
|
|
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-
|
|
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-
|
|
54
|
-
.alert-
|
|
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:
|
|
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-
|
|
126
|
-
&.alert-@{type}-
|
|
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-
|
|
146
|
-
@alert-
|
|
147
|
-
@alert-
|
|
148
|
-
@alert-
|
|
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-
|
|
160
|
-
@alert-padding-
|
|
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
|
|
3855
|
-
background-color: @dropdown-item-active-bg-color;
|
|
3882
|
+
color: @dropdown-item-active-color;
|
|
3856
3883
|
|
|
3857
3884
|
> a {
|
|
3858
|
-
color: @color
|
|
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-
|
|
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',
|
|
3920
|
-
@dropdown-menu-max-width: var(~'@{dropdown-custom-prefix}-menu-sizing-max-width',
|
|
3921
|
-
@dropdown-menu-max-height: var(~'@{dropdown-custom-prefix}-menu-sizing-max-height',
|
|
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',
|
|
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
|
|
|
@@ -5111,6 +5139,10 @@ textarea {
|
|
|
5111
5139
|
background-color: @input-background-color-disabled-inner;
|
|
5112
5140
|
border-color: @input-border-color-disabled-inner;
|
|
5113
5141
|
cursor: not-allowed;
|
|
5142
|
+
|
|
5143
|
+
.@{input-prefix-cls}-suffix, .@{input-prefix-cls}-prefix {
|
|
5144
|
+
color: @input-color-disabled-inner;
|
|
5145
|
+
}
|
|
5114
5146
|
}
|
|
5115
5147
|
}
|
|
5116
5148
|
&-wrapper-textarea {
|
|
@@ -5205,6 +5237,7 @@ textarea {
|
|
|
5205
5237
|
&-disabled {
|
|
5206
5238
|
background-color: @input-background-color-disabled-inner;
|
|
5207
5239
|
border-color: @input-border-color-disabled-inner;
|
|
5240
|
+
color: @input-color-disabled-inner;
|
|
5208
5241
|
cursor: not-allowed;
|
|
5209
5242
|
}
|
|
5210
5243
|
}
|
|
@@ -7828,6 +7861,10 @@ textarea {
|
|
|
7828
7861
|
opacity: 0;
|
|
7829
7862
|
width: 100%;
|
|
7830
7863
|
height: 100%;
|
|
7864
|
+
|
|
7865
|
+
&[disabled] {
|
|
7866
|
+
cursor: not-allowed;
|
|
7867
|
+
}
|
|
7831
7868
|
}
|
|
7832
7869
|
|
|
7833
7870
|
// 悬停状态
|
|
@@ -7938,6 +7975,10 @@ textarea {
|
|
|
7938
7975
|
z-index: 1;
|
|
7939
7976
|
cursor: pointer;
|
|
7940
7977
|
opacity: 0;
|
|
7978
|
+
|
|
7979
|
+
&[disabled]{
|
|
7980
|
+
cursor: not-allowed;
|
|
7981
|
+
}
|
|
7941
7982
|
}
|
|
7942
7983
|
|
|
7943
7984
|
// 悬停状态
|
|
@@ -7961,7 +8002,7 @@ textarea {
|
|
|
7961
8002
|
color: @radio-color-background;
|
|
7962
8003
|
}
|
|
7963
8004
|
|
|
7964
|
-
|
|
8005
|
+
&:not(.@{radio-button-prefix-cls}-disabled)::before {
|
|
7965
8006
|
background-color: @radio-color-theme;
|
|
7966
8007
|
}
|
|
7967
8008
|
|
|
@@ -9540,9 +9581,9 @@ textarea {
|
|
|
9540
9581
|
// right: 0;
|
|
9541
9582
|
|
|
9542
9583
|
.@{spin-prefix-cls}-dot-spin {
|
|
9543
|
-
width:
|
|
9544
|
-
height:
|
|
9545
|
-
padding:
|
|
9584
|
+
width: @spin-page-dot-spin-sizing;
|
|
9585
|
+
height: @spin-page-dot-spin-sizing;
|
|
9586
|
+
padding: @spin-page-dot-spin-spacing-padding;
|
|
9546
9587
|
// background: @logo-color-1;
|
|
9547
9588
|
box-sizing: border-box;
|
|
9548
9589
|
display: flex;
|
|
@@ -9552,10 +9593,9 @@ textarea {
|
|
|
9552
9593
|
}
|
|
9553
9594
|
|
|
9554
9595
|
.@{spin-prefix-cls}-dot-item {
|
|
9555
|
-
.dot(@spin-page-
|
|
9596
|
+
.dot(@spin-page-dot-item-sizing, @spin-dot-color-first);
|
|
9556
9597
|
|
|
9557
9598
|
&:nth-child(2n+1) {
|
|
9558
|
-
margin-right: 10px;
|
|
9559
9599
|
animation: pageLoading 1s .3s ease-in-out infinite
|
|
9560
9600
|
}
|
|
9561
9601
|
|
|
@@ -9576,7 +9616,7 @@ textarea {
|
|
|
9576
9616
|
|
|
9577
9617
|
@keyframes pageLoading {
|
|
9578
9618
|
50% {
|
|
9579
|
-
transform: scale(1.
|
|
9619
|
+
transform: scale(1.25);
|
|
9580
9620
|
}
|
|
9581
9621
|
100% {
|
|
9582
9622
|
transform: scale(1);
|
|
@@ -9600,22 +9640,22 @@ textarea {
|
|
|
9600
9640
|
&:nth-child(2n+1) {
|
|
9601
9641
|
animation: containerLoading 1s .6s ease-in-out infinite
|
|
9602
9642
|
}
|
|
9603
|
-
|
|
9643
|
+
|
|
9604
9644
|
&:nth-child(2n+2) {
|
|
9605
9645
|
background-color: @spin-dot-color-second;
|
|
9606
9646
|
animation: containerLoading 1s .45s ease-in-out infinite
|
|
9607
9647
|
}
|
|
9608
|
-
|
|
9648
|
+
|
|
9609
9649
|
&:nth-child(2n+3) {
|
|
9610
9650
|
background-color: @spin-dot-color-third;
|
|
9611
9651
|
animation: containerLoading 1s .3s ease-in-out infinite
|
|
9612
9652
|
}
|
|
9613
|
-
|
|
9653
|
+
|
|
9614
9654
|
&:nth-child(2n+4) {
|
|
9615
9655
|
background-color: @spin-dot-color-fourth;
|
|
9616
9656
|
animation: containerLoading 1s .15s ease-in-out infinite
|
|
9617
9657
|
}
|
|
9618
|
-
|
|
9658
|
+
|
|
9619
9659
|
@keyframes containerLoading {
|
|
9620
9660
|
50% {
|
|
9621
9661
|
transform: translateY(-10px);
|
|
@@ -9631,24 +9671,24 @@ textarea {
|
|
|
9631
9671
|
// 组件加载动画
|
|
9632
9672
|
&-component {
|
|
9633
9673
|
.@{spin-prefix-cls}-dot-spin {
|
|
9634
|
-
width:
|
|
9635
|
-
height:
|
|
9636
|
-
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;
|
|
9637
9677
|
border-radius: 50%;
|
|
9638
9678
|
position: relative;
|
|
9639
9679
|
box-sizing: border-box;
|
|
9640
9680
|
|
|
9641
9681
|
.@{spin-prefix-cls}-dot-item {
|
|
9642
|
-
width:
|
|
9643
|
-
height:
|
|
9682
|
+
width: @spin-component-spin-size;
|
|
9683
|
+
height: @spin-component-spin-size;
|
|
9644
9684
|
box-sizing: border-box;
|
|
9645
|
-
border:
|
|
9685
|
+
border: @spin-component-spin-border solid transparent;
|
|
9646
9686
|
// border-top-color: #5582f3;
|
|
9647
9687
|
border-right-color: @spin-component-dot-item-color-border;
|
|
9648
9688
|
border-radius: 50%;
|
|
9649
9689
|
position: absolute;
|
|
9650
|
-
top: -
|
|
9651
|
-
left: -
|
|
9690
|
+
top: calc(-1 * @spin-component-spin-border);
|
|
9691
|
+
left: calc(-1 * @spin-component-spin-border);
|
|
9652
9692
|
transform: rotate(-45deg);
|
|
9653
9693
|
animation: componentRotate 1s linear infinite;
|
|
9654
9694
|
|
|
@@ -9692,6 +9732,7 @@ textarea {
|
|
|
9692
9732
|
}
|
|
9693
9733
|
|
|
9694
9734
|
|
|
9735
|
+
|
|
9695
9736
|
// code component mixin here
|
|
9696
9737
|
.dot(@size, @color) {
|
|
9697
9738
|
width: @size;
|
|
@@ -9709,12 +9750,19 @@ textarea {
|
|
|
9709
9750
|
@spin-dot-color-second: var(~'@{spin-custom-prefix}-dot-color-backgroung-second', @color-logo-2);
|
|
9710
9751
|
@spin-dot-color-third: var(~'@{spin-custom-prefix}-dot-color-backgroung-third', @color-logo-3);
|
|
9711
9752
|
@spin-dot-color-fourth: var(~'@{spin-custom-prefix}-dot-color-backgroung-fourth', @color-logo-4);
|
|
9712
|
-
@spin-component-dot-color-border: var(~'@{spin-custom-prefix}-component-dot-color-border', #
|
|
9753
|
+
@spin-component-dot-color-border: var(~'@{spin-custom-prefix}-component-dot-color-border', #ebebeb);
|
|
9713
9754
|
@spin-component-dot-item-color-border: var(~'@{spin-custom-prefix}-component-dot-item-color-border', @color-theme);
|
|
9714
9755
|
|
|
9715
9756
|
// sizing
|
|
9716
|
-
@spin-page-
|
|
9717
|
-
@spin-
|
|
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
|
+
|
|
9718
9766
|
|
|
9719
9767
|
|
|
9720
9768
|
|
|
@@ -9969,6 +10017,7 @@ textarea {
|
|
|
9969
10017
|
|
|
9970
10018
|
&-disabled {
|
|
9971
10019
|
cursor: not-allowed;
|
|
10020
|
+
color: @stepper-icon-color-disabled;
|
|
9972
10021
|
|
|
9973
10022
|
.@{inputNumber-prefix-cls}-icon {
|
|
9974
10023
|
color: unset !important;
|
|
@@ -10020,6 +10069,7 @@ textarea {
|
|
|
10020
10069
|
|
|
10021
10070
|
&-disabled {
|
|
10022
10071
|
cursor: not-allowed !important;
|
|
10072
|
+
color: @stepper-icon-color-disabled;
|
|
10023
10073
|
|
|
10024
10074
|
.@{inputNumber-prefix-cls}-icon {
|
|
10025
10075
|
color: unset !important;
|
|
@@ -10055,15 +10105,14 @@ textarea {
|
|
|
10055
10105
|
@stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
|
|
10056
10106
|
@stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
|
|
10057
10107
|
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', transparent);
|
|
10108
|
+
@stepper-icon-color-disabled: var(~'@{stepper-prefix}-icon-color-disabled', @color-disabled);
|
|
10058
10109
|
|
|
10059
10110
|
// font
|
|
10060
10111
|
@stepper-input-font-size: var(~'@{stepper-prefix}-input-font-size', 12px);
|
|
10061
10112
|
|
|
10062
|
-
|
|
10063
10113
|
// motion
|
|
10064
10114
|
@stepper-motion-duration: var(~'@{stepper-prefix}-motion-duration', @duration-promptly);
|
|
10065
10115
|
|
|
10066
|
-
|
|
10067
10116
|
// sizing
|
|
10068
10117
|
@stepper-input-small-sizing-height: var(~'@{stepper-prefix}-input-small-sizing-height', 20px);
|
|
10069
10118
|
@stepper-input-middle-sizing-height: var(~'@{stepper-prefix}-input-middle-sizing-height', 28px);
|
|
@@ -11302,15 +11351,14 @@ template {
|
|
|
11302
11351
|
@bg2: #f2f2f2; // 底色灰背景
|
|
11303
11352
|
@bg3: rgba(255, 255, 255, 0.65); // 次级底色背景
|
|
11304
11353
|
@contain-bg: #fafafa; // 容器内的灰背景
|
|
11305
|
-
@radius-size: 2px; // 圆角值
|
|
11306
11354
|
@input-color: #999; // 线型录入的默认态
|
|
11307
11355
|
@strong-border-color: #d9d9d9; // 强线条 --带操作
|
|
11308
11356
|
@strong-border-color-1: #d9d9d9; // 强线条 --分割内容/容器包裹线
|
|
11309
11357
|
@strong-border-color-2: rgba(217, 217, 217, 0.65); // 次级边框
|
|
11310
11358
|
@weak-border-color: #e5e5e5; // 弱线条 -- 需要多层级时
|
|
11311
|
-
@logo-color-1: #
|
|
11312
|
-
@logo-color-2: #
|
|
11313
|
-
@logo-color-3: #
|
|
11359
|
+
@logo-color-1: #2486ee;
|
|
11360
|
+
@logo-color-2: #02ccfe;
|
|
11361
|
+
@logo-color-3: #05c8c7;
|
|
11314
11362
|
@logo-color-4: #a06eff;
|
|
11315
11363
|
// @shadow-on-hover: ; // 悬停时阴影
|
|
11316
11364
|
@white: #fff;
|
|
@@ -12410,6 +12458,7 @@ template {
|
|
|
12410
12458
|
min-width: 120px;
|
|
12411
12459
|
height: 100%;
|
|
12412
12460
|
font-size: 0;
|
|
12461
|
+
border-top: 1px solid transparent;
|
|
12413
12462
|
&::before, &::after {
|
|
12414
12463
|
position: absolute;
|
|
12415
12464
|
content: '';
|
|
@@ -12927,7 +12976,7 @@ template {
|
|
|
12927
12976
|
.@{timeline-prefix-cls} {
|
|
12928
12977
|
.reset-component;
|
|
12929
12978
|
margin: 0;
|
|
12930
|
-
padding: 0;
|
|
12979
|
+
padding: 0 4px;
|
|
12931
12980
|
overflow: hidden;
|
|
12932
12981
|
list-style: none;
|
|
12933
12982
|
|
|
@@ -13066,7 +13115,7 @@ template {
|
|
|
13066
13115
|
margin-right:calc(-1 * (@timeline-dot-size - 1px) / 2) ;
|
|
13067
13116
|
|
|
13068
13117
|
&.custom {
|
|
13069
|
-
margin-right:
|
|
13118
|
+
margin-right: -18px;
|
|
13070
13119
|
}
|
|
13071
13120
|
}
|
|
13072
13121
|
.@{timeline-item-prefix-cls}-content {
|
|
@@ -13182,12 +13231,10 @@ template {
|
|
|
13182
13231
|
|
|
13183
13232
|
|
|
13184
13233
|
@timeline-prefix: '--@{kd-prefix}-c-timeline';
|
|
13185
|
-
@timeline-gap:
|
|
13186
|
-
|
|
13187
|
-
// @timeline-dot-size: var(~'@{timeline-prefix}-dot-sizing',9px);
|
|
13188
|
-
@timeline-dot-size: 9px;
|
|
13189
|
-
|
|
13234
|
+
@timeline-gap: 8px;
|
|
13190
13235
|
|
|
13236
|
+
@timeline-dot-size: var(~'@{timeline-prefix}-dot-sizing',9px);
|
|
13237
|
+
// @timeline-dot-size: 9px;
|
|
13191
13238
|
|
|
13192
13239
|
// color
|
|
13193
13240
|
@timeline-finished-color: var(~'@{timeline-prefix}-finished-color',@color-theme);
|
|
@@ -13198,7 +13245,6 @@ template {
|
|
|
13198
13245
|
@timeline-label-color-text: var(~'@{timeline-prefix}-label-color-text',#666666);
|
|
13199
13246
|
@timeline-content-color-text: var(~'@{timeline-prefix}-content-color-text',@color-text-primary);
|
|
13200
13247
|
|
|
13201
|
-
|
|
13202
13248
|
// font
|
|
13203
13249
|
@timeline-content-font-size-small: var(~'@{timeline-prefix}-content-font-size',@font-size-small);
|
|
13204
13250
|
|
|
@@ -13207,7 +13253,7 @@ template {
|
|
|
13207
13253
|
@timeline-width: var(~'@{timeline-prefix}-sizing-width',1px);
|
|
13208
13254
|
|
|
13209
13255
|
// spacing
|
|
13210
|
-
@timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',
|
|
13256
|
+
@timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',24px);
|
|
13211
13257
|
|
|
13212
13258
|
|
|
13213
13259
|
|
|
@@ -13522,6 +13568,17 @@ template {
|
|
|
13522
13568
|
display: flex;
|
|
13523
13569
|
justify-content: flex-start;
|
|
13524
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
|
+
}
|
|
13525
13582
|
}
|
|
13526
13583
|
&-fb-children-pointerEvents * {
|
|
13527
13584
|
pointer-events: none;
|
|
@@ -13529,13 +13586,8 @@ template {
|
|
|
13529
13586
|
&-item {
|
|
13530
13587
|
display: flex;
|
|
13531
13588
|
align-items: center;
|
|
13532
|
-
|
|
13533
|
-
|
|
13534
|
-
transition: background-color @tree-transition-duration, color @tree-transition-duration;
|
|
13535
|
-
}
|
|
13536
|
-
&-item-hover:hover {
|
|
13537
|
-
background-color: @tree-node-hover-bg-color;
|
|
13538
|
-
cursor: pointer;
|
|
13589
|
+
|
|
13590
|
+
.node-hover()
|
|
13539
13591
|
}
|
|
13540
13592
|
|
|
13541
13593
|
&-indent {
|
|
@@ -13564,6 +13616,11 @@ template {
|
|
|
13564
13616
|
align-items: center;
|
|
13565
13617
|
font-size: @tree-node-icon-size;
|
|
13566
13618
|
color: @tree-node-icon-color-text;
|
|
13619
|
+
|
|
13620
|
+
&-hover:hover {
|
|
13621
|
+
background-color: @tree-node-hover-bg-color;
|
|
13622
|
+
cursor: pointer;
|
|
13623
|
+
}
|
|
13567
13624
|
}
|
|
13568
13625
|
&-icon-hidden {
|
|
13569
13626
|
height: @tree-node-icon-height;
|
|
@@ -13593,22 +13650,19 @@ template {
|
|
|
13593
13650
|
display: flex;
|
|
13594
13651
|
align-items: center;
|
|
13595
13652
|
height: 100%;
|
|
13653
|
+
padding-left: 4px;
|
|
13654
|
+
|
|
13655
|
+
.node-hover();
|
|
13656
|
+
|
|
13657
|
+
&-selected {
|
|
13658
|
+
.node-selected()
|
|
13659
|
+
}
|
|
13596
13660
|
}
|
|
13597
13661
|
&-title {
|
|
13598
13662
|
white-space: nowrap;
|
|
13599
|
-
margin-left: 6px;
|
|
13600
13663
|
}
|
|
13601
13664
|
&-selected {
|
|
13602
|
-
|
|
13603
|
-
color: @tree-node-checked-text-color;
|
|
13604
|
-
|
|
13605
|
-
.@{tree-node-prefix-cls}-title {
|
|
13606
|
-
color: @tree-node-checked-text-color;
|
|
13607
|
-
}
|
|
13608
|
-
|
|
13609
|
-
.@{tree-node-prefix-cls}-icon {
|
|
13610
|
-
color: @tree-node-checked-text-color;
|
|
13611
|
-
}
|
|
13665
|
+
.node-selected()
|
|
13612
13666
|
}
|
|
13613
13667
|
|
|
13614
13668
|
&-draggabled {
|
|
@@ -13654,6 +13708,31 @@ template {
|
|
|
13654
13708
|
|
|
13655
13709
|
|
|
13656
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
|
+
|
|
13657
13736
|
|
|
13658
13737
|
@tree-prefix: '--@{kd-prefix}-c-tree';
|
|
13659
13738
|
|
|
@@ -13671,10 +13750,12 @@ template {
|
|
|
13671
13750
|
@tree-node-drag-line-border-color: var(~'@{tree-prefix}-node-drag-line-color-background', #276FF5);
|
|
13672
13751
|
|
|
13673
13752
|
// sizing
|
|
13674
|
-
@tree-expand-icon-height: var(~'@{tree-prefix}-expand-icon-sizing-height',
|
|
13675
|
-
@tree-expand-icon-width: var(~'@{tree-prefix}-expand-icon-sizing-width',
|
|
13676
|
-
@tree-
|
|
13677
|
-
@tree-
|
|
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);
|
|
13678
13759
|
|
|
13679
13760
|
// font
|
|
13680
13761
|
@tree-font-size: var(~'@{tree-prefix}-font-size', @font-size-small);
|