kui-vue 3.3.0-rc2 → 3.3.2
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/affix/demo/callbacks.md +25 -0
- package/components/affix/demo/index.vue +2 -2
- package/components/avatar/demo/change.md +7 -8
- package/components/avatar/demo/index.vue +9 -2
- package/components/avatar/demo/types.md +4 -4
- package/components/badge/demo/color.md +1 -1
- package/components/badge/demo/dot.md +1 -1
- package/components/badge/demo/index.vue +8 -8
- package/components/breadcrumb/demo/icon.md +1 -1
- package/components/breadcrumb/demo/index.vue +4 -4
- package/components/breadcrumb/demo/separator.md +5 -7
- package/components/breadcrumb/styles/index.less +12 -0
- package/components/button/demo/index.vue +7 -7
- package/components/button/demo/normal.md +2 -2
- package/components/button/demo/size.md +1 -1
- package/components/button/styles/index.less +145 -44
- package/components/card/demo/index.vue +3 -3
- package/components/carousel/demo/index.vue +1 -1
- package/components/checkbox/demo/disabled.md +15 -10
- package/components/checkbox/demo/index.vue +16 -9
- package/components/collapse/demo/index.vue +6 -6
- package/components/colorPicker/colorpicker.jsx +1 -0
- package/components/colorPicker/demo/index.vue +2 -2
- package/components/colorPicker/styles/index.less +293 -240
- package/components/datePicker/demo/index.vue +1 -1
- package/components/datePicker/styles/datepicker.less +1 -0
- package/components/descriptions/demo/index.vue +2 -2
- package/components/divider/demo/index.vue +4 -4
- package/components/drawer/demo/form.md +0 -26
- package/components/drawer/demo/index.vue +16 -8
- package/components/dropdown/demo/base.md +2 -2
- package/components/dropdown/demo/index.vue +12 -3
- package/components/dropdown/demo/placement.md +0 -8
- package/components/empty/demo/custom.md +2 -2
- package/components/empty/demo/index.vue +5 -5
- package/components/form/styles/index.less +39 -4
- package/components/icon/demo/index.vue +3 -3
- package/components/image/demo/base.md +1 -1
- package/components/image/demo/errors.md +2 -2
- package/components/image/demo/extra.md +3 -3
- package/components/image/demo/extra_globle.md +3 -3
- package/components/image/demo/globle.md +4 -4
- package/components/image/demo/group.md +2 -2
- package/components/image/demo/index.vue +8 -8
- package/components/image/demo/origin.md +2 -2
- package/components/image/preview.jsx +13 -6
- package/components/image/styles/index.less +5 -2
- package/components/input/demo/index.vue +9 -9
- package/components/input/styles/index.less +21 -8
- package/components/inputNumber/demo/index.vue +6 -6
- package/components/inputNumber/styles/index.less +1 -1
- package/components/layout/styles/index.less +5 -1
- package/components/loading/demo/index.vue +10 -3
- package/components/locale/index.js +1 -1
- package/components/menu/styles/dropmenu.less +19 -1
- package/components/menu/styles/index.less +156 -19
- package/components/message/demo/index.vue +16 -7
- package/components/modal/demo/base.md +3 -1
- package/components/modal/demo/confrim.md +3 -2
- package/components/modal/demo/index.vue +17 -8
- package/components/modal/index.js +6 -5
- package/components/modal/modal.jsx +1 -1
- package/components/modal/styles/index.less +18 -14
- package/components/notice/demo/index.vue +16 -7
- package/components/notice/styles/index.less +1 -0
- package/components/page/demo/index.vue +6 -6
- package/components/page/styles/index.less +10 -3
- package/components/popconfirm/demo/index.vue +1 -1
- package/components/popconfirm/styles/index.less +1 -1
- package/components/poptip/demo/index.vue +1 -1
- package/components/poptip/styles/index.less +197 -170
- package/components/progress/demo/index.vue +1 -1
- package/components/radio/demo/index.vue +9 -10
- package/components/radio/styles/index.less +1 -1
- package/components/rate/demo/index.vue +9 -9
- package/components/select/demo/index.vue +10 -10
- package/components/skeleton/demo/custom.md +1 -1
- package/components/skeleton/demo/index.vue +1 -1
- package/components/slider/demo/index.vue +8 -8
- package/components/slider/styles/index.less +5 -1
- package/components/slider/thumb.jsx +25 -7
- package/components/space/demo/index.vue +8 -8
- package/components/spin/demo/base.md +3 -1
- package/components/spin/demo/index.vue +5 -5
- package/components/spin/spin.jsx +8 -1
- package/components/spin/styles/index.less +18 -4
- package/components/styles/color.less +18 -2
- package/components/styles/var.less +26 -4
- package/components/switch/demo/index.vue +8 -8
- package/components/switch/styles/index.less +28 -1
- package/components/table/demo/base-render.md +1 -1
- package/components/table/demo/base.md +1 -1
- package/components/table/demo/bordered.md +1 -1
- package/components/table/demo/custom-header.md +1 -1
- package/components/table/demo/edit.md +1 -1
- package/components/table/demo/fixed-head.md +3 -1
- package/components/table/demo/index.vue +19 -21
- package/components/table/extend.jsx +29 -11
- package/components/table/index.md +1 -0
- package/components/table/styles/index.less +10 -1
- package/components/table/table.jsx +3 -3
- package/components/tabs/demo/index.vue +10 -10
- package/components/tag/demo/index.vue +4 -4
- package/components/timeline/demo/index.vue +4 -4
- package/components/tooltip/demo/index.vue +1 -1
- package/components/tooltip/styles/index.less +1 -1
- package/components/tree/demo/index.vue +1 -1
- package/components/upload/demo/index.vue +12 -12
- package/components/upload/demo/picture.md +2 -2
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.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 +1 -1
- package/dist/locale/vi.js +1 -1
- package/dist/locale/zhCN.js +1 -1
- package/dist/locale/zhTW.js +1 -1
- package/package.json +17 -20
- package/readme.md +2 -2
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
2
|
@import 'dropmenu.less';
|
|
3
|
+
|
|
3
4
|
.k-menu {
|
|
4
5
|
display: block;
|
|
5
6
|
margin: 0;
|
|
@@ -14,10 +15,14 @@
|
|
|
14
15
|
// transition: background-color .3s cubic-bezier(.645, .045, .355, 1), width .3s cubic-bezier(.645, .045, .355, 1);
|
|
15
16
|
transition: width .3s cubic-bezier(.645, .045, .355, 1);
|
|
16
17
|
user-select: none;
|
|
17
|
-
|
|
18
|
+
|
|
19
|
+
ol,
|
|
20
|
+
ul,
|
|
21
|
+
li {
|
|
18
22
|
list-style: none !important;
|
|
19
23
|
margin: 0;
|
|
20
24
|
}
|
|
25
|
+
|
|
21
26
|
// &:after, &:before {
|
|
22
27
|
// content: "";
|
|
23
28
|
// display: table;
|
|
@@ -29,6 +34,7 @@
|
|
|
29
34
|
line-height: 0;
|
|
30
35
|
background-color: var(--kui-color-border);
|
|
31
36
|
}
|
|
37
|
+
|
|
32
38
|
.k-menu-icon-temp {
|
|
33
39
|
display: inline-block;
|
|
34
40
|
width: 20px;
|
|
@@ -36,14 +42,18 @@
|
|
|
36
42
|
margin-right: 8px;
|
|
37
43
|
flex-shrink: 0;
|
|
38
44
|
}
|
|
39
|
-
|
|
45
|
+
|
|
46
|
+
.k-menu-item-icon,
|
|
47
|
+
.k-menu-submenu-inner .k-icon {
|
|
40
48
|
margin-right: 8px;
|
|
41
49
|
font-size: 20px;
|
|
42
50
|
// vertical-align: middle;
|
|
43
51
|
}
|
|
52
|
+
|
|
44
53
|
.k-menu-item-icon+a {
|
|
45
54
|
display: inline-block;
|
|
46
55
|
}
|
|
56
|
+
|
|
47
57
|
&-submenu-arrow {
|
|
48
58
|
transition: all .3s;
|
|
49
59
|
// position: absolute;
|
|
@@ -53,13 +63,15 @@
|
|
|
53
63
|
height: 14px;
|
|
54
64
|
text-indent: 0;
|
|
55
65
|
}
|
|
66
|
+
|
|
56
67
|
// .k-icon {
|
|
57
68
|
// &+span {
|
|
58
69
|
// opacity: 1;
|
|
59
70
|
// transition: all .3s cubic-bezier(.645, .045, .355, 1), width .3s cubic-bezier(.645, .045, .355, 1);
|
|
60
71
|
// }
|
|
61
72
|
// }
|
|
62
|
-
&-item,
|
|
73
|
+
&-item,
|
|
74
|
+
.k-menu-submenu-title {
|
|
63
75
|
cursor: pointer;
|
|
64
76
|
overflow: hidden;
|
|
65
77
|
text-overflow: ellipsis;
|
|
@@ -68,62 +80,89 @@
|
|
|
68
80
|
transition: font-size .3s cubic-bezier(.215, .61, .355, 1), padding .3s cubic-bezier(.215, .61, .355, 1);
|
|
69
81
|
// transition: all .3s cubic-bezier(.215, .61, .355, 1);
|
|
70
82
|
}
|
|
83
|
+
|
|
71
84
|
//light
|
|
72
85
|
.k-menu-item-group-title {
|
|
73
86
|
font-size: 12px;
|
|
74
87
|
color: var(--kui-color-icon);
|
|
75
88
|
}
|
|
89
|
+
|
|
76
90
|
>.k-menu-item>a {
|
|
77
91
|
color: var(--kui-color-font);
|
|
78
92
|
display: block;
|
|
93
|
+
|
|
79
94
|
&:hover {
|
|
80
95
|
color: var(--kui-color-main);
|
|
81
96
|
}
|
|
82
97
|
}
|
|
83
|
-
|
|
98
|
+
|
|
99
|
+
.k-menu-item-active {
|
|
84
100
|
color: var(--kui-color-main);
|
|
85
101
|
background-color: var(--kui-color-hover);
|
|
102
|
+
|
|
103
|
+
a {
|
|
104
|
+
color: var(--kui-color-main);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
.k-menu-item-selected {
|
|
110
|
+
color: var(--kui-color-main);
|
|
111
|
+
background-color: var(--kui-color-selected);
|
|
112
|
+
|
|
86
113
|
a {
|
|
87
114
|
color: var(--kui-color-main);
|
|
88
115
|
}
|
|
89
116
|
}
|
|
90
|
-
|
|
117
|
+
|
|
118
|
+
>.k-menu-submenu-selected,
|
|
119
|
+
>.k-menu-submenu-active {
|
|
91
120
|
>.k-menu-submenu-title {
|
|
92
121
|
color: var(--kui-color-main);
|
|
93
122
|
}
|
|
94
123
|
}
|
|
95
|
-
|
|
124
|
+
|
|
125
|
+
.k-menu-item-disabled,
|
|
126
|
+
.k-menu-submenu-disabled {
|
|
96
127
|
color: var(--kui-color-disable-color);
|
|
97
128
|
cursor: not-allowed;
|
|
98
129
|
}
|
|
130
|
+
|
|
99
131
|
.k-menu-submenu-inner {
|
|
100
132
|
display: flex;
|
|
101
133
|
align-items: center;
|
|
102
134
|
}
|
|
135
|
+
|
|
103
136
|
//light-end
|
|
104
137
|
&-inline {
|
|
105
138
|
border-right: 1px solid var(--kui-color-border);
|
|
106
139
|
width: 100%;
|
|
107
140
|
display: inline-block;
|
|
108
|
-
|
|
141
|
+
|
|
142
|
+
.k-menu-item,
|
|
143
|
+
.k-menu-submenu {
|
|
109
144
|
line-height: 1;
|
|
110
145
|
font-size: 14px;
|
|
111
146
|
list-style: none;
|
|
147
|
+
|
|
112
148
|
a {
|
|
113
149
|
display: block;
|
|
114
150
|
margin: 0 -24px 0 -48px;
|
|
115
151
|
padding: 0 24px 0 48px;
|
|
116
152
|
}
|
|
117
153
|
}
|
|
154
|
+
|
|
118
155
|
.k-menu-item-group-title {
|
|
119
156
|
padding: 0 16px 0 32px;
|
|
120
157
|
}
|
|
158
|
+
|
|
121
159
|
.k-menu {
|
|
122
160
|
border: 0;
|
|
123
161
|
list-style: none;
|
|
124
162
|
margin: 0;
|
|
125
163
|
padding: 0;
|
|
126
164
|
}
|
|
165
|
+
|
|
127
166
|
.k-menu-item {
|
|
128
167
|
padding: 10px 12px;
|
|
129
168
|
// width: calc(100% + 1px);
|
|
@@ -134,6 +173,7 @@
|
|
|
134
173
|
border-radius: var(--kui-border-radius);
|
|
135
174
|
display: flex;
|
|
136
175
|
align-items: center;
|
|
176
|
+
|
|
137
177
|
&::after {
|
|
138
178
|
content: '';
|
|
139
179
|
position: absolute;
|
|
@@ -144,15 +184,24 @@
|
|
|
144
184
|
right: 0;
|
|
145
185
|
transition: all .3s cubic-bezier(.215, .61, .355, 1);
|
|
146
186
|
}
|
|
187
|
+
&:active{
|
|
188
|
+
background: var(--kui-color-actived);
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
.k-menu-submenu-active .k-menu-submenu-title:active{
|
|
192
|
+
background: var(--kui-color-actived);
|
|
147
193
|
}
|
|
148
194
|
.k-menu-submenu {
|
|
149
195
|
.k-menu-item {
|
|
150
196
|
padding: 10px 24px 10px 12px;
|
|
197
|
+
|
|
151
198
|
&:first-child {
|
|
152
199
|
margin-top: 0;
|
|
153
200
|
}
|
|
154
201
|
}
|
|
202
|
+
|
|
155
203
|
.k-menu-submenu {
|
|
204
|
+
|
|
156
205
|
//doto:
|
|
157
206
|
// text-indent: 12px;
|
|
158
207
|
// padding-left: 12px;
|
|
@@ -161,6 +210,7 @@
|
|
|
161
210
|
}
|
|
162
211
|
}
|
|
163
212
|
}
|
|
213
|
+
|
|
164
214
|
.k-menu-submenu-title {
|
|
165
215
|
padding: 10px 36px 10px 12px;
|
|
166
216
|
height: 40px;
|
|
@@ -171,52 +221,66 @@
|
|
|
171
221
|
margin: 0 8px 8px 8px;
|
|
172
222
|
border-radius: var(--kui-border-radius);
|
|
173
223
|
font-weight: 600;
|
|
224
|
+
|
|
174
225
|
.k-menu-submenu-arrow {
|
|
175
226
|
position: absolute;
|
|
176
227
|
right: 16px;
|
|
177
228
|
top: 50%;
|
|
178
229
|
transform: translateY(-50%);
|
|
179
230
|
}
|
|
231
|
+
|
|
180
232
|
&:hover {
|
|
181
233
|
background-color: var(--kui-color-main-90);
|
|
182
234
|
}
|
|
183
235
|
}
|
|
236
|
+
|
|
184
237
|
.k-menu-submenu-popup {
|
|
185
238
|
transition: all 0.3s cubic-bezier(.215, .61, .355, 1);
|
|
186
239
|
overflow: hidden;
|
|
187
240
|
position: static;
|
|
241
|
+
|
|
188
242
|
.k-menu {
|
|
189
243
|
// background-color: var(--kui-color-gray-90);
|
|
190
244
|
}
|
|
191
245
|
}
|
|
246
|
+
|
|
192
247
|
>.k-menu-submenu-opened>.k-menu-submenu-title>.k-menu-submenu-arrow {
|
|
193
248
|
transform: rotate(-180deg) translateY(50%);
|
|
194
249
|
}
|
|
250
|
+
|
|
195
251
|
//light
|
|
196
252
|
.k-menu-item-selected {
|
|
197
253
|
background-color: var(--kui-color-selected);
|
|
254
|
+
|
|
198
255
|
&::after {
|
|
199
256
|
display: none;
|
|
200
257
|
}
|
|
201
258
|
}
|
|
202
259
|
}
|
|
260
|
+
|
|
203
261
|
&-vertical {
|
|
204
262
|
width: 100%;
|
|
205
263
|
border-right: 1px solid var(--kui-color-border);
|
|
206
264
|
display: inline-block;
|
|
265
|
+
|
|
207
266
|
.k-menu-item-selected {
|
|
208
267
|
background-color: var(--kui-color-selected);
|
|
209
268
|
}
|
|
210
|
-
|
|
269
|
+
|
|
270
|
+
.k-menu-submenu-active,
|
|
271
|
+
.k-menu-submenu-selected {
|
|
211
272
|
.k-menu-submenu-title {
|
|
212
273
|
color: var(--kui-color-main);
|
|
213
274
|
}
|
|
214
275
|
}
|
|
276
|
+
|
|
215
277
|
.k-menu-submenu-inner {
|
|
216
278
|
white-space: nowrap;
|
|
217
279
|
padding-right: 16px;
|
|
218
280
|
}
|
|
219
|
-
|
|
281
|
+
|
|
282
|
+
>.k-menu-item,
|
|
283
|
+
>.k-menu-submenu {
|
|
220
284
|
line-height: 1;
|
|
221
285
|
position: relative;
|
|
222
286
|
cursor: pointer;
|
|
@@ -224,17 +288,24 @@
|
|
|
224
288
|
z-index: 3;
|
|
225
289
|
list-style: none;
|
|
226
290
|
}
|
|
227
|
-
|
|
291
|
+
|
|
292
|
+
.k-menu-item,
|
|
293
|
+
.k-menu-submenu-title {
|
|
228
294
|
padding: 10px 12px;
|
|
229
295
|
margin: 8px;
|
|
230
296
|
line-height: 1;
|
|
231
297
|
border-radius: var(--kui-border-radius);
|
|
232
298
|
display: flex;
|
|
233
299
|
align-items: center;
|
|
300
|
+
|
|
234
301
|
&:hover {
|
|
235
302
|
background-color: var(--kui-color-main-90);
|
|
236
303
|
}
|
|
304
|
+
&:active{
|
|
305
|
+
background-color: var(--kui-color-actived);
|
|
306
|
+
}
|
|
237
307
|
}
|
|
308
|
+
|
|
238
309
|
.k-menu-submenu-popup {
|
|
239
310
|
position: absolute;
|
|
240
311
|
top: 0;
|
|
@@ -242,6 +313,7 @@
|
|
|
242
313
|
position: absolute;
|
|
243
314
|
z-index: 1001;
|
|
244
315
|
min-width: 160px;
|
|
316
|
+
|
|
245
317
|
// box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
|
|
246
318
|
// border-radius: var(--kui-border-radius);
|
|
247
319
|
// margin-left: 5px;
|
|
@@ -250,29 +322,36 @@
|
|
|
250
322
|
border: none;
|
|
251
323
|
margin: 0;
|
|
252
324
|
list-style: none;
|
|
325
|
+
|
|
253
326
|
.k-menu-item-group-title {
|
|
254
327
|
line-height: 1;
|
|
255
328
|
padding: 0 12px;
|
|
256
329
|
}
|
|
330
|
+
|
|
257
331
|
.k-menu-item-group-list .k-menu-item {
|
|
258
332
|
position: relative;
|
|
259
333
|
}
|
|
334
|
+
|
|
260
335
|
.k-menu-item {
|
|
261
336
|
line-height: 1;
|
|
337
|
+
|
|
262
338
|
&:first-child {
|
|
263
339
|
border-top-left-radius: var(--kui-border-radius);
|
|
264
340
|
border-top-right-radius: var(--kui-border-radius);
|
|
265
341
|
}
|
|
342
|
+
|
|
266
343
|
&:last-child {
|
|
267
344
|
border-bottom-left-radius: var(--kui-border-radius);
|
|
268
345
|
border-bottom-right-radius: var(--kui-border-radius);
|
|
269
346
|
}
|
|
270
347
|
}
|
|
271
348
|
}
|
|
349
|
+
|
|
272
350
|
.k-menu-submenu {
|
|
273
351
|
position: relative;
|
|
274
352
|
}
|
|
275
353
|
}
|
|
354
|
+
|
|
276
355
|
>.k-menu-submenu>.k-menu-submenu-title>.k-menu-submenu-arrow {
|
|
277
356
|
position: absolute;
|
|
278
357
|
right: 16px;
|
|
@@ -281,15 +360,19 @@
|
|
|
281
360
|
transform: translateY(-50%);
|
|
282
361
|
}
|
|
283
362
|
}
|
|
363
|
+
|
|
284
364
|
&-horizontal {
|
|
285
365
|
border-bottom: 1px solid var(--kui-color-border);
|
|
286
366
|
white-space: nowrap;
|
|
287
367
|
font-size: 0;
|
|
288
368
|
line-height: 1;
|
|
369
|
+
|
|
289
370
|
.k-menu-icon-temp {
|
|
290
371
|
display: none;
|
|
291
372
|
}
|
|
292
|
-
|
|
373
|
+
|
|
374
|
+
>.k-menu-item,
|
|
375
|
+
>.k-menu-submenu {
|
|
293
376
|
line-height: 1;
|
|
294
377
|
margin: 0 16px;
|
|
295
378
|
position: relative;
|
|
@@ -305,21 +388,29 @@
|
|
|
305
388
|
align-items: center;
|
|
306
389
|
min-height: 20px;
|
|
307
390
|
}
|
|
308
|
-
|
|
391
|
+
|
|
392
|
+
>.k-menu-item,
|
|
393
|
+
>.k-menu-submenu-title {
|
|
309
394
|
// margin: 0 16px;
|
|
310
395
|
padding: 10px 0;
|
|
311
396
|
}
|
|
397
|
+
|
|
312
398
|
.k-menu-submenu-title {
|
|
313
399
|
padding: 10px 0;
|
|
314
400
|
display: flex;
|
|
315
401
|
align-items: center;
|
|
316
402
|
}
|
|
403
|
+
|
|
317
404
|
.k-menu-submenu {
|
|
318
|
-
|
|
405
|
+
|
|
406
|
+
.k-menu-item,
|
|
407
|
+
.k-menu-submenu {
|
|
319
408
|
display: block;
|
|
320
409
|
}
|
|
410
|
+
|
|
321
411
|
.k-menu-submenu {
|
|
322
412
|
position: relative;
|
|
413
|
+
|
|
323
414
|
// .k-menu-submenu-arrow {
|
|
324
415
|
// transform: rotate(-90deg) translateX(50%);
|
|
325
416
|
// top: 50%;
|
|
@@ -333,48 +424,63 @@
|
|
|
333
424
|
}
|
|
334
425
|
}
|
|
335
426
|
}
|
|
427
|
+
|
|
336
428
|
>.k-menu-submenu>.k-menu-submenu-title>.k-menu-submenu-arrow {
|
|
337
429
|
// top: 50%;
|
|
338
430
|
// transform: translateY(-50%);
|
|
339
431
|
}
|
|
432
|
+
|
|
340
433
|
>.k-menu-submenu-active>.k-menu-submenu-title>.k-menu-submenu-arrow {
|
|
341
434
|
transform: rotate(-180deg);
|
|
342
435
|
}
|
|
436
|
+
|
|
343
437
|
.k-menu-item-group-title {
|
|
344
438
|
font-size: 12px;
|
|
345
439
|
line-height: 1;
|
|
346
440
|
padding: 0 12px;
|
|
347
441
|
}
|
|
442
|
+
|
|
348
443
|
//light
|
|
349
|
-
>.k-menu-item-selected,
|
|
444
|
+
>.k-menu-item-selected,
|
|
445
|
+
>.k-menu-submenu-selected,
|
|
446
|
+
>.k-menu-item-active,
|
|
447
|
+
>.k-menu-submenu-active {
|
|
350
448
|
border-bottom-color: var(--kui-color-main);
|
|
351
449
|
background-color: transparent;
|
|
352
450
|
}
|
|
451
|
+
|
|
353
452
|
.k-menu-submenu {
|
|
354
453
|
.k-menu-item-selected {
|
|
355
454
|
background-color: var(--kui-color-selected);
|
|
356
455
|
}
|
|
357
456
|
}
|
|
358
457
|
}
|
|
458
|
+
|
|
359
459
|
&-inline-collapased {
|
|
360
460
|
width: 60px;
|
|
461
|
+
|
|
361
462
|
>.k-menu-submenu {
|
|
362
463
|
padding: 0;
|
|
363
464
|
}
|
|
364
|
-
|
|
465
|
+
|
|
466
|
+
>.k-menu-item,
|
|
467
|
+
>.k-menu-submenu>.k-menu-submenu-title {
|
|
365
468
|
// padding: 0 ;
|
|
366
469
|
text-overflow: clip;
|
|
367
470
|
overflow: hidden;
|
|
368
471
|
// text-align: center;
|
|
369
472
|
padding: 10px 12px;
|
|
473
|
+
|
|
370
474
|
.k-icon {
|
|
371
475
|
// font-size: 16px;
|
|
372
476
|
// margin-right: 0;
|
|
373
477
|
}
|
|
374
478
|
}
|
|
479
|
+
|
|
375
480
|
&>.k-menu-submenu>.k-menu-submenu-title>.k-menu-submenu-arrow {
|
|
376
481
|
display: none;
|
|
377
482
|
}
|
|
483
|
+
|
|
378
484
|
.k-icon {
|
|
379
485
|
&+span {
|
|
380
486
|
// width: 0;
|
|
@@ -384,6 +490,7 @@
|
|
|
384
490
|
}
|
|
385
491
|
}
|
|
386
492
|
}
|
|
493
|
+
|
|
387
494
|
.k-menu-item-group-list {
|
|
388
495
|
margin: 0;
|
|
389
496
|
}
|
|
@@ -393,6 +500,7 @@
|
|
|
393
500
|
from {
|
|
394
501
|
opacity: 1;
|
|
395
502
|
}
|
|
503
|
+
|
|
396
504
|
to {
|
|
397
505
|
opacity: 0;
|
|
398
506
|
}
|
|
@@ -401,35 +509,44 @@
|
|
|
401
509
|
.k-menu-submenu-popup {
|
|
402
510
|
position: absolute;
|
|
403
511
|
z-index: 1001;
|
|
512
|
+
|
|
404
513
|
>.k-menu-submenu-popup {
|
|
405
514
|
box-sizing: content-box;
|
|
406
515
|
min-width: 160px;
|
|
516
|
+
|
|
407
517
|
.k-menu-item-group-title {
|
|
408
518
|
padding: 0 16px 0 12px;
|
|
409
519
|
}
|
|
520
|
+
|
|
410
521
|
.k-menu-item-group-list {
|
|
411
522
|
margin: 0;
|
|
412
523
|
}
|
|
524
|
+
|
|
413
525
|
.k-menu {
|
|
414
526
|
margin: 0;
|
|
415
527
|
box-shadow: 0 1px 6px rgba(0, 0, 0, .2);
|
|
416
528
|
border-radius: var(--kui-border-radius);
|
|
417
529
|
background-color: var(--kui-color-control-10);
|
|
530
|
+
|
|
418
531
|
>.k-menu-item {
|
|
419
532
|
line-height: 1;
|
|
420
533
|
display: flex;
|
|
421
534
|
align-items: center;
|
|
535
|
+
|
|
422
536
|
&:first-child {
|
|
423
537
|
border-top-left-radius: var(--kui-border-radius);
|
|
424
538
|
border-top-right-radius: var(--kui-border-radius);
|
|
425
539
|
}
|
|
540
|
+
|
|
426
541
|
&:last-child {
|
|
427
542
|
border-bottom-left-radius: var(--kui-border-radius);
|
|
428
543
|
border-bottom-right-radius: var(--kui-border-radius);
|
|
429
544
|
}
|
|
430
545
|
}
|
|
546
|
+
|
|
431
547
|
.k-menu-item-group {
|
|
432
548
|
line-height: 1;
|
|
549
|
+
|
|
433
550
|
&:last-child {
|
|
434
551
|
.k-menu-item {
|
|
435
552
|
&:last-child {
|
|
@@ -440,19 +557,24 @@
|
|
|
440
557
|
}
|
|
441
558
|
}
|
|
442
559
|
}
|
|
560
|
+
|
|
443
561
|
.k-menu-item-icon+a {
|
|
444
562
|
display: inline-block;
|
|
445
563
|
}
|
|
446
564
|
}
|
|
565
|
+
|
|
447
566
|
.k-menu-submenu {
|
|
448
567
|
position: relative;
|
|
568
|
+
|
|
449
569
|
.k-menu-submenu-popup {
|
|
450
570
|
padding-left: 5px;
|
|
451
571
|
left: 100%;
|
|
452
572
|
}
|
|
453
573
|
}
|
|
574
|
+
|
|
454
575
|
.k-menu-vertical {
|
|
455
576
|
border-right: none;
|
|
577
|
+
|
|
456
578
|
.k-menu-icon-temp {
|
|
457
579
|
display: none;
|
|
458
580
|
}
|
|
@@ -464,6 +586,7 @@
|
|
|
464
586
|
transform: scale(.8);
|
|
465
587
|
opacity: 0;
|
|
466
588
|
}
|
|
589
|
+
|
|
467
590
|
100% {
|
|
468
591
|
transform: scale(1);
|
|
469
592
|
opacity: 1;
|
|
@@ -475,19 +598,22 @@
|
|
|
475
598
|
transform: scale(1);
|
|
476
599
|
opacity: 1;
|
|
477
600
|
}
|
|
601
|
+
|
|
478
602
|
100% {
|
|
479
603
|
transform: scale(.8);
|
|
480
604
|
opacity: 0;
|
|
481
605
|
}
|
|
482
606
|
}
|
|
483
607
|
|
|
484
|
-
.k-menu-submenu-fade-enter-active,
|
|
608
|
+
.k-menu-submenu-fade-enter-active,
|
|
609
|
+
.k-dropdown-menu-submenu-fade-enter-active {
|
|
485
610
|
animation-fill-mode: both;
|
|
486
611
|
transform-origin: 0% 0%;
|
|
487
612
|
animation: k-menu-zoom-in 0.2s cubic-bezier(.215, .61, .355, 1);
|
|
488
613
|
}
|
|
489
614
|
|
|
490
|
-
.k-menu-submenu-fade-leave-active,
|
|
615
|
+
.k-menu-submenu-fade-leave-active,
|
|
616
|
+
.k-dropdown-menu-submenu-fade-leave-active {
|
|
491
617
|
animation-fill-mode: both;
|
|
492
618
|
transform-origin: 0% 0%;
|
|
493
619
|
animation: k-menu-zoom-out 0.2s cubic-bezier(.215, .61, .355, 1);
|
|
@@ -498,6 +624,7 @@
|
|
|
498
624
|
opacity: 0;
|
|
499
625
|
transform: scaleY(0)
|
|
500
626
|
}
|
|
627
|
+
|
|
501
628
|
to {
|
|
502
629
|
opacity: 1;
|
|
503
630
|
transform: scaleY(1)
|
|
@@ -509,6 +636,7 @@
|
|
|
509
636
|
opacity: 1;
|
|
510
637
|
transform: scaleY(1)
|
|
511
638
|
}
|
|
639
|
+
|
|
512
640
|
to {
|
|
513
641
|
opacity: 0;
|
|
514
642
|
transform: scaleY(0)
|
|
@@ -527,17 +655,24 @@
|
|
|
527
655
|
&[k-placement="bottom-left"] {
|
|
528
656
|
animation: dropDownIn .3s;
|
|
529
657
|
}
|
|
530
|
-
|
|
658
|
+
|
|
659
|
+
&[k-placement="left-bottom"],
|
|
660
|
+
&[k-placement="right-top"],
|
|
661
|
+
&[k-placement="right-bottom"] {
|
|
531
662
|
animation-fill-mode: both;
|
|
532
663
|
animation: k-menu-zoom-in 0.2s cubic-bezier(.215, .61, .355, 1);
|
|
533
664
|
}
|
|
534
665
|
}
|
|
535
666
|
|
|
536
667
|
.k-menu-submenu-popup-leave-active {
|
|
537
|
-
|
|
668
|
+
|
|
669
|
+
&[k-placement="left-bottom"],
|
|
670
|
+
&[k-placement="right-top"],
|
|
671
|
+
&[k-placement="right-bottom"] {
|
|
538
672
|
animation-fill-mode: both;
|
|
539
673
|
animation: k-menu-zoom-out 0.2s cubic-bezier(.215, .61, .355, 1);
|
|
540
674
|
}
|
|
675
|
+
|
|
541
676
|
&[k-placement="bottom-left"] {
|
|
542
677
|
animation: dropDownOut .3s;
|
|
543
678
|
}
|
|
@@ -559,6 +694,7 @@
|
|
|
559
694
|
transform-origin: 0% 0%;
|
|
560
695
|
opacity: 0;
|
|
561
696
|
}
|
|
697
|
+
|
|
562
698
|
100% {
|
|
563
699
|
transform: scaleY(1);
|
|
564
700
|
transform-origin: 0% 0%;
|
|
@@ -572,6 +708,7 @@
|
|
|
572
708
|
transform-origin: 0% 0%;
|
|
573
709
|
opacity: 1;
|
|
574
710
|
}
|
|
711
|
+
|
|
575
712
|
100% {
|
|
576
713
|
transform: scaleY(0);
|
|
577
714
|
transform-origin: 0% 0%;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
<script>
|
|
2
|
-
import Info from './info'
|
|
3
|
-
import Base from './base'
|
|
4
|
-
import Icon from './icon'
|
|
5
|
-
import Types from './types'
|
|
6
|
-
import Close from './close'
|
|
2
|
+
import Info from './info.md'
|
|
3
|
+
import Base from './base.md'
|
|
4
|
+
import Icon from './icon.md'
|
|
5
|
+
import Types from './types.md'
|
|
6
|
+
import Close from './close.md'
|
|
7
7
|
import CN from '../index.md'
|
|
8
8
|
export default {
|
|
9
9
|
render() {
|
|
10
10
|
return (
|
|
11
|
-
<div>
|
|
11
|
+
<div class="demo-message">
|
|
12
12
|
<Info class="typo" />
|
|
13
13
|
<Base />
|
|
14
14
|
<Icon />
|
|
@@ -19,4 +19,13 @@ export default {
|
|
|
19
19
|
)
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
</script>
|
|
22
|
+
</script>
|
|
23
|
+
<style lang="less">
|
|
24
|
+
.demo-message {
|
|
25
|
+
.k-btn{
|
|
26
|
+
margin-right: 10px;
|
|
27
|
+
margin-bottom: 10px;
|
|
28
|
+
min-width: 70px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
</style>
|
|
@@ -19,7 +19,9 @@
|
|
|
19
19
|
</Space>
|
|
20
20
|
</Modal>
|
|
21
21
|
|
|
22
|
-
<Modal title="
|
|
22
|
+
<Modal title="基本对话框" v-model="visible" @ok="okHandle">
|
|
23
|
+
<p>This is the content of a basic modal.</p>
|
|
24
|
+
<p>More content...</p></Modal>
|
|
23
25
|
</div>
|
|
24
26
|
</template>
|
|
25
27
|
<script>
|
|
@@ -54,8 +54,9 @@ export default{
|
|
|
54
54
|
for(var o = 0; o < 3; o++){
|
|
55
55
|
setTimeout(e=>{
|
|
56
56
|
this.$Modal.confirm({
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
title:'一次性弹出3个框',
|
|
58
|
+
content:'给你一个惊喜!',
|
|
59
|
+
cancelText:'全部关闭',
|
|
59
60
|
onCancel: () => {
|
|
60
61
|
this.$Modal.destroyAll()
|
|
61
62
|
},
|