kui-vue 3.2.4 → 3.2.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/components/_tool/utils.js +2 -2
- package/components/alert/styles/index.less +19 -19
- package/components/avatar/styles/index.less +3 -3
- package/components/backtop/styles/index.less +2 -2
- package/components/badge/demo/dot.md +1 -1
- package/components/badge/demo/dynamic.md +1 -1
- package/components/badge/demo/max.md +1 -1
- package/components/badge/styles/index.less +21 -21
- package/components/base/input.jsx +16 -10
- package/components/breadcrumb/styles/index.less +4 -4
- package/components/button/button.jsx +14 -8
- package/components/button/buttonGroup.jsx +6 -6
- package/components/button/demo/base.md +2 -1
- package/components/button/demo/disabled.md +14 -16
- package/components/button/demo/group.md +2 -2
- package/components/button/demo/index.vue +6 -2
- package/components/button/demo/light.md +26 -0
- package/components/button/demo/loading.md +1 -1
- package/components/button/demo/normal.md +25 -0
- package/components/button/demo/size.md +2 -2
- package/components/button/demo/solid.md +16 -0
- package/components/button/demo/with-icon.md +4 -3
- package/components/button/index.md +3 -3
- package/components/button/styles/index.less +106 -45
- package/components/card/demo/base.md +1 -1
- package/components/card/demo/border.md +2 -2
- package/components/card/styles/index.less +6 -6
- package/components/carousel/styles/index.less +1 -1
- package/components/checkbox/demo/group-vertical.md +47 -0
- package/components/checkbox/demo/index.vue +4 -0
- package/components/checkbox/demo/options.md +46 -0
- package/components/checkbox/group.jsx +9 -3
- package/components/checkbox/index.md +8 -7
- package/components/checkbox/styles/index.less +30 -20
- package/components/collapse/styles/index.less +10 -10
- package/components/colorPicker/styles/index.less +14 -14
- package/components/datePicker/datepicker.jsx +11 -3
- package/components/datePicker/demo/index.vue +2 -0
- package/components/datePicker/demo/theme.md +34 -0
- package/components/datePicker/index.md +4 -1
- package/components/datePicker/styles/calendar.less +39 -38
- package/components/datePicker/styles/datepicker.less +37 -20
- package/components/divider/styles/index.less +6 -6
- package/components/drawer/styles/index.less +12 -10
- package/components/dropdown/demo/base.md +4 -4
- package/components/dropdown/demo/cascading.md +3 -3
- package/components/dropdown/demo/divider.md +3 -3
- package/components/dropdown/styles/index.less +4 -4
- package/components/empty/styles/index.less +2 -2
- package/components/form/demo/base.md +25 -2
- package/components/form/demo/index.vue +1 -1
- package/components/form/demo/valid.md +9 -0
- package/components/form/form.jsx +2 -0
- package/components/form/formitem.jsx +18 -10
- package/components/form/styles/index.less +17 -13
- package/components/grid/styles/index.less +1 -1
- package/components/icon/demo/base.md +4 -4
- package/components/icon/demo/search.vue +6 -9
- package/components/image/styles/index.less +18 -18
- package/components/index.js +3 -1
- package/components/input/demo/index.vue +3 -1
- package/components/input/demo/theme.md +39 -0
- package/components/input/index.md +9 -6
- package/components/input/input.jsx +10 -3
- package/components/input/styles/index.less +120 -78
- package/components/input/textarea.jsx +1 -0
- package/components/layout/demo/base.md +5 -3
- package/components/layout/demo/index.vue +0 -2
- package/components/layout/demo/info.md +0 -2
- package/components/layout/demo/layout1.md +40 -47
- package/components/layout/demo/layout2.md +42 -49
- package/components/layout/demo/layout3.md +44 -22
- package/components/layout/demo/layout4.md +19 -18
- package/components/layout/demo/layout5.md +47 -44
- package/components/layout/styles/index.less +1 -6
- package/components/loading/styles/index.less +4 -4
- package/components/menu/demo/accrodion.md +2 -2
- package/components/menu/demo/base.md +5 -13
- package/components/menu/demo/collapsed.md +2 -2
- package/components/menu/demo/index.vue +0 -2
- package/components/menu/demo/inline.md +6 -10
- package/components/menu/demo/mode.md +2 -2
- package/components/menu/demo/theme.md +2 -2
- package/components/menu/demo/vertical.md +2 -2
- package/components/menu/index.md +0 -3
- package/components/menu/menu.jsx +4 -4
- package/components/menu/menuitem.jsx +1 -13
- package/components/menu/styles/dropmenu.less +28 -20
- package/components/menu/styles/index.less +148 -251
- package/components/menu/submenu.jsx +4 -64
- package/components/message/group.jsx +1 -1
- package/components/message/styles/index.less +13 -8
- package/components/modal/demo/base.md +15 -2
- package/components/modal/demo/custom.md +2 -2
- package/components/modal/demo/more.md +6 -6
- package/components/modal/modal.jsx +11 -5
- package/components/modal/styles/index.less +24 -17
- package/components/notice/styles/index.less +14 -13
- package/components/page/styles/index.less +16 -16
- package/components/popconfirm/styles/index.less +6 -6
- package/components/poptip/styles/index.less +10 -9
- package/components/progress/styles/index.less +13 -13
- package/components/radio/button.jsx +2 -2
- package/components/radio/demo/button.md +3 -3
- package/components/radio/demo/group-vertical.md +46 -0
- package/components/radio/demo/index.vue +4 -0
- package/components/radio/demo/options.md +43 -0
- package/components/radio/group.jsx +14 -8
- package/components/radio/index.md +11 -9
- package/components/radio/styles/index.less +33 -22
- package/components/rate/styles/index.less +2 -2
- package/components/select/demo/icon.md +40 -0
- package/components/select/demo/index.vue +4 -0
- package/components/select/demo/size.md +5 -5
- package/components/select/demo/theme.md +46 -0
- package/components/select/index.md +5 -2
- package/components/select/select.jsx +20 -13
- package/components/select/styles/index.less +113 -49
- package/components/slider/slider.jsx +9 -4
- package/components/slider/styles/index.less +7 -7
- package/components/space/demo/align.md +1 -1
- package/components/spin/styles/index.less +7 -11
- package/components/steps/styles/index.less +11 -11
- package/components/styles/color.less +158 -0
- package/components/styles/index.less +3 -1
- package/components/styles/sys.less +34 -0
- package/components/styles/var.less +150 -0
- package/components/switch/styles/index.less +11 -11
- package/components/table/styles/index.less +29 -32
- package/components/tabs/styles/index.less +20 -19
- package/components/tag/styles/index.less +45 -45
- package/components/timeline/styles/index.less +5 -5
- package/components/tooltip/styles/index.less +19 -18
- package/components/tree/styles/index.less +15 -15
- package/components/treeselect/styles/index.less +5 -5
- package/components/upload/demo/accept.md +68 -0
- package/components/upload/demo/avatar.md +40 -0
- package/components/upload/demo/base.md +40 -0
- package/components/upload/demo/custom.md +47 -0
- package/components/upload/demo/directory.md +36 -0
- package/components/upload/demo/drag.md +0 -0
- package/components/upload/demo/draggable.md +45 -0
- package/components/upload/demo/exceed.md +42 -0
- package/components/upload/demo/file-list.md +42 -0
- package/components/upload/demo/form.md +120 -0
- package/components/upload/demo/index.vue +37 -0
- package/components/upload/demo/info.md +10 -0
- package/components/upload/demo/picture.md +54 -0
- package/components/upload/index.md +26 -0
- package/components/upload/styles/index.less +258 -0
- package/components/upload/upload.jsx +336 -0
- package/dist/k-ui.css +1 -1
- package/dist/k-ui.js +2 -2
- package/package.json +9 -4
- package/components/button/demo/hollow.md +0 -15
- package/components/layout/demo/layout6.md +0 -142
- package/components/menu/demo/vertical-affix.md +0 -69
- package/components/styles/dark.less +0 -70
- package/components/styles/global-dark.less +0 -36
- package/components/styles/global.less +0 -44
- package/components/upload/upload.vue +0 -137
- package/dist/k-ui-dark.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-select {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
width: 100%;
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
min-width: 80px;
|
|
7
7
|
box-sizing: border-box;
|
|
8
8
|
vertical-align: middle;
|
|
9
|
-
color:
|
|
9
|
+
color: var(--kui-color-font);
|
|
10
10
|
font-size: 12px;
|
|
11
11
|
position: relative;
|
|
12
12
|
outline: none;
|
|
13
13
|
box-sizing: border-box;
|
|
14
14
|
&:focus {
|
|
15
15
|
.k-select-selection {
|
|
16
|
-
border: 1px solid
|
|
17
|
-
box-shadow: 0 0 5px
|
|
16
|
+
border: 1px solid var(--kui-color-border);
|
|
17
|
+
box-shadow: 0 0 5px var(--kui-color-main-30);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
&-selection {
|
|
21
|
-
border-radius:
|
|
21
|
+
border-radius: var(--kui-border-radius);
|
|
22
22
|
box-sizing: border-box;
|
|
23
23
|
outline: 0;
|
|
24
24
|
-webkit-user-select: none;
|
|
@@ -27,10 +27,20 @@
|
|
|
27
27
|
user-select: none;
|
|
28
28
|
cursor: pointer;
|
|
29
29
|
position: relative;
|
|
30
|
-
border: 1px solid
|
|
30
|
+
border: 1px solid var(--kui-color-border);
|
|
31
31
|
min-height: 32px;
|
|
32
32
|
position: relative;
|
|
33
33
|
transition: all .25s ease-in-out;
|
|
34
|
+
display: inline-flex;
|
|
35
|
+
align-items: center;
|
|
36
|
+
width: 100%;
|
|
37
|
+
height: 100%;
|
|
38
|
+
box-sizing: border-box;
|
|
39
|
+
}
|
|
40
|
+
.k-select-icon {
|
|
41
|
+
margin-left: 8px;
|
|
42
|
+
font-size: 16px;
|
|
43
|
+
color: var(--kui-color-icon);
|
|
34
44
|
}
|
|
35
45
|
&-search-wrap {
|
|
36
46
|
position: absolute;
|
|
@@ -38,6 +48,7 @@
|
|
|
38
48
|
z-index: 1;
|
|
39
49
|
top: 50%;
|
|
40
50
|
background: none;
|
|
51
|
+
margin-left: 9px;
|
|
41
52
|
transform: translateY(-50%);
|
|
42
53
|
.k-select-search {
|
|
43
54
|
// border: 1px solid #eee;
|
|
@@ -48,8 +59,8 @@
|
|
|
48
59
|
padding: 0;
|
|
49
60
|
background: none;
|
|
50
61
|
outline: none;
|
|
51
|
-
font-size:
|
|
52
|
-
color:
|
|
62
|
+
font-size: 14px;
|
|
63
|
+
color: var(--kui-color-font);
|
|
53
64
|
}
|
|
54
65
|
}
|
|
55
66
|
&-labels {
|
|
@@ -57,8 +68,8 @@
|
|
|
57
68
|
transition: all .25s ease-in-out;
|
|
58
69
|
.k-select-tag {
|
|
59
70
|
padding: 2px 22px 2px 5px;
|
|
60
|
-
border: 1px solid
|
|
61
|
-
border-radius:
|
|
71
|
+
border: 1px solid var(--kui-color-border);
|
|
72
|
+
border-radius: var(--kui-border-radius);
|
|
62
73
|
margin: 3px 5px 3px 0;
|
|
63
74
|
display: inline-block;
|
|
64
75
|
font-size: 12px;
|
|
@@ -74,7 +85,7 @@
|
|
|
74
85
|
top: 50%;
|
|
75
86
|
transform: translateY(-50%);
|
|
76
87
|
&:hover {
|
|
77
|
-
color:
|
|
88
|
+
color: var(--kui-color-danger);
|
|
78
89
|
}
|
|
79
90
|
}
|
|
80
91
|
}
|
|
@@ -85,6 +96,7 @@
|
|
|
85
96
|
padding: 3px 0;
|
|
86
97
|
left: 0;
|
|
87
98
|
top: 0;
|
|
99
|
+
margin: 0;
|
|
88
100
|
vertical-align: middle;
|
|
89
101
|
// .k-select-search {
|
|
90
102
|
// // border: none;
|
|
@@ -115,7 +127,7 @@
|
|
|
115
127
|
padding-right: 30px;
|
|
116
128
|
overflow: hidden;
|
|
117
129
|
text-overflow: ellipsis;
|
|
118
|
-
color:
|
|
130
|
+
color: var(--kui-color-disable-color);
|
|
119
131
|
top: 50%;
|
|
120
132
|
transform: translateY(-50%);
|
|
121
133
|
white-space: nowrap;
|
|
@@ -129,12 +141,12 @@
|
|
|
129
141
|
/* .k-select-placeholder, */
|
|
130
142
|
&-label {
|
|
131
143
|
display: block;
|
|
132
|
-
height: 30px;
|
|
133
|
-
line-height: 30px;
|
|
144
|
+
// height: 30px;
|
|
145
|
+
// line-height: 30px;
|
|
134
146
|
overflow: hidden;
|
|
135
147
|
text-overflow: ellipsis;
|
|
136
148
|
white-space: nowrap;
|
|
137
|
-
padding-top: -1px;
|
|
149
|
+
// padding-top: -1px;
|
|
138
150
|
padding-left: 8px;
|
|
139
151
|
padding-right: 32px;
|
|
140
152
|
border: none;
|
|
@@ -156,7 +168,7 @@
|
|
|
156
168
|
transform-origin: center;
|
|
157
169
|
transition: transform .3s ease-in-out;
|
|
158
170
|
transition: all .25s ease-in-out;
|
|
159
|
-
color:
|
|
171
|
+
color: var(--kui-color-icon);
|
|
160
172
|
}
|
|
161
173
|
&-clearable {
|
|
162
174
|
position: absolute;
|
|
@@ -165,25 +177,71 @@
|
|
|
165
177
|
transform: translateY(-50%);
|
|
166
178
|
display: none;
|
|
167
179
|
font-size: 15px;
|
|
168
|
-
color:
|
|
180
|
+
color: var(--kui-color-icon);
|
|
169
181
|
&:hover {
|
|
170
|
-
color:
|
|
182
|
+
color: var(--kui-color-font);
|
|
171
183
|
}
|
|
172
184
|
}
|
|
173
185
|
&:hover, &:focus {
|
|
174
186
|
.k-select-selection {
|
|
175
|
-
border-color:
|
|
187
|
+
border-color: var(--kui-color-main);
|
|
176
188
|
}
|
|
177
189
|
}
|
|
190
|
+
.k-select-placeholder {
|
|
191
|
+
font-size: 14px;
|
|
192
|
+
line-height: 1;
|
|
193
|
+
}
|
|
194
|
+
.k-select-label {
|
|
195
|
+
font-size: 14px;
|
|
196
|
+
}
|
|
197
|
+
.k-select-search-mirror, .k-select-search {
|
|
198
|
+
font-size: 14px;
|
|
199
|
+
color: var(--kui-color-font);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.k-select-has-icon {
|
|
204
|
+
.k-select-placeholder {
|
|
205
|
+
left: 20px;
|
|
206
|
+
}
|
|
207
|
+
.k-select-selection >.k-select-search-wrap {
|
|
208
|
+
left: 20px;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
.k-select-light {
|
|
213
|
+
.k-select-selection {
|
|
214
|
+
border-color: transparent;
|
|
215
|
+
background: var(--kui-color-gray-80);
|
|
216
|
+
border-radius: var(--kui-border-radius);
|
|
217
|
+
&:focus, &:hover {
|
|
218
|
+
box-shadow: none;
|
|
219
|
+
border-color: transparent;
|
|
220
|
+
}
|
|
221
|
+
.k-select-tag {
|
|
222
|
+
background-color: var(--kui-color-gray-80);
|
|
223
|
+
border-color: transparent;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
&:focus .k-select-selection {
|
|
227
|
+
box-shadow: none;
|
|
228
|
+
border-color: transparent;
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.k-select-circle {
|
|
233
|
+
.k-select-selection {
|
|
234
|
+
border-radius: 30px;
|
|
235
|
+
}
|
|
178
236
|
}
|
|
179
237
|
|
|
180
238
|
.k-select-dropdown {
|
|
181
239
|
user-select: none;
|
|
182
|
-
border-radius:
|
|
240
|
+
border-radius: var(--kui-border-radius);
|
|
183
241
|
width: inherit;
|
|
184
242
|
max-height: 200px;
|
|
185
243
|
overflow: auto;
|
|
186
|
-
background-color:
|
|
244
|
+
background-color: var(--kui-color-control-10);
|
|
187
245
|
box-sizing: border-box;
|
|
188
246
|
box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
|
|
189
247
|
position: absolute;
|
|
@@ -196,7 +254,7 @@
|
|
|
196
254
|
}
|
|
197
255
|
.k-select-loading {
|
|
198
256
|
padding: 10px;
|
|
199
|
-
font-size:
|
|
257
|
+
font-size: 14px;
|
|
200
258
|
.k-icon {
|
|
201
259
|
font-size: 14px;
|
|
202
260
|
}
|
|
@@ -207,10 +265,10 @@
|
|
|
207
265
|
.k-select-item {
|
|
208
266
|
margin: 0;
|
|
209
267
|
line-height: normal;
|
|
210
|
-
padding:
|
|
268
|
+
padding: 10px 16px;
|
|
211
269
|
clear: both;
|
|
212
|
-
color:
|
|
213
|
-
font-size:
|
|
270
|
+
color: var(--kui-color-font);
|
|
271
|
+
font-size: 14px;
|
|
214
272
|
white-space: nowrap;
|
|
215
273
|
list-style: none;
|
|
216
274
|
width: 100%;
|
|
@@ -220,7 +278,7 @@
|
|
|
220
278
|
cursor: pointer;
|
|
221
279
|
position: relative;
|
|
222
280
|
&:hover {
|
|
223
|
-
background:
|
|
281
|
+
background: var(--kui-color-hover);
|
|
224
282
|
}
|
|
225
283
|
.k-icon {
|
|
226
284
|
position: absolute;
|
|
@@ -230,27 +288,27 @@
|
|
|
230
288
|
top: 50%;
|
|
231
289
|
transform: translateY(-50%);
|
|
232
290
|
display: none;
|
|
233
|
-
color:
|
|
291
|
+
color: var(--kui-color-icon);
|
|
234
292
|
}
|
|
235
293
|
&:hover .k-icon, .k-icon {
|
|
236
294
|
display: block;
|
|
237
295
|
}
|
|
238
296
|
}
|
|
239
297
|
.k-select-item-selected {
|
|
240
|
-
background:
|
|
241
|
-
color:
|
|
298
|
+
background: var(--kui-color-selected);
|
|
299
|
+
color: var(--kui-color-main);
|
|
242
300
|
font-weight: 500;
|
|
243
301
|
&:hover {
|
|
244
|
-
background:
|
|
302
|
+
background: var(--kui-color-selected);
|
|
245
303
|
}
|
|
246
304
|
.k-icon {
|
|
247
|
-
color:
|
|
305
|
+
color: var(--kui-color-main);
|
|
248
306
|
display: block;
|
|
249
307
|
}
|
|
250
308
|
}
|
|
251
309
|
.k-select-item-disabled {
|
|
252
|
-
background:
|
|
253
|
-
color:
|
|
310
|
+
background: var(--kui-color-disable-back);
|
|
311
|
+
color: var(--kui-color-disable-color);
|
|
254
312
|
cursor: not-allowed;
|
|
255
313
|
}
|
|
256
314
|
// &:hover{
|
|
@@ -259,7 +317,7 @@
|
|
|
259
317
|
// &::-webkit-scrollbar {
|
|
260
318
|
// width: 8px;
|
|
261
319
|
// height: 8px;
|
|
262
|
-
// border-left: 1px solid
|
|
320
|
+
// border-left: 1px solid var(--kui-color-border);
|
|
263
321
|
// padding: 0 2px;
|
|
264
322
|
// background: rgba(211, 211, 211, 0.568);
|
|
265
323
|
// }
|
|
@@ -276,6 +334,9 @@
|
|
|
276
334
|
}
|
|
277
335
|
|
|
278
336
|
.k-select-sm {
|
|
337
|
+
.k-select-icon {
|
|
338
|
+
font-size: 14px;
|
|
339
|
+
}
|
|
279
340
|
.k-select-selection {
|
|
280
341
|
min-height: 25px;
|
|
281
342
|
}
|
|
@@ -299,6 +360,7 @@
|
|
|
299
360
|
.k-select-search-wrap {
|
|
300
361
|
.k-select-search {
|
|
301
362
|
height: 18px;
|
|
363
|
+
font-size: 12px;
|
|
302
364
|
}
|
|
303
365
|
}
|
|
304
366
|
.k-select-labels {
|
|
@@ -314,6 +376,7 @@
|
|
|
314
376
|
.k-select-search-wrap {
|
|
315
377
|
padding: 2px 0;
|
|
316
378
|
.k-select-search {
|
|
379
|
+
font-size: 12px;
|
|
317
380
|
height: 18px;
|
|
318
381
|
line-height: 18px;
|
|
319
382
|
left: 0;
|
|
@@ -321,12 +384,13 @@
|
|
|
321
384
|
}
|
|
322
385
|
}
|
|
323
386
|
}
|
|
387
|
+
.k-select-search-mirror, .k-select-search {
|
|
388
|
+
font-size: 12px;
|
|
389
|
+
color: var(--kui-color-font);
|
|
390
|
+
}
|
|
324
391
|
}
|
|
325
392
|
|
|
326
393
|
.k-select-lg {
|
|
327
|
-
.k-select-placeholder {
|
|
328
|
-
font-size: 14px;
|
|
329
|
-
}
|
|
330
394
|
.k-select-selection {
|
|
331
395
|
font-size: 14px;
|
|
332
396
|
min-height: 40px;
|
|
@@ -349,10 +413,6 @@
|
|
|
349
413
|
.k-select-search {
|
|
350
414
|
height: 28px;
|
|
351
415
|
}
|
|
352
|
-
.k-select-search-mirror, .k-select-search {
|
|
353
|
-
font-size: 14px;
|
|
354
|
-
color: @color;
|
|
355
|
-
}
|
|
356
416
|
}
|
|
357
417
|
.k-select-labels {
|
|
358
418
|
padding: 0 32px 0 6px;
|
|
@@ -380,30 +440,34 @@
|
|
|
380
440
|
|
|
381
441
|
.k-select-open {
|
|
382
442
|
.k-select-selection {
|
|
383
|
-
border-color:
|
|
443
|
+
border-color: var(--kui-color-main); // border-color: #3bb4f2;
|
|
384
444
|
// box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
|
|
385
|
-
box-shadow: 0 0 5px
|
|
445
|
+
box-shadow: 0 0 5px var(--kui-color-main-30);
|
|
386
446
|
}
|
|
387
|
-
.k-select-arrow {
|
|
388
|
-
|
|
447
|
+
// .k-select-arrow {
|
|
448
|
+
// transform: translateY(-50%) rotate(180deg);
|
|
449
|
+
// }
|
|
450
|
+
&.k-select-light .k-select-selection {
|
|
451
|
+
box-shadow: none;
|
|
452
|
+
border-color: transparent;
|
|
389
453
|
}
|
|
390
454
|
}
|
|
391
455
|
|
|
392
456
|
.k-select-disabled {
|
|
393
|
-
color:
|
|
457
|
+
color: var(--kui-color-disable-color);
|
|
394
458
|
.k-select-label {
|
|
395
459
|
cursor: not-allowed;
|
|
396
460
|
}
|
|
397
461
|
.k-select-selection {
|
|
398
|
-
background:
|
|
462
|
+
background: var(--kui-color-disable-back);
|
|
399
463
|
cursor: not-allowed;
|
|
400
464
|
}
|
|
401
465
|
.k-select-arrow {
|
|
402
|
-
color:
|
|
466
|
+
color: var(--kui-color-disable-border);
|
|
403
467
|
}
|
|
404
468
|
&:hover, &:focus {
|
|
405
469
|
.k-select-selection {
|
|
406
|
-
border-color:
|
|
470
|
+
border-color: var(--kui-color-disable-border);
|
|
407
471
|
box-shadow: none;
|
|
408
472
|
}
|
|
409
473
|
}
|
|
@@ -9,13 +9,18 @@ export default {
|
|
|
9
9
|
default: 1,
|
|
10
10
|
validator: (val) => val > 0
|
|
11
11
|
},
|
|
12
|
-
direction: {
|
|
12
|
+
direction: {
|
|
13
13
|
//todo:
|
|
14
14
|
type: String,
|
|
15
15
|
default: 'horizontal',
|
|
16
16
|
validator: (val) => ['horizontal', 'vertical'].indexOf(val) >= 0
|
|
17
17
|
}
|
|
18
18
|
},
|
|
19
|
+
watch: {
|
|
20
|
+
value(v) {
|
|
21
|
+
this.defaultValue = v || this.min
|
|
22
|
+
}
|
|
23
|
+
},
|
|
19
24
|
data() {
|
|
20
25
|
return {
|
|
21
26
|
defaultValue: this.value || 0,
|
|
@@ -35,17 +40,17 @@ export default {
|
|
|
35
40
|
}
|
|
36
41
|
},
|
|
37
42
|
render() {
|
|
38
|
-
let { min, max, step, disabled, direction } = this
|
|
43
|
+
let { min, max, step, disabled, direction, defaultValue, groupContext } = this
|
|
39
44
|
let props = {
|
|
40
45
|
class: 'k-slider-bar',
|
|
41
46
|
attrs: {
|
|
42
47
|
min, max, step,
|
|
43
|
-
value:
|
|
48
|
+
value: defaultValue,
|
|
44
49
|
type: 'range',
|
|
45
50
|
disabled,
|
|
46
51
|
},
|
|
47
52
|
style: {
|
|
48
|
-
'background': `linear-gradient(to right, #3a95ff ${(
|
|
53
|
+
'background': `linear-gradient(to right, #3a95ff ${(defaultValue - min) / (max - min) * 100}%, rgba(255, 255, 255, 0.3) 0%)`
|
|
49
54
|
},
|
|
50
55
|
on: {
|
|
51
56
|
input: this.change
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-slider {
|
|
3
3
|
width: 100%;
|
|
4
4
|
display: inline-block;
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
position: absolute;
|
|
11
11
|
height: 4px;
|
|
12
12
|
border-radius: 2px;
|
|
13
|
-
background:
|
|
13
|
+
background: var(--kui-color-border);
|
|
14
14
|
top: 4px;
|
|
15
15
|
width: 100%;
|
|
16
16
|
left: 0;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
height: 4px;
|
|
29
29
|
border-radius: 3px;
|
|
30
30
|
// box-shadow: 0 1px 1px #def3f8, inset 0 .125em .125em #0d1112;
|
|
31
|
-
// background:
|
|
31
|
+
// background: var(--kui-color-border);
|
|
32
32
|
border-radius: 2px;
|
|
33
33
|
}
|
|
34
34
|
//滑块
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
height: 12px;
|
|
38
38
|
width: 12px;
|
|
39
39
|
margin-top: -4px;
|
|
40
|
-
// background:
|
|
40
|
+
// background: var(--kui-color-main);
|
|
41
41
|
border-radius: 50%;
|
|
42
|
-
border: 2px solid
|
|
43
|
-
background-color:
|
|
42
|
+
border: 2px solid var(--kui-color-main);
|
|
43
|
+
background-color: var(--kui-color-back);
|
|
44
44
|
|
|
45
45
|
cursor: pointer;
|
|
46
46
|
}
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
}
|
|
50
50
|
&:focus {
|
|
51
51
|
&::-webkit-slider-thumb {
|
|
52
|
-
box-shadow: 0 0 0px 5px
|
|
52
|
+
box-shadow: 0 0 0px 5px var(--kui-color-main-60);
|
|
53
53
|
}
|
|
54
54
|
}
|
|
55
55
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
@import '../../styles/
|
|
2
|
-
@spinColor: fadeout(@back-color,30%);
|
|
1
|
+
@import '../../styles/var.less';
|
|
3
2
|
.k-spin {
|
|
4
3
|
// min-width: 50px;
|
|
5
4
|
// min-height: 50px;
|
|
6
5
|
display: inline-block;
|
|
7
6
|
position: relative;
|
|
8
7
|
&-loading {
|
|
8
|
+
background-color: var(--kui-color-spin);
|
|
9
9
|
position: absolute;
|
|
10
10
|
width: 100%;
|
|
11
11
|
height: 100%;
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
top: 0;
|
|
15
15
|
}
|
|
16
16
|
&-flip {
|
|
17
|
-
background-color: @spinColor;
|
|
18
17
|
&::after {
|
|
19
18
|
content: '';
|
|
20
19
|
width: 40px;
|
|
@@ -24,18 +23,17 @@
|
|
|
24
23
|
left: 50%;
|
|
25
24
|
margin-left: -20px;
|
|
26
25
|
margin-top: -20px;
|
|
27
|
-
background-color:
|
|
26
|
+
background-color: var(--kui-color-main);
|
|
28
27
|
animation: k-spin-animate-flip 3s 0s cubic-bezier(.09, .57, .49, .9) infinite;
|
|
29
28
|
}
|
|
30
29
|
}
|
|
31
30
|
&-bounce {
|
|
32
|
-
background-color: @spinColor;
|
|
33
31
|
&::before, &::after {
|
|
34
32
|
content: '';
|
|
35
33
|
width: 40px;
|
|
36
34
|
height: 40px;
|
|
37
35
|
border-radius: 50%;
|
|
38
|
-
background-color:
|
|
36
|
+
background-color: var(--kui-color-main);
|
|
39
37
|
opacity: 0.6;
|
|
40
38
|
position: absolute;
|
|
41
39
|
top: 50%;
|
|
@@ -49,13 +47,12 @@
|
|
|
49
47
|
}
|
|
50
48
|
}
|
|
51
49
|
&-zoom {
|
|
52
|
-
background-color: @spinColor;
|
|
53
50
|
&::before, &::after {
|
|
54
51
|
content: '';
|
|
55
52
|
width: 40px;
|
|
56
53
|
height: 40px;
|
|
57
54
|
border-radius: 50%;
|
|
58
|
-
background:
|
|
55
|
+
background: var(--kui-color-main);
|
|
59
56
|
opacity: 0.6;
|
|
60
57
|
position: absolute;
|
|
61
58
|
top: 50%;
|
|
@@ -70,9 +67,8 @@
|
|
|
70
67
|
}
|
|
71
68
|
}
|
|
72
69
|
&-rotate {
|
|
73
|
-
background-color: @spinColor;
|
|
74
70
|
&::before, &::after {
|
|
75
|
-
border: 5px solid
|
|
71
|
+
border: 5px solid var(--kui-color-main-90);
|
|
76
72
|
border-radius: 50%;
|
|
77
73
|
content: '';
|
|
78
74
|
width: 40px;
|
|
@@ -85,7 +81,7 @@
|
|
|
85
81
|
}
|
|
86
82
|
&::after {
|
|
87
83
|
border: 5px solid transparent;
|
|
88
|
-
border-top-color:
|
|
84
|
+
border-top-color: var(--kui-color-main);
|
|
89
85
|
animation: k-spin-animate-rotate .5s infinite linear;
|
|
90
86
|
box-sizing: content-box;
|
|
91
87
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-steps {
|
|
3
3
|
font-size: 0;
|
|
4
4
|
width: 100%;
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
top: 0;
|
|
29
29
|
content: '';
|
|
30
30
|
width: 0;
|
|
31
|
-
background:
|
|
31
|
+
background: var(--kui-color-main);
|
|
32
32
|
height: 1px;
|
|
33
33
|
transition: width .3s ease-in-out;
|
|
34
34
|
}
|
|
@@ -88,11 +88,11 @@
|
|
|
88
88
|
color: #666;
|
|
89
89
|
.k-step-icon {
|
|
90
90
|
&>i {
|
|
91
|
-
color:
|
|
91
|
+
color: var(--kui-color-main);
|
|
92
92
|
}
|
|
93
93
|
.k-step-icon-inner {
|
|
94
|
-
border-color:
|
|
95
|
-
background-color:
|
|
94
|
+
border-color: var(--kui-color-main);
|
|
95
|
+
background-color: var(--kui-color-main);
|
|
96
96
|
color: #fff;
|
|
97
97
|
}
|
|
98
98
|
}
|
|
@@ -100,10 +100,10 @@
|
|
|
100
100
|
.k-steps-finish {
|
|
101
101
|
// color: #666;
|
|
102
102
|
.k-step-icon {
|
|
103
|
-
color:
|
|
103
|
+
color: var(--kui-color-main);
|
|
104
104
|
font-weight: 500;
|
|
105
105
|
.k-step-icon-inner {
|
|
106
|
-
border-color:
|
|
106
|
+
border-color: var(--kui-color-main); // background-color: var(--kui-color-main);
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
.k-step-tail i {
|
|
@@ -113,11 +113,11 @@
|
|
|
113
113
|
}
|
|
114
114
|
}
|
|
115
115
|
.k-steps-error {
|
|
116
|
-
color:
|
|
116
|
+
color: var(--kui-color-danger);
|
|
117
117
|
.k-step-icon {
|
|
118
118
|
.k-step-icon-inner {
|
|
119
|
-
border-color:
|
|
120
|
-
color:
|
|
119
|
+
border-color: var(--kui-color-danger); // background-color: var(--kui-color-main);
|
|
120
|
+
color: var(--kui-color-danger);
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
123
|
}
|
|
@@ -156,7 +156,7 @@
|
|
|
156
156
|
top: 0;
|
|
157
157
|
height: 0;
|
|
158
158
|
content: '';
|
|
159
|
-
background:
|
|
159
|
+
background: var(--kui-color-main);
|
|
160
160
|
width: 1px;
|
|
161
161
|
transition: height .3s ease-in-out;
|
|
162
162
|
}
|