kui-vue 3.6.5 → 3.6.8
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/alert/alert.jsx +26 -7
- package/components/alert/demo/basic.md +4 -4
- package/components/alert/demo/icon.md +15 -6
- package/components/alert/styles/index.less +42 -14
- package/components/avatar/styles/index.less +5 -5
- package/components/backtop/styles/index.less +10 -14
- package/components/badge/styles/index.less +7 -13
- package/components/breadcrumb/index.md +7 -6
- package/components/breadcrumb/styles/index.less +7 -21
- package/components/button/demo/color.md +0 -1
- package/components/button/demo/disabled.md +6 -0
- package/components/button/demo/light.md +1 -1
- package/components/button/styles/index.less +165 -111
- package/components/card/card.jsx +1 -1
- package/components/card/demo/basic.md +1 -1
- package/components/card/demo/border.md +1 -1
- package/components/card/demo/notitle.md +1 -1
- package/components/card/styles/index.less +5 -4
- package/components/carousel/carousel.jsx +186 -175
- package/components/carousel/styles/index.less +11 -16
- package/components/checkbox/checkbox.jsx +2 -2
- package/components/checkbox/styles/index.less +21 -29
- package/components/collapse/styles/index.less +7 -11
- package/components/colorPicker/styles/index.less +83 -71
- package/components/config/context.js +21 -0
- package/components/config/index.js +10 -2
- package/components/datePicker/datepicker.jsx +6 -7
- package/components/datePicker/styles/index.less +54 -57
- package/components/descriptions/styles/index.less +8 -17
- package/components/divider/styles/index.less +20 -18
- package/components/drawer/styles/animal.less +0 -1
- package/components/drawer/styles/index.less +8 -11
- package/components/dropdown/styles/index.less +26 -34
- package/components/empty/index.md +3 -2
- package/components/empty/styles/index.less +2 -2
- package/components/flex/demo/align.md +1 -1
- package/components/flex/demo/basic.md +1 -2
- package/components/flex/index.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -3
- package/components/form/demo/info.md +22 -12
- package/components/form/demo/valid.md +6 -6
- package/components/form/demo/withmodal.md +2 -2
- package/components/form/styles/index.less +10 -11
- package/components/grid/index.md +4 -1
- package/components/grid/styles/index.less +1 -1
- package/components/icon/demo/search.vue +44 -21
- package/components/icon/index.md +1 -1
- package/components/icon/styles/index.less +7 -8
- package/components/image/index.md +7 -1
- package/components/image/preview.jsx +17 -4
- package/components/image/styles/index.less +36 -42
- package/components/index.js +9 -9
- package/components/input/demo/icon.md +0 -1
- package/components/input/demo/suffix.md +2 -7
- package/components/input/input.jsx +31 -29
- package/components/input/inputBox.jsx +13 -0
- package/components/input/inputGroup.jsx +2 -0
- package/components/input/styles/index.less +47 -53
- package/components/input/textarea.jsx +1 -1
- package/components/inputNumber/demo/basic.md +3 -3
- package/components/inputNumber/demo/ffix.md +2 -2
- package/components/inputNumber/inputNumber.jsx +2 -2
- package/components/inputNumber/styles/index.less +36 -42
- package/components/layout/demo/basic.md +5 -5
- package/components/layout/demo/info.md +1 -34
- package/components/layout/demo/layout1.md +7 -7
- package/components/layout/demo/layout2.md +6 -7
- package/components/layout/demo/layout3.md +5 -5
- package/components/layout/demo/layout4.md +12 -8
- package/components/layout/demo/layout5.md +6 -2
- package/components/layout/styles/index.less +1 -18
- package/components/loading/demo/info.md +3 -3
- package/components/loading/styles/index.less +31 -31
- package/components/menu/index.md +14 -3
- package/components/menu/menu.jsx +1 -1
- package/components/menu/recursiveMenu.jsx +1 -0
- package/components/menu/styles/index.less +43 -55
- package/components/message/demo/basic.md +0 -7
- package/components/message/index.js +0 -4
- package/components/message/index.md +0 -1
- package/components/message/inner.jsx +15 -2
- package/components/message/styles/index.less +12 -17
- package/components/modal/demo/confirm.md +6 -6
- package/components/modal/demo/global.md +0 -15
- package/components/modal/demo/info.md +0 -1
- package/components/modal/index.js +5 -34
- package/components/modal/index.md +1 -2
- package/components/modal/modal.jsx +2 -1
- package/components/modal/styles/index.less +14 -21
- package/components/notice/demo/basic.md +0 -9
- package/components/notice/demo/close.md +4 -0
- package/components/notice/demo/types.md +1 -2
- package/components/notice/index.js +1 -19
- package/components/notice/styles/index.less +16 -22
- package/components/page/page.jsx +5 -4
- package/components/page/styles/index.less +49 -50
- package/components/popconfirm/demo/basic.md +11 -18
- package/components/popconfirm/demo/info.md +3 -1
- package/components/popconfirm/demo/local.md +14 -20
- package/components/popconfirm/demo/placement.md +3 -9
- package/components/popconfirm/index.md +3 -2
- package/components/popconfirm/styles/index.less +9 -15
- package/components/poptip/styles/index.less +44 -49
- package/components/progress/progress.jsx +23 -5
- package/components/progress/styles/index.less +20 -19
- package/components/radio/index.md +7 -7
- package/components/radio/radio.jsx +5 -1
- package/components/radio/styles/index.less +26 -32
- package/components/rate/index.md +11 -11
- package/components/rate/styles/index.less +4 -7
- package/components/select/select.jsx +1 -1
- package/components/select/styles/index.less +38 -51
- package/components/skeleton/index.md +5 -1
- package/components/skeleton/styles/index.less +21 -19
- package/components/slider/slider.jsx +25 -13
- package/components/slider/styles/index.less +13 -12
- package/components/space/space.jsx +2 -1
- package/components/spin/styles/index.less +25 -40
- package/components/statCard/countup.jsx +8 -0
- package/components/statCard/demo/card.md +20 -6
- package/components/statCard/index.md +17 -12
- package/components/statCard/statCard.jsx +16 -1
- package/components/statCard/styles/index.less +9 -6
- package/components/styles/less-css-var.less +309 -0
- package/components/styles/less-var.less +296 -0
- package/components/styles/sys.less +19 -15
- package/components/switch/styles/index.less +9 -24
- package/components/table/index.md +1 -1
- package/components/table/styles/index.less +63 -59
- package/components/tabs/styles/index.less +22 -24
- package/components/tag/demo/basic.md +0 -8
- package/components/tag/index.md +2 -1
- package/components/tag/styles/index.less +40 -41
- package/components/tag/tag.jsx +2 -2
- package/components/timeline/styles/index.less +8 -14
- package/components/tooltip/styles/index.less +35 -40
- package/components/tree/index.md +15 -15
- package/components/tree/styles/index.less +36 -56
- package/components/tree/tree.jsx +1 -0
- package/components/treeselect/index.md +1 -1
- package/components/treeselect/styles/index.less +26 -32
- package/components/treeselect/treeselect.jsx +1 -1
- package/components/upload/demo/forms.md +0 -1
- package/components/upload/fileList.jsx +6 -3
- package/components/upload/styles/index.less +33 -29
- package/components/upload/upload.jsx +5 -1
- package/components/utils/vue.js +4 -2
- package/dist/k-ui.cjs.js +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.d.ts +92 -74
- package/dist/k-ui.esm.js +2 -2
- package/dist/k-ui.umd.js +2 -2
- package/dist/locale/de.js +1 -1
- package/dist/locale/el.js +1 -1
- package/dist/locale/en.js +1 -1
- package/dist/locale/fr.js +1 -1
- package/dist/locale/it.js +1 -1
- package/dist/locale/ja.js +1 -1
- package/dist/locale/ko.js +1 -1
- package/dist/locale/ru.js +1 -1
- package/dist/locale/th.js +1 -1
- package/dist/locale/ua.js +2 -2
- package/dist/locale/uk.js +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zh-CN.js +1 -1
- package/dist/locale/zh-TW.js +1 -1
- package/package.json +15 -16
- package/types/alert/Alert.d.ts +2 -0
- package/types/card/Card.d.ts +1 -1
- package/types/checkbox/Checkbox.d.ts +1 -0
- package/types/datePicker/DatePicker.d.ts +1 -0
- package/types/index.d.ts +8 -8
- package/types/input/Input.d.ts +1 -0
- package/types/input/InputGroup.d.ts +2 -0
- package/types/input/TextArea.d.ts +1 -0
- package/types/inputNumber/InputNumber.d.ts +1 -0
- package/types/page/Page.d.ts +1 -0
- package/types/select/Select.d.ts +1 -0
- package/types/statCard/StatCard.d.ts +5 -0
- package/types/tag/Tag.d.ts +1 -0
- package/types/treeselect/TreeSelect.d.ts +1 -0
- package/components/dropdown/demo/custom.md +0 -31
- package/components/icon/lib/dist.json +0 -1
- package/components/icon/lib/kui-icons.js +0 -1
- package/components/icon/lib/sprite.svg +0 -1
- package/components/styles/color.less +0 -209
- package/components/styles/var.less +0 -207
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
@import "../../styles/var.less";
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
|
-
.k-input[
|
|
3
|
+
.k-input[multiple] {
|
|
4
4
|
position: relative;
|
|
5
5
|
display: inline-flex;
|
|
6
6
|
width: 100%;
|
|
7
7
|
max-width: 100%;
|
|
8
8
|
min-width: 0;
|
|
9
|
-
color: var(--kui-color-
|
|
9
|
+
color: var(--kui-color-text);
|
|
10
10
|
// flex-shrink: 0;
|
|
11
11
|
align-items: center;
|
|
12
12
|
border: 1px solid var(--kui-color-border);
|
|
13
13
|
border-radius: var(--kui-border-radius);
|
|
14
|
-
background-color: var(--kui-color-
|
|
14
|
+
background-color: var(--kui-color-bg);
|
|
15
15
|
transition: border 0.2s ease-in-out;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
font-size: 14px;
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
overflow: hidden;
|
|
22
22
|
line-height: 1.571;
|
|
23
23
|
|
|
24
|
-
&:hover {
|
|
25
|
-
border-color: var(--kui-color-
|
|
24
|
+
&:not(.k-input-disabled, .k-input-light):hover {
|
|
25
|
+
border-color: var(--kui-color-primary);
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
.k-select {
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
cursor: pointer;
|
|
39
39
|
|
|
40
40
|
&:hover {
|
|
41
|
-
color: var(--kui-color-
|
|
41
|
+
color: var(--kui-color-primary);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -48,7 +48,7 @@
|
|
|
48
48
|
transition: font-size 0.2s ease-in-out;
|
|
49
49
|
|
|
50
50
|
&:hover {
|
|
51
|
-
color: var(--kui-color-title);
|
|
51
|
+
color: var(--kui-color-text-title);
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
line-height: 1;
|
|
60
60
|
padding: 0;
|
|
61
61
|
font-size: 14px;
|
|
62
|
-
color: var(--kui-color-
|
|
62
|
+
color: var(--kui-color-text);
|
|
63
63
|
background-color: transparent;
|
|
64
64
|
background-image: none;
|
|
65
65
|
box-sizing: border-box;
|
|
@@ -68,18 +68,18 @@
|
|
|
68
68
|
line-height: 1.571;
|
|
69
69
|
|
|
70
70
|
&:focus {
|
|
71
|
-
// border-color: var(--kui-color-
|
|
71
|
+
// border-color: var(--kui-color-primary);
|
|
72
72
|
outline: none;
|
|
73
73
|
z-index: 1;
|
|
74
74
|
}
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
&.k-input-focus {
|
|
78
|
-
border-color: var(--kui-color-
|
|
79
|
-
box-shadow:
|
|
78
|
+
border-color: var(--kui-color-primary);
|
|
79
|
+
box-shadow: var(--kui-component-shadow);
|
|
80
80
|
z-index: 1;
|
|
81
81
|
outline-offset: 1px;
|
|
82
|
-
outline: 2px solid var(--kui-color-
|
|
82
|
+
outline: 2px solid var(--kui-color-outline);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
85
|
.k-input-suffix,
|
|
@@ -88,12 +88,13 @@
|
|
|
88
88
|
white-space: nowrap;
|
|
89
89
|
line-height: 1;
|
|
90
90
|
// cursor: pointer;
|
|
91
|
+
-webkit-user-select: none;
|
|
91
92
|
user-select: none;
|
|
92
93
|
transition: font-size 0.2s ease-in-out;
|
|
93
94
|
display: flex;
|
|
94
95
|
|
|
95
96
|
&:hover {
|
|
96
|
-
color: var(--kui-color-
|
|
97
|
+
color: var(--kui-color-text);
|
|
97
98
|
}
|
|
98
99
|
|
|
99
100
|
.k-icon {
|
|
@@ -130,9 +131,9 @@
|
|
|
130
131
|
margin: 0;
|
|
131
132
|
border: 1px solid var(--kui-color-border);
|
|
132
133
|
border-radius: var(--kui-border-radius);
|
|
133
|
-
color: var(--kui-color-
|
|
134
|
+
color: var(--kui-color-text);
|
|
134
135
|
// background-color: transparent;
|
|
135
|
-
background-color: var(--kui-color-
|
|
136
|
+
background-color: var(--kui-color-bg);
|
|
136
137
|
background-image: none;
|
|
137
138
|
position: relative;
|
|
138
139
|
cursor: text;
|
|
@@ -141,27 +142,21 @@
|
|
|
141
142
|
line-height: 1.571;
|
|
142
143
|
|
|
143
144
|
&:focus {
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
border-color: var(--kui-color-main);
|
|
145
|
+
box-shadow: var(--kui-component-shadow);
|
|
146
|
+
border-color: var(--kui-color-primary);
|
|
147
147
|
outline: none;
|
|
148
148
|
outline-offset: 1px;
|
|
149
|
-
outline: 2px solid var(--kui-color-
|
|
149
|
+
outline: 2px solid var(--kui-color-outline);
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
&:hover {
|
|
153
|
-
border-color: var(--kui-color-
|
|
153
|
+
border-color: var(--kui-color-primary);
|
|
154
154
|
}
|
|
155
155
|
|
|
156
156
|
&:disabled {
|
|
157
157
|
cursor: not-allowed;
|
|
158
|
-
color: var(--kui-color-disabled);
|
|
159
|
-
background: var(--kui-color-
|
|
160
|
-
border-color: var(--kui-color-disable-border);
|
|
161
|
-
|
|
162
|
-
&:hover {
|
|
163
|
-
border-color: var(--kui-color-disable-border);
|
|
164
|
-
}
|
|
158
|
+
color: var(--kui-color-text-disabled);
|
|
159
|
+
background: var(--kui-color-bg-component-disabled);
|
|
165
160
|
}
|
|
166
161
|
|
|
167
162
|
// &:-webkit-autofill {
|
|
@@ -181,9 +176,9 @@ textarea:-webkit-autofill:focus,
|
|
|
181
176
|
select:-webkit-autofill,
|
|
182
177
|
select:-webkit-autofill:hover,
|
|
183
178
|
select:-webkit-autofill:focus {
|
|
184
|
-
// border:none;// 1px solid var(--kui-color-
|
|
185
|
-
-webkit-text-fill-color: var(--kui-color-
|
|
186
|
-
-webkit-box-shadow: 0 0 0px 1000px var(--kui-color-
|
|
179
|
+
// border:none;// 1px solid var(--kui-color-primary);
|
|
180
|
+
-webkit-text-fill-color: var(--kui-color-text);
|
|
181
|
+
-webkit-box-shadow: 0 0 0px 1000px var(--kui-color-bg) inset;
|
|
187
182
|
transition: background-color 5000s ease-in-out 0s;
|
|
188
183
|
}
|
|
189
184
|
|
|
@@ -198,21 +193,21 @@ select:-webkit-autofill:focus {
|
|
|
198
193
|
outline: none;
|
|
199
194
|
&:focus {
|
|
200
195
|
outline-offset: 1px;
|
|
201
|
-
outline: 2px solid var(--kui-color-
|
|
196
|
+
outline: 2px solid var(--kui-color-outline);
|
|
202
197
|
}
|
|
203
198
|
}
|
|
204
199
|
|
|
205
200
|
.k-input-clearable {
|
|
206
201
|
cursor: pointer;
|
|
207
202
|
font-size: 15px;
|
|
208
|
-
color: var(--kui-color-
|
|
209
|
-
position: absolute;
|
|
210
|
-
right: 8px;
|
|
211
|
-
background-color: var(--kui-color-back);
|
|
203
|
+
color: var(--kui-color-icon);
|
|
212
204
|
display: none;
|
|
213
205
|
z-index: 3;
|
|
214
206
|
&:hover {
|
|
215
|
-
color: var(--kui-color-
|
|
207
|
+
color: var(--kui-color-icon-hover);
|
|
208
|
+
}
|
|
209
|
+
&:active {
|
|
210
|
+
color: var(--kui-color-icon-active);
|
|
216
211
|
}
|
|
217
212
|
}
|
|
218
213
|
&.k-input-has-clear {
|
|
@@ -244,7 +239,7 @@ select:-webkit-autofill:focus {
|
|
|
244
239
|
font-size: 12px;
|
|
245
240
|
}
|
|
246
241
|
|
|
247
|
-
.k-input-sm[
|
|
242
|
+
.k-input-sm[multiple] {
|
|
248
243
|
padding: 0 var(--kui-padding-inline-sm);
|
|
249
244
|
gap: 4px;
|
|
250
245
|
height: 24px;
|
|
@@ -288,7 +283,7 @@ select:-webkit-autofill:focus {
|
|
|
288
283
|
font-size: 14px;
|
|
289
284
|
|
|
290
285
|
> [class^="k-"]:not(.k-icon) {
|
|
291
|
-
margin: 0 -1px;
|
|
286
|
+
// margin: 0 -1px 0 0;
|
|
292
287
|
}
|
|
293
288
|
}
|
|
294
289
|
|
|
@@ -308,7 +303,7 @@ select:-webkit-autofill:focus {
|
|
|
308
303
|
}
|
|
309
304
|
}
|
|
310
305
|
|
|
311
|
-
.k-input-lg[
|
|
306
|
+
.k-input-lg[multiple] {
|
|
312
307
|
height: 40px;
|
|
313
308
|
|
|
314
309
|
.k-input-text {
|
|
@@ -339,11 +334,11 @@ select:-webkit-autofill:focus {
|
|
|
339
334
|
display: none;
|
|
340
335
|
}
|
|
341
336
|
|
|
342
|
-
.k-input-light[
|
|
337
|
+
.k-input-light[multiple],
|
|
343
338
|
.k-input-light[single],
|
|
344
339
|
.k-textarea-light {
|
|
345
340
|
border-color: transparent;
|
|
346
|
-
background-color: var(--kui-color-
|
|
341
|
+
background-color: var(--kui-color-bg-component);
|
|
347
342
|
|
|
348
343
|
&:focus,
|
|
349
344
|
&:hover,
|
|
@@ -362,26 +357,19 @@ select:-webkit-autofill:focus {
|
|
|
362
357
|
border-radius: 20px;
|
|
363
358
|
}
|
|
364
359
|
|
|
365
|
-
.k-input-disabled[
|
|
360
|
+
.k-input-disabled[multiple] {
|
|
366
361
|
cursor: not-allowed;
|
|
367
|
-
color: var(--kui-color-disabled);
|
|
368
|
-
background: var(--kui-color-
|
|
369
|
-
border-color: var(--kui-color-disable-border);
|
|
370
|
-
|
|
371
|
-
&:hover {
|
|
372
|
-
border-color: var(--kui-color-disable-border);
|
|
373
|
-
}
|
|
362
|
+
color: var(--kui-color-text-disabled);
|
|
363
|
+
background: var(--kui-color-bg-component-disabled);
|
|
374
364
|
|
|
375
365
|
& * {
|
|
376
366
|
cursor: not-allowed;
|
|
377
367
|
}
|
|
378
368
|
}
|
|
379
|
-
|
|
380
369
|
.k-input-group-suffix,
|
|
381
370
|
.k-input-group-prefix {
|
|
382
|
-
border: 1px solid var(--kui-color-border);
|
|
383
371
|
display: flex;
|
|
384
|
-
border-radius:
|
|
372
|
+
border-radius: var(--kui-border-radius);
|
|
385
373
|
flex: 1;
|
|
386
374
|
height: 32px;
|
|
387
375
|
line-height: 1;
|
|
@@ -394,6 +382,12 @@ select:-webkit-autofill:focus {
|
|
|
394
382
|
margin: 0 8px;
|
|
395
383
|
}
|
|
396
384
|
}
|
|
385
|
+
.k-input-group:not(.k-input-group-light) {
|
|
386
|
+
.k-input-group-suffix,
|
|
387
|
+
.k-input-group-prefix {
|
|
388
|
+
border: 1px solid var(--kui-color-border);
|
|
389
|
+
}
|
|
390
|
+
}
|
|
397
391
|
|
|
398
392
|
.k-input-group-compact {
|
|
399
393
|
width: 100%;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
```vue
|
|
7
7
|
<template>
|
|
8
8
|
<Space style="font-size:12px;max-width:200px" block vertical>
|
|
9
|
-
<code>v-model: {{value}}</code>
|
|
9
|
+
<code>v-model: {{ value }}</code>
|
|
10
10
|
<InputNumber v-model="value" />
|
|
11
11
|
|
|
12
12
|
<code>readonly</code>
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
<InputNumber v-model="value" disabled />
|
|
16
16
|
<code>group</code>
|
|
17
17
|
<InputGroup>
|
|
18
|
-
<Button @click="value -= 1"
|
|
18
|
+
<Button @click="value -= 1">-</Button>
|
|
19
19
|
<InputNumber v-model="value" :controls="false" />
|
|
20
|
-
<Button @click="value += 1"
|
|
20
|
+
<Button @click="value += 1">+</Button>
|
|
21
21
|
</InputGroup>
|
|
22
22
|
</Space>
|
|
23
23
|
</template>
|
|
@@ -20,13 +20,13 @@ suffix,prefix 扩展
|
|
|
20
20
|
<InputNumber placeholder="请填写您的薪资" :icon="LogoYen">
|
|
21
21
|
<template #suffix>
|
|
22
22
|
<Tooltip title="此处如果不知道怎么填,请咨询管理员">
|
|
23
|
-
<
|
|
23
|
+
<Button :icon="HelpCircle" />
|
|
24
24
|
</Tooltip>
|
|
25
25
|
</template>
|
|
26
26
|
</InputNumber>
|
|
27
27
|
<InputNumber placeholder="请输入充值金额">
|
|
28
28
|
<template #prefix>
|
|
29
|
-
<
|
|
29
|
+
<Button :icon="PersonAddOutline" />
|
|
30
30
|
</template>
|
|
31
31
|
<template #suffix>
|
|
32
32
|
<Button>现在充值</Button>
|
|
@@ -7,6 +7,7 @@ import { ChevronUp, ChevronDown } from "kui-icons";
|
|
|
7
7
|
import { sizeMap, filterSize } from "../utils/size";
|
|
8
8
|
import { normalize, isValidBig } from "../utils/number";
|
|
9
9
|
const InputNumber = defineComponent({
|
|
10
|
+
inheritAttrs: false,
|
|
10
11
|
name: "InputNumber",
|
|
11
12
|
props: {
|
|
12
13
|
value: [Array, Number, String],
|
|
@@ -32,7 +33,7 @@ const InputNumber = defineComponent({
|
|
|
32
33
|
type: Number,
|
|
33
34
|
default: 1,
|
|
34
35
|
},
|
|
35
|
-
theme: String,
|
|
36
|
+
theme: { type: String, default: "light" },
|
|
36
37
|
icon: [String, Array],
|
|
37
38
|
id: String,
|
|
38
39
|
},
|
|
@@ -150,7 +151,6 @@ const InputNumber = defineComponent({
|
|
|
150
151
|
prefix: props.prefix,
|
|
151
152
|
icon: props.icon,
|
|
152
153
|
theme: props.theme,
|
|
153
|
-
placeholder: props.placeholder,
|
|
154
154
|
},
|
|
155
155
|
on: {
|
|
156
156
|
...listeners,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import "../../styles/var.less";
|
|
1
|
+
@import "../../styles/less-css-var.less";
|
|
2
2
|
|
|
3
3
|
.k-input-number {
|
|
4
4
|
position: relative;
|
|
@@ -7,12 +7,12 @@
|
|
|
7
7
|
// max-width: 100%;
|
|
8
8
|
// min-width: 0;
|
|
9
9
|
width: 100%;
|
|
10
|
-
color: var(--kui-color-
|
|
10
|
+
color: var(--kui-color-text);
|
|
11
11
|
align-items: center;
|
|
12
12
|
border: 1px solid var(--kui-color-border);
|
|
13
13
|
border-radius: var(--kui-border-radius);
|
|
14
|
-
background-color: var(--kui-color-
|
|
15
|
-
transition:
|
|
14
|
+
background-color: var(--kui-color-bg);
|
|
15
|
+
transition: border 0.2s ease-in-out;
|
|
16
16
|
box-sizing: border-box;
|
|
17
17
|
gap: var(--kui-padding-inline);
|
|
18
18
|
padding-left: var(--kui-padding-inline);
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
font-size: 14px;
|
|
21
21
|
outline: 1px solid transparent;
|
|
22
22
|
&:not(.k-input-number-light, .k-input-number-disabled):hover {
|
|
23
|
-
border-color: var(--kui-color-
|
|
23
|
+
border-color: var(--kui-color-primary);
|
|
24
24
|
}
|
|
25
25
|
&:not(.k-input-number-disabled):hover {
|
|
26
26
|
.k-input-number-controls {
|
|
@@ -36,16 +36,12 @@
|
|
|
36
36
|
|
|
37
37
|
.k-input-number-controls {
|
|
38
38
|
transition: all 0.15s ease-in-out;
|
|
39
|
+
-webkit-user-select: none;
|
|
39
40
|
user-select: none;
|
|
40
|
-
// position: absolute;
|
|
41
|
-
// right: 0;
|
|
42
|
-
// top: 0;
|
|
43
|
-
// width: 20px;
|
|
44
41
|
display: flex;
|
|
45
42
|
flex-direction: column;
|
|
46
43
|
color: var(--kui-color-icon);
|
|
47
44
|
border-left: 1px solid var(--kui-color-border);
|
|
48
|
-
background-color: var(--kui-color-back);
|
|
49
45
|
font-size: 11px;
|
|
50
46
|
justify-content: center;
|
|
51
47
|
align-items: center;
|
|
@@ -64,26 +60,22 @@
|
|
|
64
60
|
cursor: pointer;
|
|
65
61
|
|
|
66
62
|
&:hover {
|
|
67
|
-
color: var(--kui-color-
|
|
68
|
-
background-color: var(--kui-color-hover);
|
|
63
|
+
color: var(--kui-color-primary);
|
|
64
|
+
background-color: var(--kui-color-bg-component-hover);
|
|
69
65
|
}
|
|
70
66
|
|
|
71
67
|
&:active {
|
|
72
|
-
color: var(--kui-color-
|
|
73
|
-
background-color: var(--kui-color-active);
|
|
68
|
+
color: var(--kui-color-primary);
|
|
69
|
+
background-color: var(--kui-color-bg-component-active);
|
|
74
70
|
}
|
|
75
71
|
|
|
76
72
|
&:first-child {
|
|
77
|
-
border-radius:
|
|
73
|
+
border-top-right-radius: var(--kui-border-radius);
|
|
78
74
|
}
|
|
79
75
|
|
|
80
76
|
&:last-child {
|
|
81
77
|
border-top: 1px solid var(--kui-color-border);
|
|
82
|
-
border-radius:
|
|
83
|
-
|
|
84
|
-
.k-icon {
|
|
85
|
-
transform: rotate(180deg);
|
|
86
|
-
}
|
|
78
|
+
border-bottom-right-radius: var(--kui-border-radius);
|
|
87
79
|
}
|
|
88
80
|
}
|
|
89
81
|
|
|
@@ -94,26 +86,29 @@
|
|
|
94
86
|
line-height: 1.5;
|
|
95
87
|
padding: 4px 0;
|
|
96
88
|
font-size: 14px;
|
|
97
|
-
color: var(--kui-color-
|
|
89
|
+
color: var(--kui-color-text);
|
|
98
90
|
background-color: transparent;
|
|
99
91
|
background-image: none;
|
|
100
92
|
box-sizing: border-box;
|
|
101
93
|
flex: 1;
|
|
102
94
|
min-width: 10px;
|
|
103
95
|
line-height: 1.571;
|
|
104
|
-
|
|
96
|
+
outline: none;
|
|
105
97
|
&:focus {
|
|
106
|
-
// border-color: var(--kui-color-
|
|
107
|
-
outline: none;
|
|
98
|
+
// border-color: var(--kui-color-primary);
|
|
99
|
+
// outline: none;
|
|
100
|
+
// border: none;
|
|
101
|
+
// outline-offset: 1px;
|
|
102
|
+
// outline: 2px solid var(--kui-color-outline);
|
|
108
103
|
}
|
|
109
104
|
}
|
|
110
105
|
.k-input-number-focus {
|
|
111
106
|
outline-offset: 1px;
|
|
112
|
-
outline: 2px solid var(--kui-color-
|
|
107
|
+
outline: 2px solid var(--kui-color-outline);
|
|
113
108
|
}
|
|
114
109
|
.k-input-number-focus:not(.k-input-number-light, .k-input-number-disabled) {
|
|
115
|
-
border-color: var(--kui-color-
|
|
116
|
-
box-shadow:
|
|
110
|
+
border-color: var(--kui-color-primary);
|
|
111
|
+
box-shadow: var(--kui-component-shadow);
|
|
117
112
|
}
|
|
118
113
|
|
|
119
114
|
.k-input-number-icon {
|
|
@@ -127,13 +122,13 @@
|
|
|
127
122
|
padding-right: var(--kui-padding-inline);
|
|
128
123
|
|
|
129
124
|
&:not(.k-input-number-light, .k-input-number-disabled):hover {
|
|
130
|
-
border-color: var(--kui-color-
|
|
125
|
+
border-color: var(--kui-color-primary);
|
|
131
126
|
}
|
|
132
127
|
|
|
133
128
|
&:focus {
|
|
134
|
-
outline: none;
|
|
135
|
-
border-color: var(--kui-color-
|
|
136
|
-
box-shadow:
|
|
129
|
+
// outline: none;
|
|
130
|
+
// border-color: var(--kui-color-primary);
|
|
131
|
+
// box-shadow: var(--kui-component-shadow);
|
|
137
132
|
}
|
|
138
133
|
}
|
|
139
134
|
|
|
@@ -155,12 +150,13 @@
|
|
|
155
150
|
white-space: nowrap;
|
|
156
151
|
line-height: 1;
|
|
157
152
|
cursor: pointer;
|
|
153
|
+
-webkit-user-select: none;
|
|
158
154
|
user-select: none;
|
|
159
155
|
transition: all 0.2s ease-in-out;
|
|
160
156
|
display: flex;
|
|
161
157
|
|
|
162
158
|
&:hover {
|
|
163
|
-
color: var(--kui-color-
|
|
159
|
+
color: var(--kui-color-text);
|
|
164
160
|
}
|
|
165
161
|
|
|
166
162
|
.k-icon {
|
|
@@ -173,10 +169,13 @@
|
|
|
173
169
|
.k-input-number-clearable {
|
|
174
170
|
cursor: pointer;
|
|
175
171
|
font-size: 15px;
|
|
176
|
-
color: var(--kui-color-
|
|
172
|
+
color: var(--kui-color-icon);
|
|
177
173
|
|
|
178
174
|
&:hover {
|
|
179
|
-
color: var(--kui-color-
|
|
175
|
+
color: var(--kui-color-icon-hover);
|
|
176
|
+
}
|
|
177
|
+
&:active {
|
|
178
|
+
color: var(--kui-color-icon-active);
|
|
180
179
|
}
|
|
181
180
|
}
|
|
182
181
|
|
|
@@ -241,7 +240,7 @@
|
|
|
241
240
|
|
|
242
241
|
.k-input-number-light {
|
|
243
242
|
border-color: transparent;
|
|
244
|
-
background-color: var(--kui-color-
|
|
243
|
+
background-color: var(--kui-color-bg-component);
|
|
245
244
|
|
|
246
245
|
&:focus,
|
|
247
246
|
&.k-input-number-focus {
|
|
@@ -251,13 +250,8 @@
|
|
|
251
250
|
|
|
252
251
|
.k-input-number-disabled {
|
|
253
252
|
cursor: not-allowed;
|
|
254
|
-
color: var(--kui-color-disabled);
|
|
255
|
-
background: var(--kui-color-
|
|
256
|
-
border-color: var(--kui-color-disable-border);
|
|
257
|
-
|
|
258
|
-
&:hover {
|
|
259
|
-
border-color: var(--kui-color-disable-border);
|
|
260
|
-
}
|
|
253
|
+
color: var(--kui-color-text-disabled);
|
|
254
|
+
background: var(--kui-color-bg-component-disabled);
|
|
261
255
|
|
|
262
256
|
& * {
|
|
263
257
|
cursor: not-allowed;
|
|
@@ -42,27 +42,27 @@
|
|
|
42
42
|
text-align: center;
|
|
43
43
|
}
|
|
44
44
|
.demo-k-layout > .k-layout {
|
|
45
|
-
color:
|
|
45
|
+
color: var(--kui-color-text-description);
|
|
46
46
|
min-width: calc(50% - 8px);
|
|
47
47
|
border-radius: 10px;
|
|
48
48
|
overflow: hidden;
|
|
49
49
|
}
|
|
50
50
|
.demo-k-layout .k-layout-header {
|
|
51
|
-
background-color: var(--kui-color-
|
|
51
|
+
background-color: var(--kui-color-bg-3);
|
|
52
52
|
height: 64px;
|
|
53
53
|
line-height: 64px;
|
|
54
54
|
}
|
|
55
55
|
.demo-k-layout .k-layout-footer {
|
|
56
|
-
background-color: var(--kui-color-
|
|
56
|
+
background-color: var(--kui-color-bg-3);
|
|
57
57
|
}
|
|
58
58
|
.demo-k-layout .k-layout-content {
|
|
59
59
|
min-height: 120px;
|
|
60
60
|
line-height: 120px;
|
|
61
|
-
background-color: var(--kui-color-
|
|
61
|
+
background-color: var(--kui-color-bg-2);
|
|
62
62
|
}
|
|
63
63
|
.demo-k-layout .k-layout-sider {
|
|
64
64
|
line-height: 120px;
|
|
65
|
-
background-color: var(--kui-color-
|
|
65
|
+
background-color: var(--kui-color-bg-4);
|
|
66
66
|
width: 30%;
|
|
67
67
|
}
|
|
68
68
|
</style>
|
|
@@ -2,41 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
协助进行页面级整体布局。
|
|
4
4
|
|
|
5
|
-
## 设计规则
|
|
6
5
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
一级导航项偏左靠近 logo 放置,辅助菜单偏右放置。
|
|
10
|
-
|
|
11
|
-
- 顶部导航(大部分系统):一级导航高度 64px,二级导航 48px。
|
|
12
|
-
- 顶部导航(展示类页面):一级导航高度 80px,二级导航 56px。
|
|
13
|
-
- 顶部导航高度的范围计算公式为:48+8n。
|
|
14
|
-
- 侧边导航宽度的范围计算公式:200+8n。
|
|
15
|
-
|
|
16
|
-
### 交互
|
|
17
|
-
|
|
18
|
-
- 一级导航和末级的导航需要在可视化的层面被强调出来;
|
|
19
|
-
- 当前项应该在呈现上优先级最高;
|
|
20
|
-
- 当导航收起的时候,当前项的样式自动赋予给它的上一个层级;
|
|
21
|
-
- 左侧导航栏的收放交互同时支持手风琴和全展开的样式,根据业务的要求进行适当的选择。
|
|
22
|
-
|
|
23
|
-
### 视觉
|
|
24
|
-
|
|
25
|
-
导航样式上需要根据信息层级合理的选择样式:
|
|
26
|
-
|
|
27
|
-
- 大色块强调
|
|
28
|
-
建议用于底色为深色系时,当前页面父级的导航项。
|
|
29
|
-
|
|
30
|
-
- 高亮火柴棍
|
|
31
|
-
当导航栏底色为浅色系时使用,可用于当前页面对应导航项,建议尽量在导航路径的最终项使用。
|
|
32
|
-
|
|
33
|
-
- 字体高亮变色
|
|
34
|
-
从可视化层面,字体高亮的视觉强化力度低于大色块,通常在当前项的上一级使用。
|
|
35
|
-
|
|
36
|
-
- 字体放大
|
|
37
|
-
12px、14px 是导航的标准字号,14 号字体用在一、二级导航中。字号可以考虑导航项的等级做相应选择。
|
|
38
|
-
|
|
39
|
-
### 组件概述
|
|
6
|
+
## 组件概述
|
|
40
7
|
|
|
41
8
|
- `Layout`:布局容器,其下可嵌套 `Header` `Sider` `Content` `Footer` 或 `Layout` 本身,可以放在任何父容器中。
|
|
42
9
|
- `Header`:顶部布局,自带默认样式,其下可嵌套任何元素,只能放在 `Layout` 中。
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
</Breadcrumb>
|
|
43
43
|
<Content class="demo-back">Conent</Content>
|
|
44
44
|
</Content>
|
|
45
|
-
<Footer style="background:transparent;"
|
|
46
|
-
|
|
47
|
-
>
|
|
45
|
+
<Footer style="background:transparent;">
|
|
46
|
+
KUI ©2025 Created by chuchur
|
|
47
|
+
</Footer>
|
|
48
48
|
</Layout>
|
|
49
49
|
</div>
|
|
50
50
|
</template>
|
|
@@ -55,11 +55,11 @@ const top = ref(["t1"]);
|
|
|
55
55
|
</script>
|
|
56
56
|
<style scoped lang="less">
|
|
57
57
|
.k-demo-layout {
|
|
58
|
-
background: var(--kui-color-
|
|
58
|
+
background: var(--kui-color-bg);
|
|
59
59
|
|
|
60
60
|
.demo-header {
|
|
61
61
|
padding: 0 50px 0;
|
|
62
|
-
background-color: var(--kui-color-
|
|
62
|
+
background-color: var(--kui-color-bg-3);
|
|
63
63
|
height: 60px;
|
|
64
64
|
align-items: center;
|
|
65
65
|
display: flex;
|
|
@@ -82,11 +82,11 @@ const top = ref(["t1"]);
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.layout-back {
|
|
85
|
-
background-color:
|
|
85
|
+
background-color: var(--kui-color-bg);
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
.demo-back {
|
|
89
|
-
background-color: var(--kui-color-
|
|
89
|
+
background-color: var(--kui-color-bg-3);
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
.demo-top-menu {
|