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,8 +1,8 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-tabs {
|
|
3
3
|
overflow: hidden;
|
|
4
4
|
.k-tabs-bar {
|
|
5
|
-
border-bottom: 1px solid
|
|
5
|
+
border-bottom: 1px solid var(--kui-color-border);
|
|
6
6
|
margin: 0 0 16px;
|
|
7
7
|
display: flex;
|
|
8
8
|
align-items: center;
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
text-align: center;
|
|
12
12
|
font-size: 20px;
|
|
13
13
|
padding: 6px 5px 0;
|
|
14
|
-
color:
|
|
14
|
+
color: var(--kui-color-icon);
|
|
15
15
|
}
|
|
16
16
|
.k-tabs-tab-btn-next-disabed, .k-tabs-tab-btn-prev-disabed {
|
|
17
|
-
color:
|
|
17
|
+
color: var(--kui-color-disable-color);
|
|
18
18
|
cursor: not-allowed;
|
|
19
19
|
}
|
|
20
20
|
.k-tabs-extra {}
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
cursor: pointer;
|
|
53
53
|
user-select: none;
|
|
54
54
|
transition: color .3s;
|
|
55
|
-
border-top-left-radius:
|
|
56
|
-
border-top-right-radius:
|
|
57
|
-
color:
|
|
55
|
+
border-top-left-radius: var(--kui-border-radius);
|
|
56
|
+
border-top-right-radius: var(--kui-border-radius);
|
|
57
|
+
color: var(--kui-color-font);
|
|
58
58
|
.k-icon {
|
|
59
59
|
margin-right: 8px;
|
|
60
60
|
}
|
|
@@ -62,33 +62,33 @@
|
|
|
62
62
|
margin: 0 -5px 0 0;
|
|
63
63
|
width: 16px;
|
|
64
64
|
text-align: center;
|
|
65
|
-
color:
|
|
65
|
+
color: var(--kui-color-icon);
|
|
66
66
|
&:hover {
|
|
67
|
-
color:
|
|
67
|
+
color: var(--kui-color-danger);
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
70
|
&:last-child {
|
|
71
71
|
margin: 0 2px 0 0;
|
|
72
72
|
}
|
|
73
73
|
&:hover {
|
|
74
|
-
color:
|
|
74
|
+
color: var(--kui-color-main);
|
|
75
75
|
}
|
|
76
76
|
}
|
|
77
77
|
.k-tabs-tab-active {
|
|
78
|
-
color:
|
|
78
|
+
color: var(--kui-color-main);
|
|
79
79
|
font-weight: bold;
|
|
80
80
|
}
|
|
81
81
|
.k-tabs-tab-disabled {
|
|
82
|
-
color:
|
|
82
|
+
color: var(--kui-color-disable-color);
|
|
83
83
|
cursor: not-allowed;
|
|
84
84
|
&:hover {
|
|
85
|
-
color:
|
|
85
|
+
color: var(--kui-color-disable-color);
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
.k-tabs-ink-bar {
|
|
89
89
|
position: absolute;
|
|
90
90
|
height: 2px;
|
|
91
|
-
background:
|
|
91
|
+
background: var(--kui-color-main);
|
|
92
92
|
bottom: 0;
|
|
93
93
|
transition: transform .3s ease-in-out,
|
|
94
94
|
}
|
|
@@ -132,12 +132,13 @@
|
|
|
132
132
|
.k-tabs-extra {}
|
|
133
133
|
.k-tabs-tab {
|
|
134
134
|
margin-right: 2px;
|
|
135
|
-
border: 1px solid
|
|
136
|
-
// background:
|
|
135
|
+
border: 1px solid var(--kui-color-border);
|
|
136
|
+
// background: var(--kui-color-back);
|
|
137
|
+
border-bottom-color: transparent;
|
|
137
138
|
padding: 8px 16px;
|
|
138
139
|
}
|
|
139
140
|
.k-tabs-tab-active {
|
|
140
|
-
background:
|
|
141
|
+
background: var(--kui-color-back);
|
|
141
142
|
border-bottom-color: transparent;
|
|
142
143
|
&::after {
|
|
143
144
|
display: none;
|
|
@@ -166,7 +167,7 @@
|
|
|
166
167
|
padding: 10px 16px;
|
|
167
168
|
}
|
|
168
169
|
.k-tabs-tab-active {
|
|
169
|
-
background:
|
|
170
|
+
background: var(--kui-color-back);
|
|
170
171
|
&::after {
|
|
171
172
|
display: none;
|
|
172
173
|
}
|
|
@@ -177,7 +178,7 @@
|
|
|
177
178
|
.k-tabs-tabpane {
|
|
178
179
|
padding: 16px;
|
|
179
180
|
// background: #fff;
|
|
180
|
-
background:
|
|
181
|
+
background: var(--kui-color-back);
|
|
181
182
|
box-sizing: border-box;
|
|
182
183
|
}
|
|
183
184
|
.k-tabs-tabpane:not(.k-tabs-tabpane-active) {
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-tag {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
line-height: 20px;
|
|
5
5
|
height: auto;
|
|
6
6
|
padding: 0 7px;
|
|
7
|
-
border: 1px solid
|
|
8
|
-
background-color:
|
|
7
|
+
border: 1px solid var(--kui-color-border);
|
|
8
|
+
background-color: var(--kui-color-back);
|
|
9
9
|
font-size: 12px;
|
|
10
|
-
border-radius:
|
|
10
|
+
border-radius: var(--kui-border-radius);
|
|
11
11
|
box-sizing: border-box;
|
|
12
12
|
white-space: nowrap;
|
|
13
13
|
margin-right: 8px;
|
|
14
14
|
vertical-align: middle;
|
|
15
15
|
cursor: pointer;
|
|
16
|
-
color:
|
|
16
|
+
color: var(--kui-color-font);
|
|
17
17
|
.k-tag-close {
|
|
18
18
|
font-size: 16px;
|
|
19
19
|
margin-left: 4px;
|
|
20
20
|
vertical-align: -4px;
|
|
21
21
|
&:hover {
|
|
22
|
-
color:
|
|
22
|
+
color: var(--kui-color-danger);
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
&-pink {
|
|
26
|
-
color:
|
|
27
|
-
border-color:
|
|
28
|
-
background-color:
|
|
26
|
+
color: var(--kui-color-pink-30);
|
|
27
|
+
border-color: var(--kui-color-pink-60);
|
|
28
|
+
background-color: var(--kui-color-pink-90);
|
|
29
29
|
}
|
|
30
30
|
&-red {
|
|
31
|
-
color:
|
|
32
|
-
border-color:
|
|
33
|
-
background-color:
|
|
31
|
+
color: var(--kui-color-red-30);
|
|
32
|
+
border-color: var(--kui-color-red-60);
|
|
33
|
+
background-color: var(--kui-color-red-90);
|
|
34
34
|
}
|
|
35
35
|
&-yellow {
|
|
36
|
-
color:
|
|
37
|
-
border-color:
|
|
38
|
-
background-color:
|
|
36
|
+
color: var(--kui-color-yellow-30);
|
|
37
|
+
border-color: var(--kui-color-yellow-60);
|
|
38
|
+
background-color: var(--kui-color-yellow-90);
|
|
39
39
|
}
|
|
40
40
|
&-orange {
|
|
41
|
-
color:
|
|
42
|
-
border-color:
|
|
43
|
-
background-color:
|
|
41
|
+
color: var(--kui-color-orange-30);
|
|
42
|
+
border-color: var(--kui-color-orange-60);
|
|
43
|
+
background-color: var(--kui-color-orange-90);
|
|
44
44
|
}
|
|
45
45
|
&-cyan {
|
|
46
|
-
color:
|
|
47
|
-
border-color:
|
|
48
|
-
background-color:
|
|
46
|
+
color: var(--kui-color-cyan-30);
|
|
47
|
+
border-color: var(--kui-color-cyan-60);
|
|
48
|
+
background-color: var(--kui-color-cyan-90);
|
|
49
49
|
}
|
|
50
50
|
&-green {
|
|
51
|
-
color:
|
|
52
|
-
border-color:
|
|
53
|
-
background-color:
|
|
51
|
+
color: var(--kui-color-green-30);
|
|
52
|
+
border-color: var(--kui-color-green-60);
|
|
53
|
+
background-color: var(--kui-color-green-90);
|
|
54
54
|
}
|
|
55
55
|
&-blue {
|
|
56
|
-
color:
|
|
57
|
-
border-color:
|
|
58
|
-
background-color:
|
|
56
|
+
color: var(--kui-color-blue-30);
|
|
57
|
+
border-color: var(--kui-color-blue-60);
|
|
58
|
+
background-color: var(--kui-color-blue-90);
|
|
59
59
|
}
|
|
60
60
|
&-purple {
|
|
61
|
-
color:
|
|
62
|
-
border-color:
|
|
63
|
-
background-color:
|
|
61
|
+
color: var(--kui-color-purple-30);
|
|
62
|
+
border-color: var(--kui-color-purple-60);
|
|
63
|
+
background-color: var(--kui-color-purple-90);
|
|
64
64
|
}
|
|
65
65
|
&-geekblue {
|
|
66
|
-
color:
|
|
67
|
-
border-color:
|
|
68
|
-
background-color:
|
|
66
|
+
color: var(--kui-color-geekblue-30);
|
|
67
|
+
border-color: var(--kui-color-geekblue-60);
|
|
68
|
+
background-color: var(--kui-color-geekblue-90);
|
|
69
69
|
}
|
|
70
70
|
&-magenta {
|
|
71
|
-
color:
|
|
72
|
-
border-color:
|
|
73
|
-
background-color:
|
|
71
|
+
color: var(--kui-color-magenta-30);
|
|
72
|
+
border-color: var(--kui-color-magenta-60);
|
|
73
|
+
background-color: var(--kui-color-magenta-90);
|
|
74
74
|
}
|
|
75
75
|
&-volcano {
|
|
76
|
-
color:
|
|
77
|
-
border-color:
|
|
78
|
-
background-color:
|
|
76
|
+
color: var(--kui-color-volcano-30);
|
|
77
|
+
border-color: var(--kui-color-volcano-60);
|
|
78
|
+
background-color: var(--kui-color-volcano-90);
|
|
79
79
|
}
|
|
80
80
|
&-gold {
|
|
81
|
-
color:
|
|
82
|
-
border-color:
|
|
83
|
-
background-color:
|
|
81
|
+
color: var(--kui-color-gold-30);
|
|
82
|
+
border-color: var(--kui-color-gold-60);
|
|
83
|
+
background-color: var(--kui-color-gold-90);
|
|
84
84
|
}
|
|
85
85
|
&-lime {
|
|
86
|
-
color:
|
|
87
|
-
border-color:
|
|
88
|
-
background-color:
|
|
86
|
+
color: var(--kui-color-lime-30);
|
|
87
|
+
border-color: var(--kui-color-lime-60);
|
|
88
|
+
background-color: var(--kui-color-lime-90);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-timeline {
|
|
3
3
|
background-color: transparent;
|
|
4
4
|
font-size: 12px;
|
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
margin: 0;
|
|
9
9
|
padding: 0;
|
|
10
10
|
list-style: none;
|
|
11
|
-
color:
|
|
11
|
+
color: var(--kui-color-font);
|
|
12
12
|
.k-time-line-item {
|
|
13
13
|
position: relative;
|
|
14
14
|
&:before {
|
|
15
15
|
position: absolute;
|
|
16
16
|
width: 1px;
|
|
17
|
-
background:
|
|
17
|
+
background: var(--kui-color-border);
|
|
18
18
|
left: 7px;
|
|
19
19
|
content: "";
|
|
20
20
|
height: 100%;
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
}
|
|
27
27
|
.k-time-line-dot {
|
|
28
28
|
position: absolute;
|
|
29
|
-
background:
|
|
29
|
+
background: var(--kui-color-back);
|
|
30
30
|
top: 4px;
|
|
31
31
|
left: -.5px;
|
|
32
32
|
font-size: 16px;
|
|
33
|
-
color:
|
|
33
|
+
color: var(--kui-color-main);
|
|
34
34
|
line-height: 1;
|
|
35
35
|
border-radius: 50%;
|
|
36
36
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-tooltip {
|
|
3
3
|
display: inline-block;
|
|
4
4
|
position: relative;
|
|
@@ -12,13 +12,14 @@
|
|
|
12
12
|
position: absolute;
|
|
13
13
|
z-index: 1001;
|
|
14
14
|
.k-tooltip-inner {
|
|
15
|
-
background:
|
|
15
|
+
background: var(--kui-color-control-10);
|
|
16
16
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
17
|
-
color:
|
|
18
|
-
border-radius:
|
|
17
|
+
color: var(--kui-color-font);
|
|
18
|
+
border-radius: var(--kui-border-radius);
|
|
19
19
|
}
|
|
20
20
|
.k-tooltip-title {
|
|
21
21
|
padding: 6px 8px;
|
|
22
|
+
font-size: 14px;
|
|
22
23
|
}
|
|
23
24
|
.k-tooltip-arrow {
|
|
24
25
|
position: absolute;
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
align-items: center;
|
|
30
31
|
width: 19px;
|
|
31
32
|
.k-tooltip-arrow-content {
|
|
32
|
-
background-color:
|
|
33
|
+
background-color: var(--kui-color-control-10);
|
|
33
34
|
transform: rotate(45deg);
|
|
34
35
|
width: 12px;
|
|
35
36
|
height: 12px;
|
|
@@ -160,91 +161,91 @@
|
|
|
160
161
|
.k-tooltip-pink {
|
|
161
162
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
162
163
|
color: #fff;
|
|
163
|
-
background-color:
|
|
164
|
+
background-color: var(--kui-color-pink);
|
|
164
165
|
}
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
.k-tooltip-red {
|
|
168
169
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
169
170
|
color: #fff;
|
|
170
|
-
background-color:
|
|
171
|
+
background-color: var(--kui-color-red);
|
|
171
172
|
}
|
|
172
173
|
}
|
|
173
174
|
|
|
174
175
|
.k-tooltip-yellow {
|
|
175
176
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
176
177
|
color: #fff;
|
|
177
|
-
background-color:
|
|
178
|
+
background-color: var(--kui-color-yellow);
|
|
178
179
|
}
|
|
179
180
|
}
|
|
180
181
|
|
|
181
182
|
.k-tooltip-orange {
|
|
182
183
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
183
184
|
color: #fff;
|
|
184
|
-
background-color:
|
|
185
|
+
background-color: var(--kui-color-orange);
|
|
185
186
|
}
|
|
186
187
|
}
|
|
187
188
|
|
|
188
189
|
.k-tooltip-cyan {
|
|
189
190
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
190
191
|
color: #fff;
|
|
191
|
-
background-color:
|
|
192
|
+
background-color: var(--kui-color-cyan);
|
|
192
193
|
}
|
|
193
194
|
}
|
|
194
195
|
|
|
195
196
|
.k-tooltip-green {
|
|
196
197
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
197
198
|
color: #fff;
|
|
198
|
-
background-color:
|
|
199
|
+
background-color: var(--kui-color-green);
|
|
199
200
|
}
|
|
200
201
|
}
|
|
201
202
|
|
|
202
203
|
.k-tooltip-blue {
|
|
203
204
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
204
205
|
color: #fff;
|
|
205
|
-
background-color:
|
|
206
|
+
background-color: var(--kui-color-blue);
|
|
206
207
|
}
|
|
207
208
|
}
|
|
208
209
|
|
|
209
210
|
.k-tooltip-purple {
|
|
210
211
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
211
212
|
color: #fff;
|
|
212
|
-
background-color:
|
|
213
|
+
background-color: var(--kui-color-purple);
|
|
213
214
|
}
|
|
214
215
|
}
|
|
215
216
|
|
|
216
217
|
.k-tooltip-geekblue {
|
|
217
218
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
218
219
|
color: #fff;
|
|
219
|
-
background-color:
|
|
220
|
+
background-color: var(--kui-color-geekblue);
|
|
220
221
|
}
|
|
221
222
|
}
|
|
222
223
|
|
|
223
224
|
.k-tooltip-magenta {
|
|
224
225
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
225
226
|
color: #fff;
|
|
226
|
-
background-color:
|
|
227
|
+
background-color: var(--kui-color-magenta);
|
|
227
228
|
}
|
|
228
229
|
}
|
|
229
230
|
|
|
230
231
|
.k-tooltip-volcano {
|
|
231
232
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
232
233
|
color: #fff;
|
|
233
|
-
background-color:
|
|
234
|
+
background-color: var(--kui-color-volcano);
|
|
234
235
|
}
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
.k-tooltip-gold {
|
|
238
239
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
239
240
|
color: #fff;
|
|
240
|
-
background-color:
|
|
241
|
+
background-color: var(--kui-color-gold);
|
|
241
242
|
}
|
|
242
243
|
}
|
|
243
244
|
|
|
244
245
|
.k-tooltip-lime {
|
|
245
246
|
.k-tooltip-inner, .k-tooltip-arrow .k-tooltip-arrow-content {
|
|
246
247
|
color: #fff;
|
|
247
|
-
background-color:
|
|
248
|
+
background-color: var(--kui-color-lime);
|
|
248
249
|
}
|
|
249
250
|
}
|
|
250
251
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-tree {
|
|
3
3
|
.k-tree-item {
|
|
4
4
|
padding: 0 0 4px;
|
|
@@ -40,26 +40,26 @@
|
|
|
40
40
|
z-index: 0;
|
|
41
41
|
border-radius: 2px;
|
|
42
42
|
cursor: pointer;
|
|
43
|
-
color:
|
|
43
|
+
color: var(--kui-color-font);
|
|
44
44
|
line-height: 1;
|
|
45
45
|
overflow: hidden;
|
|
46
46
|
text-overflow: ellipsis;
|
|
47
47
|
font-size: 13px;
|
|
48
48
|
// transition: all .2s ease-in-out;
|
|
49
49
|
&:hover{
|
|
50
|
-
background:
|
|
50
|
+
background: var(--kui-color-hover);
|
|
51
51
|
outline: none;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
.k-tree-item-drop {
|
|
55
55
|
>.k-tree-title {
|
|
56
|
-
background-color:
|
|
56
|
+
background-color: var(--kui-color-main) !important;
|
|
57
57
|
color: #fff;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
60
|
.k-tree-item-drag {
|
|
61
61
|
>.k-tree-title {
|
|
62
|
-
// background-color: tint(
|
|
62
|
+
// background-color: tint(var(--kui-color-main), 90%) !important;
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
.k-tree-item-extra {
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
}
|
|
81
81
|
.k-tree-item-disabled {
|
|
82
82
|
.k-tree-title, .k-tree-icon {
|
|
83
|
-
color:
|
|
83
|
+
color: var(--kui-color-disable-color);
|
|
84
84
|
cursor: not-allowed;
|
|
85
85
|
}
|
|
86
86
|
.k-tree-title {
|
|
@@ -90,9 +90,9 @@
|
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
92
|
.k-tree-title-selected {
|
|
93
|
-
background:
|
|
93
|
+
background: var(--kui-color-selected);
|
|
94
94
|
&:hover{
|
|
95
|
-
background:
|
|
95
|
+
background: var(--kui-color-selected);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
.k-tree-arrow {
|
|
@@ -119,7 +119,7 @@
|
|
|
119
119
|
.tree-nodata {
|
|
120
120
|
padding: 8px 10px;
|
|
121
121
|
display: block;
|
|
122
|
-
color:
|
|
122
|
+
color: var(--kui-color-disable-color);
|
|
123
123
|
font-size: 12px;
|
|
124
124
|
}
|
|
125
125
|
}
|
|
@@ -146,7 +146,7 @@
|
|
|
146
146
|
}
|
|
147
147
|
.k-tree-item:hover {
|
|
148
148
|
&::before {
|
|
149
|
-
background-color:
|
|
149
|
+
background-color: var(--kui-color-hover);
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
.k-tree-item-selected, .k-tree-item-selected:hover {
|
|
@@ -156,13 +156,13 @@
|
|
|
156
156
|
color: #fff;
|
|
157
157
|
}
|
|
158
158
|
&::before {
|
|
159
|
-
background-color:
|
|
159
|
+
background-color: var(--kui-color-main);
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
.k-tree-item-disabled:hover {
|
|
163
163
|
cursor: not-allowed;
|
|
164
164
|
.k-tree-title {
|
|
165
|
-
color:
|
|
165
|
+
color: var(--kui-color-disable-color);
|
|
166
166
|
}
|
|
167
167
|
&::before {
|
|
168
168
|
display: none;
|
|
@@ -185,7 +185,7 @@
|
|
|
185
185
|
top: 0;
|
|
186
186
|
width: 1px;
|
|
187
187
|
height: 28px;
|
|
188
|
-
background-color:
|
|
188
|
+
background-color: var(--kui-color-border);
|
|
189
189
|
}
|
|
190
190
|
&::after {
|
|
191
191
|
content: '';
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
top: 12px;
|
|
195
195
|
width: 12px;
|
|
196
196
|
height: 1px;
|
|
197
|
-
background-color:
|
|
197
|
+
background-color: var(--kui-color-border);
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
.k-tree-item-children >.k-tree-children {
|
|
@@ -211,7 +211,7 @@
|
|
|
211
211
|
}
|
|
212
212
|
}
|
|
213
213
|
.k-tree-children .k-tree-item-children {
|
|
214
|
-
border-left: 1px solid
|
|
214
|
+
border-left: 1px solid var(--kui-color-border);
|
|
215
215
|
}
|
|
216
216
|
.k-tree-arrow-open {
|
|
217
217
|
transform: rotate(180deg);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
@import '../../styles/
|
|
1
|
+
@import '../../styles/var.less';
|
|
2
2
|
.k-treeselect-search {
|
|
3
3
|
line-height: 1;
|
|
4
4
|
margin: 5px;
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
padding: 4px 7px;
|
|
12
12
|
font-size: 12px;
|
|
13
13
|
border: 1px solid #dddee1;
|
|
14
|
-
border-radius:
|
|
14
|
+
border-radius: var(--kui-border-radius);
|
|
15
15
|
color: #495060;
|
|
16
16
|
background-color: #fff;
|
|
17
17
|
background-image: none;
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
line-height: 1.5;
|
|
26
26
|
padding: 4px 7px;
|
|
27
27
|
font-size: 12px;
|
|
28
|
-
border: 1px solid
|
|
29
|
-
background:
|
|
30
|
-
border-radius:
|
|
28
|
+
border: 1px solid var(--kui-color-main);
|
|
29
|
+
background: var(--kui-color-main);
|
|
30
|
+
border-radius: var(--kui-border-radius);
|
|
31
31
|
color: #fff;
|
|
32
32
|
width: 45px;
|
|
33
33
|
float: right;
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
<cn>
|
|
2
|
+
#### 上传文件类型
|
|
3
|
+
通过 accept 属性(input的原生html` 属性)可以限制上传的文件类型。
|
|
4
|
+
accept 支持传入以下两种类型字符串:
|
|
5
|
+
- 文件后缀名集合(推荐),如 .jpg、.png 等;
|
|
6
|
+
- 文件类型的 MIME types 集合,可参考[MDN](https://developer.mozilla.org/en-US/docs/Web/HTTP/Basics_of_HTTP/MIME_types/Complete_list_of_MIME_types) 文档
|
|
7
|
+
>例如只允许用户上传 PNG 和 PDF 文件,accept 可以这样写: accept = '.pdf,.png' 或 accept = 'application/pdf,image/png'(将 PNG 与 PDF 的 MIME type 通过,连接起来即可)。
|
|
8
|
+
</cn>
|
|
9
|
+
|
|
10
|
+
```vue
|
|
11
|
+
<template>
|
|
12
|
+
<Upload
|
|
13
|
+
action="https://run.mocky.io/v3/79c1cb9d-040a-43d9-919d-91ded176a9c2"
|
|
14
|
+
name="file"
|
|
15
|
+
:headers="headers"
|
|
16
|
+
@change="handleChange"
|
|
17
|
+
multiple
|
|
18
|
+
accept="image/*"
|
|
19
|
+
>
|
|
20
|
+
<Button icon="image-outline">Upload Image</Button>
|
|
21
|
+
</Upload>
|
|
22
|
+
<br/>
|
|
23
|
+
<Upload
|
|
24
|
+
action="https://run.mocky.io/v3/79c1cb9d-040a-43d9-919d-91ded176a9c2"
|
|
25
|
+
name="file"
|
|
26
|
+
:headers="headers"
|
|
27
|
+
@change="handleChange"
|
|
28
|
+
multiple
|
|
29
|
+
accept="video/*"
|
|
30
|
+
>
|
|
31
|
+
<Button icon="videocam-outline">Upload Video</Button>
|
|
32
|
+
</Upload>
|
|
33
|
+
<br/>
|
|
34
|
+
<Upload
|
|
35
|
+
action="https://run.mocky.io/v3/79c1cb9d-040a-43d9-919d-91ded176a9c2"
|
|
36
|
+
name="file"
|
|
37
|
+
:headers="headers"
|
|
38
|
+
@change="handleChange"
|
|
39
|
+
multiple
|
|
40
|
+
accept=".pdf,.png,.jpeg"
|
|
41
|
+
>
|
|
42
|
+
<Button icon="cloud-upload-outline">Upload PDF,PNG,JPEG</Button>
|
|
43
|
+
</Upload>
|
|
44
|
+
</template>
|
|
45
|
+
<script>
|
|
46
|
+
export default{
|
|
47
|
+
data(){
|
|
48
|
+
return {
|
|
49
|
+
headers:{
|
|
50
|
+
authorization: 'here is token'
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
methods:{
|
|
55
|
+
handleChange(info){
|
|
56
|
+
if (info.file.status !== 'uploading') {
|
|
57
|
+
console.log(info.file, info.fileList);
|
|
58
|
+
}
|
|
59
|
+
if (info.file.status === 'success') {
|
|
60
|
+
this.$Message.success(`${info.file.filename} uploaded successfully`);
|
|
61
|
+
} else if (info.file.status === 'error') {
|
|
62
|
+
this.$Message.error(`${info.file.filename} upload failed.`);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
</script>
|
|
68
|
+
```
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
|
|
2
|
+
<cn>
|
|
3
|
+
#### 上传头像
|
|
4
|
+
limit等于上传文件数量时, 则不显示选择文件组件,
|
|
5
|
+
</cn>
|
|
6
|
+
|
|
7
|
+
```vue
|
|
8
|
+
<template>
|
|
9
|
+
<Upload
|
|
10
|
+
action="https://run.mocky.io/v3/79c1cb9d-040a-43d9-919d-91ded176a9c2"
|
|
11
|
+
name="file"
|
|
12
|
+
type="picture"
|
|
13
|
+
:headers="headers"
|
|
14
|
+
@change="handleChange"
|
|
15
|
+
:limit="1"
|
|
16
|
+
accept="image/*"
|
|
17
|
+
uploadIcon="camera-outline"
|
|
18
|
+
uploadText="上传头像"
|
|
19
|
+
>
|
|
20
|
+
</Upload>
|
|
21
|
+
</template>
|
|
22
|
+
<script>
|
|
23
|
+
export default{
|
|
24
|
+
data(){
|
|
25
|
+
return {
|
|
26
|
+
headers:{
|
|
27
|
+
authorization: 'here is token'
|
|
28
|
+
},
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
methods:{
|
|
32
|
+
handleChange(info){
|
|
33
|
+
if (info.file.status !== 'uploading') {
|
|
34
|
+
console.log(info.file, info.fileList);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
</script>
|
|
40
|
+
```
|