@kdcloudjs/kdesign 1.1.3 → 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.
- package/CHANGELOG.md +39 -3
- package/dist/kdesign-complete.less +407 -261
- package/dist/kdesign.css +154 -54
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +253 -19
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +0 -1
- package/es/anchor/anchor.js +0 -6
- package/es/anchor/style/index.css +5 -2
- package/es/anchor/style/index.less +6 -2
- package/es/anchor/style/token.less +2 -1
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +2 -2
- package/es/button/group.d.ts +21 -0
- package/es/button/group.js +130 -0
- package/es/button/index.d.ts +5 -1
- package/es/button/index.js +4 -1
- package/es/button/style/index.css +117 -21
- package/es/button/style/index.less +332 -192
- package/es/button/style/token.less +41 -25
- package/es/carousel/carousel.js +4 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +4 -0
- package/es/empty/defaultEmptyImg.js +5 -3
- package/es/empty/illustrationEmptyImg.js +6 -4
- package/es/icon/interface.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/style/index.css +8 -8
- package/es/image/style/index.less +5 -5
- package/es/image/style/token.less +12 -25
- package/es/rate/style/index.css +9 -9
- package/es/rate/style/token.less +6 -6
- package/es/stepper/style/index.css +1 -1
- package/es/stepper/style/token.less +1 -1
- package/es/style/icon/kdicon.css +2 -1
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/index.css +11 -11
- package/es/switch/style/index.less +2 -2
- package/es/switch/style/token.less +7 -10
- package/lib/_utils/usePopper.js +0 -1
- package/lib/anchor/anchor.js +0 -6
- package/lib/anchor/style/index.css +5 -2
- package/lib/anchor/style/index.less +6 -2
- package/lib/anchor/style/token.less +2 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +2 -2
- package/lib/button/group.d.ts +21 -0
- package/lib/button/group.js +166 -0
- package/lib/button/index.d.ts +5 -1
- package/lib/button/index.js +5 -1
- package/lib/button/style/index.css +117 -21
- package/lib/button/style/index.less +332 -192
- package/lib/button/style/token.less +41 -25
- package/lib/carousel/carousel.js +4 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +4 -0
- package/lib/empty/defaultEmptyImg.js +6 -3
- package/lib/empty/illustrationEmptyImg.js +7 -4
- package/lib/icon/interface.js +1 -1
- package/lib/image/preview.js +1 -1
- package/lib/image/style/index.css +8 -8
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/token.less +12 -25
- package/lib/rate/style/index.css +9 -9
- package/lib/rate/style/token.less +6 -6
- package/lib/stepper/style/index.css +1 -1
- package/lib/stepper/style/token.less +1 -1
- package/lib/style/icon/kdicon.css +2 -1
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/index.css +11 -11
- package/lib/switch/style/index.less +2 -2
- package/lib/switch/style/token.less +7 -10
- package/package.json +1 -1
|
@@ -1,197 +1,337 @@
|
|
|
1
1
|
@import '../../style/themes/index';
|
|
2
2
|
@import './mixin.less';
|
|
3
3
|
@btn-prefix-cls: ~'@{kd-prefix}-btn';
|
|
4
|
+
|
|
4
5
|
.@{btn-prefix-cls} {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
6
|
+
.btn;
|
|
7
|
+
|
|
8
|
+
// 按钮wave动效
|
|
9
|
+
transition: color @transition-duration, background-color @transition-duration, border-color @transition-duration;
|
|
10
|
+
&:not(&-text)::after {
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
bottom: 0;
|
|
15
|
+
left: 0;
|
|
16
|
+
border-radius: inherit;
|
|
17
|
+
box-shadow: 0 0 0 0 @color-theme;
|
|
18
|
+
opacity: 0.2;
|
|
19
|
+
content: '';
|
|
20
|
+
pointer-events: none;
|
|
21
|
+
clear: both;
|
|
22
|
+
}
|
|
23
|
+
&:not(&-text)[click-animating-wave='true']::after {
|
|
24
|
+
animation: fadeEffect @btn-duration-fade @ease-out forwards, waveEffect @btn-duration-wave @ease-out forwards;
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// 次要按钮
|
|
28
|
+
&-second {
|
|
29
|
+
.btn-type(@btn-second-border-color, @btn-second-background-color, @btn-second-font-color);
|
|
30
|
+
&:hover {
|
|
31
|
+
&:not(.@{btn-prefix-cls}-loading) {
|
|
32
|
+
background-color: @btn-second-background-color-hover;
|
|
33
|
+
border-color: @btn-second-border-color-hover;
|
|
34
|
+
color: @btn-second-font-color-hover;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
&:active {
|
|
38
|
+
&:not(.@{btn-prefix-cls}-loading) {
|
|
39
|
+
background-color: @btn-second-background-color-active;
|
|
40
|
+
border-color: @btn-second-border-color-active;
|
|
41
|
+
color: @btn-second-font-color-active;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
&:disabled {
|
|
45
|
+
border-color: @btn-second-border-color-disabled !important;
|
|
46
|
+
background-color: @btn-second-background-color-disabled !important;
|
|
47
|
+
color: @btn-second-font-color-disabled !important;
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
// 主要按钮
|
|
51
|
+
&-primary {
|
|
52
|
+
.btn-type(@btn-primary-border-color, @btn-primary-background-color, @btn-primary-font-color);
|
|
53
|
+
&:hover:not(.@{btn-prefix-cls}-loading) {
|
|
54
|
+
background-color: @btn-primary-background-color-hover;
|
|
55
|
+
border-color: @btn-primary-border-color-hover;
|
|
56
|
+
}
|
|
57
|
+
&:active:not(.@{btn-prefix-cls}-loading) {
|
|
58
|
+
border-color: @btn-primary-border-color-active;
|
|
59
|
+
background-color: @btn-primary-background-color-active;
|
|
60
|
+
}
|
|
61
|
+
&:disabled {
|
|
62
|
+
background-color: @btn-primary-background-color-disabled !important;
|
|
63
|
+
border-color: @btn-primary-border-color-disabled !important;
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
// 幽灵按钮
|
|
68
|
+
&-ghost {
|
|
69
|
+
.btn-type(@btn-ghost-border-color, @btn-ghost-background-color, @btn-ghost-font-color);
|
|
70
|
+
|
|
71
|
+
&:hover:not(.@{btn-prefix-cls}-loading) {
|
|
72
|
+
background-color: @btn-ghost-background-color-hover;
|
|
73
|
+
border-color: @btn-ghost-border-color-hover;
|
|
74
|
+
color: @btn-ghost-font-color-hover;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:active:not(.@{btn-prefix-cls}-loading) {
|
|
78
|
+
background-color: @btn-ghost-background-color-active;
|
|
79
|
+
border-color: @btn-ghost-border-color-hover;
|
|
80
|
+
color: @btn-ghost-font-color-active;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&:disabled {
|
|
84
|
+
background-color: @btn-ghost-background-color-disabled !important;
|
|
85
|
+
border-color: @btn-ghost-border-color-disabled !important;
|
|
86
|
+
color: @btn-ghost-font-color-disabled !important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&-iconWrapper-left {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: center;
|
|
94
|
+
float: left;
|
|
95
|
+
}
|
|
96
|
+
&-iconWrapper-right {
|
|
97
|
+
display: flex;
|
|
98
|
+
align-items: center;
|
|
99
|
+
justify-content: center;
|
|
100
|
+
float: right;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&-loadingIcon {
|
|
104
|
+
color: @btn-g-text-color-loading;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
&-primary-loadingIcon {
|
|
108
|
+
color: @btn-primary-g-text-color-loading;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
// 小号尺寸按钮
|
|
112
|
+
&-size-small {
|
|
113
|
+
.btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width);
|
|
114
|
+
&.@{btn-prefix-cls}-icon-only {
|
|
115
|
+
font-size: @btn-icon-small-font-size;
|
|
116
|
+
padding: 0 @btn-icon-padding-horizontal;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.@{btn-prefix-cls}-group-basic-icon {
|
|
120
|
+
font-size: @btn-icon-small-font-size;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// 中号尺寸按钮
|
|
125
|
+
&-size-middle {
|
|
126
|
+
.btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width);
|
|
127
|
+
&.@{btn-prefix-cls}-icon-only {
|
|
128
|
+
font-size: @btn-icon-middle-font-size;
|
|
129
|
+
padding: 0 @btn-icon-padding-horizontal;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.@{btn-prefix-cls}-group-basic-icon {
|
|
133
|
+
font-size: @btn-icon-middle-font-size;
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
// 大号尺寸按钮
|
|
138
|
+
&-size-large {
|
|
139
|
+
.btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width);
|
|
140
|
+
&.@{btn-prefix-cls}-icon-only {
|
|
141
|
+
font-size: @btn-icon-large-font-size;
|
|
142
|
+
padding: 0 @btn-icon-padding-horizontal;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.@{btn-prefix-cls}-group-basic-icon {
|
|
146
|
+
font-size: @btn-icon-large-font-size;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
// 圆形按钮
|
|
151
|
+
&-shape-circle {
|
|
152
|
+
border-radius: 50%;
|
|
153
|
+
min-width: auto;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
// 圆形小号尺寸按钮宽度等同其高度
|
|
157
|
+
&-shape-circle&-size-small {
|
|
158
|
+
.btn-shape-circle-width(@btn-small-height);
|
|
159
|
+
}
|
|
160
|
+
// 圆形中号尺寸按钮宽度等同其高度
|
|
161
|
+
&-shape-circle&-size-middle {
|
|
162
|
+
.btn-shape-circle-width(@btn-middle-height);
|
|
163
|
+
}
|
|
164
|
+
// 圆形大号尺寸按钮宽度等同其高度
|
|
165
|
+
&-shape-circle&-size-large {
|
|
166
|
+
.btn-shape-circle-width(@btn-large-height);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// 椭圆形小号尺寸按钮border-radius等同其高度
|
|
170
|
+
&-shape-round&-size-small {
|
|
171
|
+
border-radius: @btn-small-height;
|
|
172
|
+
}
|
|
173
|
+
// 椭圆形中号尺寸按钮border-radius等同其高度
|
|
174
|
+
&-shape-round&-size-middle {
|
|
175
|
+
border-radius: @btn-middle-height;
|
|
176
|
+
}
|
|
177
|
+
// 椭圆形大号尺寸按钮border-radius等同其高度
|
|
178
|
+
&-shape-round&-size-large {
|
|
179
|
+
border-radius: @btn-large-height;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
// 直角按钮
|
|
183
|
+
&-shape-none {
|
|
184
|
+
border-radius: 0;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
// 文本类型按钮
|
|
188
|
+
&-text {
|
|
189
|
+
height: auto;
|
|
190
|
+
width: auto;
|
|
191
|
+
color: @btn-text-g-text-color;
|
|
192
|
+
padding: 0;
|
|
193
|
+
min-width: auto;
|
|
194
|
+
|
|
195
|
+
&:hover {
|
|
196
|
+
color: @btn-text-g-text-color-hover;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
&:active {
|
|
200
|
+
color: @btn-text-g-text-color-active;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
&[disabled] {
|
|
204
|
+
color: @btn-text-g-text-color-disabled !important;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// 按钮不带边框
|
|
209
|
+
&-no-border {
|
|
210
|
+
border: none;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
// 不可用按钮部分样式
|
|
214
|
+
&:disabled,
|
|
215
|
+
&[disabled] {
|
|
216
|
+
cursor: not-allowed;
|
|
217
|
+
}
|
|
218
|
+
// 按钮开启幽灵化
|
|
219
|
+
&-background-ghost {
|
|
220
|
+
&,
|
|
221
|
+
&:hover,
|
|
222
|
+
&:active {
|
|
223
|
+
background-color: transparent;
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&.@{btn-prefix-cls}-primary {
|
|
227
|
+
color: @btn-background-ghost-g-text-color;
|
|
228
|
+
|
|
229
|
+
&:hover {
|
|
230
|
+
color: @btn-background-ghost-g-text-color-hover;
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
// 加载中按钮
|
|
235
|
+
&-loading {
|
|
236
|
+
cursor: default;
|
|
237
|
+
}
|
|
238
|
+
// 按钮开启块化撑满父元素
|
|
239
|
+
&-block {
|
|
240
|
+
width: 100%;
|
|
241
|
+
}
|
|
242
|
+
// 图标与文本之间的间隔
|
|
243
|
+
.btn-space {
|
|
244
|
+
margin-left: 4px;
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
.@{btn-prefix-cls}-group {
|
|
249
|
+
display: inline-block;
|
|
250
|
+
|
|
251
|
+
&-basic {
|
|
252
|
+
.@{btn-prefix-cls} {
|
|
253
|
+
padding-top: 0;
|
|
254
|
+
padding-bottom: 0;
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
&-icon {
|
|
258
|
+
margin-left: 4px;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
&-trigger {
|
|
263
|
+
.@{btn-prefix-cls}-primary {
|
|
264
|
+
background: @btn-group-trigger-color-background;
|
|
265
|
+
&:hover {
|
|
266
|
+
background: @btn-group-trigger-color-background-hover;
|
|
267
|
+
border-color: @btn-group-trigger-color-background-hover;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
&:active {
|
|
271
|
+
background: @btn-group-trigger-color-background-active;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&:disabled {
|
|
275
|
+
background: @btn-group-trigger-color-background-disabled !important;
|
|
276
|
+
}
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
.@{btn-prefix-cls} {
|
|
280
|
+
margin-left: -1px;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
.@{btn-prefix-cls} {
|
|
285
|
+
&-size-small,
|
|
286
|
+
&-size-middle,
|
|
287
|
+
&-size-large {
|
|
288
|
+
min-width: unset;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
&:first-child {
|
|
292
|
+
border-top-right-radius: 0;
|
|
293
|
+
border-bottom-right-radius: 0;
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
&:last-child {
|
|
297
|
+
border-top-left-radius: 0;
|
|
298
|
+
border-bottom-left-radius: 0;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.@{kd-prefix}-dropdown {
|
|
303
|
+
&-menu {
|
|
304
|
+
padding: 0;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
&-dropdown {
|
|
309
|
+
box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
|
|
310
|
+
background: @btn-group-dropdown-color-background;
|
|
311
|
+
color: #333333;
|
|
312
|
+
min-width: @btn-group-dropdown-min-width;
|
|
313
|
+
|
|
314
|
+
&-item {
|
|
315
|
+
height: @btn-group-dropdown-item-height;
|
|
316
|
+
line-height: @btn-group-dropdown-item-height;
|
|
317
|
+
cursor: pointer;
|
|
318
|
+
padding: 0 @btn-group-dropdown-item-horizontal;
|
|
319
|
+
&:hover {
|
|
320
|
+
background: @btn-group-dropdown-item-color-background-hover;
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
&:not(:last-child) {
|
|
324
|
+
border-bottom: 1px solid @btn-group-dropdown-item-border-color;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
&.topLeft.hidden,
|
|
330
|
+
&.bottomLeft.hidden,
|
|
331
|
+
&.topRight.hidden,
|
|
332
|
+
&.bottomRight.hidden {
|
|
333
|
+
opacity: 0;
|
|
334
|
+
visibility: hidden;
|
|
335
|
+
transition: all calc(@transition-duration - 0.1s) @ease;
|
|
336
|
+
}
|
|
197
337
|
}
|
|
@@ -14,33 +14,36 @@
|
|
|
14
14
|
@btn-primary-border-color-disabled: var(~'@{button-custom-prefix}-primary-color-border-disabled', @color-theme-disabled); // 基础disabled边框颜色
|
|
15
15
|
|
|
16
16
|
@btn-ghost-background-color: var(~'@{button-custom-prefix}-ghost-color-background', transparent); // 幽灵背景颜色
|
|
17
|
-
@btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-
|
|
18
|
-
@btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text',
|
|
19
|
-
@btn-ghost-
|
|
20
|
-
@btn-ghost-
|
|
21
|
-
@btn-ghost-
|
|
17
|
+
@btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-theme-6); //幽灵边框颜色
|
|
18
|
+
@btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text', #5582F3); // 幽灵按钮文字颜色
|
|
19
|
+
@btn-ghost-background-color-hover: var(~'@{button-custom-prefix}-ghost-color-background-hover', @color-theme-5); //幽灵hover背景颜色
|
|
20
|
+
@btn-ghost-border-color-hover: var(~'@{button-custom-prefix}-ghost-color-border-hover', transparent); //幽灵hover边框颜色
|
|
21
|
+
@btn-ghost-font-color-hover: var(~'@{button-custom-prefix}-ghost-color-text-hover',#ffffff); // 幽灵hover按钮文字颜色
|
|
22
|
+
@btn-ghost-font-color-active: var(~'@{button-custom-prefix}-ghost-color-text-active', #ffffff); // 幽灵active按钮文字颜色
|
|
23
|
+
@btn-ghost-background-color-active: var(~'@{button-custom-prefix}-ghost-color-background-active', @color-theme-7); //幽灵active背景颜色
|
|
24
|
+
@btn-ghost-border-color-active: var(~'@{button-custom-prefix}-ghost-color-border-active', transparent); //幽灵active边框颜色
|
|
25
|
+
|
|
22
26
|
@btn-ghost-background-color-disabled: var(~'@{button-custom-prefix}-ghost-color-background-disabled', @color-background-contain-disabled); // 幽灵disabled背景颜色
|
|
23
|
-
@btn-ghost-
|
|
24
|
-
@btn-ghost-
|
|
25
|
-
@btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', @color-disabled); // 幽灵disabled按钮文字颜色
|
|
27
|
+
@btn-ghost-border-color-disabled: var(~'@{button-custom-prefix}-ghost-color-border-disabled', #D9D9D9); //幽灵disabled边框颜色
|
|
28
|
+
@btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', #B2B2B2); // 幽灵disabled按钮文字颜色
|
|
26
29
|
|
|
27
|
-
@btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background',
|
|
28
|
-
@btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border',
|
|
29
|
-
@btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text',
|
|
30
|
+
@btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background', transparent); // 次要背景颜色
|
|
31
|
+
@btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border', #D9D9D9); // 次要边框颜色
|
|
32
|
+
@btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text', #212121); // 次要文字颜色
|
|
30
33
|
@btn-second-background-color-hover: var(~'@{button-custom-prefix}-second-color-background-hover', @color-white); // 次要hover背景颜色
|
|
31
|
-
@btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-
|
|
32
|
-
@btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-
|
|
34
|
+
@btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-theme); // 次要hover边框颜色
|
|
35
|
+
@btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-theme); // 次要hover文字颜色
|
|
33
36
|
@btn-second-background-color-active: var(~'@{button-custom-prefix}-second-color-background-active', @color-white); // 次要active背景颜色
|
|
34
|
-
@btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-
|
|
35
|
-
@btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-
|
|
36
|
-
@btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-
|
|
37
|
-
@btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled',
|
|
38
|
-
@btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled',
|
|
37
|
+
@btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-theme-click); // 次要active边框颜色
|
|
38
|
+
@btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-theme-click); // 次要active文字颜色
|
|
39
|
+
@btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-contain-disabled); // 次要disabled背景颜色
|
|
40
|
+
@btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled', #D9D9D9); // 次要disabled边框颜色
|
|
41
|
+
@btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled', #B2B2B2); // 次要disabled文字颜色
|
|
39
42
|
|
|
40
|
-
@btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme);
|
|
41
|
-
@btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-
|
|
42
|
-
@btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-
|
|
43
|
-
@btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-
|
|
43
|
+
@btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme-6);
|
|
44
|
+
@btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-5);
|
|
45
|
+
@btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-7);
|
|
46
|
+
@btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-theme-4);
|
|
44
47
|
|
|
45
48
|
@btn-disabled-background-color: var(~'@{button-custom-prefix}-color-background-disabled', @color-background-contain-disabled); // 禁用状态 背景颜色
|
|
46
49
|
@btn-disabled-border-color: var(~'@{button-custom-prefix}-color-border-disabled', @color-border-strong); // 禁用状态 边框颜色
|
|
@@ -55,6 +58,13 @@
|
|
|
55
58
|
|
|
56
59
|
@btn-background-ghost-g-text-color: var(~'@{button-custom-prefix}-background-ghost-color-text', @color-theme);
|
|
57
60
|
@btn-background-ghost-g-text-color-hover: var(~'@{button-custom-prefix}-background-ghost-color-text-hover', @color-white);
|
|
61
|
+
@btn-group-dropdown-item-border-color: var(~'@{button-custom-prefix}-group-dropdown-item-border-color', #E5E5E5); // 集合按钮 下拉边框颜色
|
|
62
|
+
@btn-group-dropdown-item-color-background-hover: var(~'@{button-custom-prefix}-group-dropdown-item-color-background-hover', #F5F5F5); // 集合按钮 下拉hover背景颜色
|
|
63
|
+
@btn-group-dropdown-color-background: var(~'@{button-custom-prefix}-group-dropdown-color-background', #fff); // 集合按钮 下拉菜单背景颜色
|
|
64
|
+
@btn-group-trigger-color-background: var(~'@{button-custom-prefix}-group-trigger-color-background', #4367c1);
|
|
65
|
+
@btn-group-trigger-color-background-hover: var(~'@{button-custom-prefix}-group-trigger-color-background-hover', #4c74da);
|
|
66
|
+
@btn-group-trigger-color-background-active: var(~'@{button-custom-prefix}-group-trigger-color-background-active', #3B5AA9);
|
|
67
|
+
@btn-group-trigger-color-background-disabled: var(~'@{button-custom-prefix}-group-trigger-color-background-disabled', #95a4c8);
|
|
58
68
|
|
|
59
69
|
// font
|
|
60
70
|
@btn-g-font-weight: var(~'@{button-custom-prefix}-font-weight', @font-weight-light);
|
|
@@ -62,13 +72,15 @@
|
|
|
62
72
|
@btn-middle-font-size: var(~'@{button-custom-prefix}-font-size-middle', @font-size-small); // 中号 文字大小
|
|
63
73
|
@btn-large-font-size: var(~'@{button-custom-prefix}-font-size-large', @font-size-large); // 大号 文字大小
|
|
64
74
|
|
|
75
|
+
@btn-icon-small-font-size: var(~'@{button-custom-prefix}-icon-font-size-small', 14px); // 小号 图标大小
|
|
76
|
+
@btn-icon-middle-font-size: var(~'@{button-custom-prefix}-icon-font-size-middle', 16px); // 中号 图标大小
|
|
77
|
+
@btn-icon-large-font-size: var(~'@{button-custom-prefix}-icon-font-size-large', 18px); // 大号 图标大小
|
|
78
|
+
|
|
65
79
|
// motion
|
|
66
80
|
@btn-transition-fn: var(~'@{button-custom-prefix}-motion-timing-function', cubic-bezier(0.075, 0.82, 0.165, 1));
|
|
67
81
|
@btn-duration-fade: var(~'@{button-custom-prefix}-motion-duration-fade', @duration-slowly);
|
|
68
82
|
@btn-duration-wave: var(~'@{button-custom-prefix}-motion-duration-wave', @duration-quickly);
|
|
69
83
|
|
|
70
|
-
|
|
71
|
-
|
|
72
84
|
// radius
|
|
73
85
|
@btn-g-radius-border: var(~'@{button-custom-prefix}-radius-border', @radius-border); //圆角
|
|
74
86
|
|
|
@@ -80,6 +92,8 @@
|
|
|
80
92
|
@btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
|
|
81
93
|
@btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
|
|
82
94
|
@btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
|
|
95
|
+
@btn-group-dropdown-item-height: var(~'@{button-custom-prefix}--group-dropdown-item-height', 30px);
|
|
96
|
+
@btn-group-dropdown-min-width: var(~'@{button-custom-prefix}-group-dropdown-min-width', 80px);
|
|
83
97
|
|
|
84
98
|
// spacing
|
|
85
99
|
@btn-small-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-small', 3px); // 小号 内间距 纵向
|
|
@@ -87,4 +101,6 @@
|
|
|
87
101
|
@btn-middle-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-middle', 5px); // 中号 内间距 纵向
|
|
88
102
|
@btn-middle-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-middle', 8px); // 中号 内间距 纵向 宽度配置
|
|
89
103
|
@btn-large-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-large', 6px); // 大号 内间距 纵向
|
|
90
|
-
@btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
|
|
104
|
+
@btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
|
|
105
|
+
@btn-group-dropdown-item-horizontal: var(~'@{button-custom-prefix}-group-dropdown-item-horizonta', 12px);
|
|
106
|
+
@btn-icon-padding-horizontal: var(~'@{button-custom-prefix}-icon-spacing-padding-horizontal', 4px);
|
package/es/carousel/carousel.js
CHANGED
|
@@ -155,6 +155,10 @@ var InternalCarousel = function InternalCarousel(props, ref) {
|
|
|
155
155
|
if (autoplay) {
|
|
156
156
|
play();
|
|
157
157
|
}
|
|
158
|
+
|
|
159
|
+
return function () {
|
|
160
|
+
autoplayRef.current && clearTimeout(autoplayRef.current);
|
|
161
|
+
};
|
|
158
162
|
}, [currentIndex, autoplay, intervalTime, play]);
|
|
159
163
|
|
|
160
164
|
var showDot = function showDot() {
|