kui-vue 3.3.10 → 3.3.12
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/clone.js +1 -2
- package/components/_tool/utils.js +3 -3
- package/components/alert/styles/index.less +2 -2
- package/components/avatar/AvatarGroup.jsx +2 -2
- package/components/backtop/styles/index.less +44 -47
- package/components/base/drop.jsx +3 -2
- package/components/base/pop.jsx +34 -20
- package/components/button/button.jsx +5 -11
- package/components/button/index.js +1 -8
- package/components/button/styles/index.less +2 -2
- package/components/collapse/styles/index.less +3 -16
- package/components/colorPicker/colorpicker.jsx +1 -1
- package/components/colorPicker/styles/index.less +23 -21
- package/components/datePicker/datecalendar.jsx +5 -2
- package/components/datePicker/datepicker.jsx +30 -53
- package/components/datePicker/demo/format.md +1 -1
- package/components/datePicker/styles/calendar.less +31 -10
- package/components/datePicker/styles/datepicker.less +7 -16
- package/components/drawer/drawer.jsx +1 -1
- package/components/dropdown/demo/base.md +1 -1
- package/components/dropdown/demo/rightmenu.md +5 -5
- package/components/dropdown/dropdown.jsx +11 -3
- package/components/dropdown/styles/index.less +31 -13
- package/components/form/demo/valid.md +1 -1
- package/components/form/form.jsx +1 -1
- package/components/form/styles/index.less +3 -14
- package/components/fragment/component.js +98 -0
- package/components/fragment/frag.js +362 -0
- package/components/fragment/fragment.js +19 -0
- package/components/fragment/index.js +104 -0
- package/components/fragment/ssr.js +4 -0
- package/components/icon/demo/search.vue +1 -1
- package/components/image/styles/index.less +41 -17
- package/components/index.js +2 -2
- package/components/inputNumber/styles/index.less +5 -1
- package/components/menu/menuitem.jsx +12 -7
- package/components/menu/styles/index.less +189 -202
- package/components/menu/submenu.jsx +106 -37
- package/components/message/styles/index.less +11 -14
- package/components/modal/index.js +1 -1
- package/components/modal/modal.jsx +2 -2
- package/components/modal/styles/index.less +227 -221
- package/components/notice/styles/index.less +19 -5
- package/components/page/styles/index.less +7 -4
- package/components/popconfirm/styles/index.less +33 -14
- package/components/poptip/styles/index.less +3 -14
- package/components/radio/button.jsx +1 -1
- package/components/select/styles/index.less +13 -33
- package/components/styles/color.less +111 -111
- package/components/switch/styles/index.less +10 -10
- package/components/table/table.jsx +1 -1
- package/components/tabs/styles/index.less +3 -2
- package/components/tag/styles/index.less +3 -15
- package/components/tooltip/styles/index.less +45 -16
- package/components/tooltip/tooltip.jsx +3 -3
- package/components/tree/node.jsx +1 -1
- package/dist/k-ui.css +2 -2
- package/dist/k-ui.js +2 -2
- package/package.json +3 -3
- package/components/menu/styles/dropmenu.less +0 -119
|
@@ -168,7 +168,7 @@
|
|
|
168
168
|
}
|
|
169
169
|
}
|
|
170
170
|
|
|
171
|
-
@keyframes
|
|
171
|
+
@keyframes k-tag-zoom {
|
|
172
172
|
from {
|
|
173
173
|
opacity: 0;
|
|
174
174
|
transform: scale(0, 0);
|
|
@@ -180,22 +180,10 @@
|
|
|
180
180
|
}
|
|
181
181
|
}
|
|
182
182
|
|
|
183
|
-
@keyframes zoomOut {
|
|
184
|
-
from {
|
|
185
|
-
opacity: 1;
|
|
186
|
-
transform: scale(1, 1);
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
to {
|
|
190
|
-
opacity: 0;
|
|
191
|
-
transform: scale(0, 0);
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
|
|
195
183
|
.k-tag-enter-active {
|
|
196
|
-
animation:
|
|
184
|
+
animation: k-tag-zoom .2s ease-out;
|
|
197
185
|
}
|
|
198
186
|
|
|
199
187
|
.k-tag-leave-active {
|
|
200
|
-
animation:
|
|
188
|
+
animation: k-tag-zoom .2s ease-out reverse;
|
|
201
189
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-tooltip {
|
|
3
4
|
display: inline-block;
|
|
4
5
|
position: relative;
|
|
@@ -8,20 +9,23 @@
|
|
|
8
9
|
line-height: 1.5;
|
|
9
10
|
position: absolute;
|
|
10
11
|
z-index: 1001;
|
|
12
|
+
|
|
11
13
|
.k-tooltip-content {
|
|
12
14
|
// min-width: 200px;
|
|
13
15
|
// .k-tooltip-inner {
|
|
14
16
|
background: @dark-back-color-10; // var(--kui-color-control-10);
|
|
15
17
|
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
|
|
16
18
|
color: #fff; //var(--kui-color-font);
|
|
17
|
-
border-radius:8px
|
|
19
|
+
border-radius: 8px; // var(--kui-border-radius);
|
|
18
20
|
position: relative;
|
|
19
21
|
// }
|
|
20
22
|
}
|
|
23
|
+
|
|
21
24
|
.k-tooltip-title {
|
|
22
25
|
padding: 8px 12px;
|
|
23
26
|
font-size: 14px;
|
|
24
27
|
}
|
|
28
|
+
|
|
25
29
|
.k-tooltip-arrow {
|
|
26
30
|
position: absolute;
|
|
27
31
|
box-sizing: border-box;
|
|
@@ -30,60 +34,72 @@
|
|
|
30
34
|
height: 7px;
|
|
31
35
|
color: @dark-back-color-10;
|
|
32
36
|
}
|
|
37
|
+
|
|
33
38
|
&[k-placement^=top] {
|
|
34
39
|
.k-tooltip-content {
|
|
35
40
|
margin-bottom: 6px;
|
|
36
41
|
}
|
|
42
|
+
|
|
37
43
|
.k-tooltip-arrow {
|
|
38
44
|
bottom: -6px;
|
|
39
45
|
}
|
|
40
46
|
}
|
|
47
|
+
|
|
41
48
|
&[k-placement=top] {
|
|
42
49
|
.k-tooltip-arrow {
|
|
43
50
|
left: 50%;
|
|
44
51
|
transform: translateX(-50%);
|
|
45
52
|
}
|
|
46
53
|
}
|
|
54
|
+
|
|
47
55
|
&[k-placement=top-right] {
|
|
48
56
|
.k-tooltip-arrow {
|
|
49
57
|
right: 12px;
|
|
50
58
|
}
|
|
51
59
|
}
|
|
60
|
+
|
|
52
61
|
&[k-placement=top-left] {
|
|
53
62
|
.k-tooltip-arrow {
|
|
54
63
|
left: 12px;
|
|
55
64
|
}
|
|
56
65
|
}
|
|
66
|
+
|
|
57
67
|
&[k-placement^=bottom] {
|
|
58
68
|
.k-tooltip-content {
|
|
59
69
|
margin-top: 6px;
|
|
60
70
|
}
|
|
71
|
+
|
|
61
72
|
.k-tooltip-arrow {
|
|
62
73
|
top: -7px;
|
|
63
74
|
height: 9px;
|
|
64
75
|
transform: rotate(180deg);
|
|
65
76
|
}
|
|
66
77
|
}
|
|
78
|
+
|
|
67
79
|
&[k-placement=bottom] {
|
|
68
80
|
.k-tooltip-arrow {
|
|
69
81
|
left: 50%;
|
|
70
82
|
transform: translateX(-50%) rotate(180deg);
|
|
71
83
|
}
|
|
72
84
|
}
|
|
85
|
+
|
|
73
86
|
&[k-placement=bottom-left] {
|
|
74
87
|
.k-tooltip-arrow {
|
|
75
88
|
left: 12px;
|
|
76
89
|
}
|
|
77
90
|
}
|
|
91
|
+
|
|
78
92
|
&[k-placement=bottom-right] {
|
|
79
93
|
.k-tooltip-arrow {
|
|
80
94
|
right: 12px;
|
|
81
95
|
}
|
|
82
96
|
}
|
|
97
|
+
|
|
83
98
|
&[k-placement^=left] {
|
|
84
99
|
.k-tooltip-content {
|
|
85
100
|
margin-right: 6px;
|
|
86
101
|
}
|
|
102
|
+
|
|
87
103
|
.k-tooltip-arrow {
|
|
88
104
|
right: -14px;
|
|
89
105
|
width: 24px;
|
|
@@ -91,26 +107,31 @@
|
|
|
91
107
|
transform: rotate(-90deg);
|
|
92
108
|
}
|
|
93
109
|
}
|
|
110
|
+
|
|
94
111
|
&[k-placement=left] {
|
|
95
112
|
.k-tooltip-arrow {
|
|
96
113
|
top: 50%;
|
|
97
114
|
transform: translateY(-50%) rotate(-90deg);
|
|
98
115
|
}
|
|
99
116
|
}
|
|
117
|
+
|
|
100
118
|
&[k-placement=left-bottom] {
|
|
101
119
|
.k-tooltip-arrow {
|
|
102
120
|
bottom: 14px;
|
|
103
121
|
}
|
|
104
122
|
}
|
|
123
|
+
|
|
105
124
|
&[k-placement=left-top] {
|
|
106
125
|
.k-tooltip-arrow {
|
|
107
126
|
top: 14px;
|
|
108
127
|
}
|
|
109
128
|
}
|
|
129
|
+
|
|
110
130
|
&[k-placement^=right] {
|
|
111
131
|
.k-tooltip-content {
|
|
112
132
|
margin-left: 6px;
|
|
113
133
|
}
|
|
134
|
+
|
|
114
135
|
.k-tooltip-arrow {
|
|
115
136
|
left: -14px;
|
|
116
137
|
width: 24px;
|
|
@@ -118,17 +139,20 @@
|
|
|
118
139
|
transform: rotate(90deg);
|
|
119
140
|
}
|
|
120
141
|
}
|
|
142
|
+
|
|
121
143
|
&[k-placement=right] {
|
|
122
144
|
.k-tooltip-arrow {
|
|
123
145
|
top: 50%;
|
|
124
146
|
transform: translateY(-50%) rotate(90deg);
|
|
125
147
|
}
|
|
126
148
|
}
|
|
149
|
+
|
|
127
150
|
&[k-placement=right-top] {
|
|
128
151
|
.k-tooltip-arrow {
|
|
129
152
|
top: 14px;
|
|
130
153
|
}
|
|
131
154
|
}
|
|
155
|
+
|
|
132
156
|
&[k-placement=right-bottom] {
|
|
133
157
|
.k-tooltip-arrow {
|
|
134
158
|
bottom: 14px;
|
|
@@ -147,6 +171,7 @@
|
|
|
147
171
|
color: #fff;
|
|
148
172
|
background-color: var(--kui-color-pink);
|
|
149
173
|
}
|
|
174
|
+
|
|
150
175
|
.k-tooltip-arrow {
|
|
151
176
|
color: var(--kui-color-pink);
|
|
152
177
|
}
|
|
@@ -157,6 +182,7 @@
|
|
|
157
182
|
color: #fff;
|
|
158
183
|
background-color: var(--kui-color-red);
|
|
159
184
|
}
|
|
185
|
+
|
|
160
186
|
.k-tooltip-arrow {
|
|
161
187
|
color: var(--kui-color-red);
|
|
162
188
|
}
|
|
@@ -167,6 +193,7 @@
|
|
|
167
193
|
color: #fff;
|
|
168
194
|
background-color: var(--kui-color-yellow);
|
|
169
195
|
}
|
|
196
|
+
|
|
170
197
|
.k-tooltip-arrow {
|
|
171
198
|
color: var(--kui-color-yellow);
|
|
172
199
|
}
|
|
@@ -177,6 +204,7 @@
|
|
|
177
204
|
color: #fff;
|
|
178
205
|
background-color: var(--kui-color-orange);
|
|
179
206
|
}
|
|
207
|
+
|
|
180
208
|
.k-tooltip-arrow {
|
|
181
209
|
color: var(--kui-color-orange);
|
|
182
210
|
}
|
|
@@ -187,6 +215,7 @@
|
|
|
187
215
|
color: #fff;
|
|
188
216
|
background-color: var(--kui-color-cyan);
|
|
189
217
|
}
|
|
218
|
+
|
|
190
219
|
.k-tooltip-arrow {
|
|
191
220
|
color: var(--kui-color-cyan);
|
|
192
221
|
}
|
|
@@ -197,6 +226,7 @@
|
|
|
197
226
|
color: #fff;
|
|
198
227
|
background-color: var(--kui-color-green);
|
|
199
228
|
}
|
|
229
|
+
|
|
200
230
|
.k-tooltip-arrow {
|
|
201
231
|
color: var(--kui-color-green);
|
|
202
232
|
}
|
|
@@ -207,6 +237,7 @@
|
|
|
207
237
|
color: #fff;
|
|
208
238
|
background-color: var(--kui-color-blue);
|
|
209
239
|
}
|
|
240
|
+
|
|
210
241
|
.k-tooltip-arrow {
|
|
211
242
|
color: var(--kui-color-blue);
|
|
212
243
|
}
|
|
@@ -217,6 +248,7 @@
|
|
|
217
248
|
color: #fff;
|
|
218
249
|
background-color: var(--kui-color-purple);
|
|
219
250
|
}
|
|
251
|
+
|
|
220
252
|
.k-tooltip-arrow {
|
|
221
253
|
color: var(--kui-color-purple);
|
|
222
254
|
}
|
|
@@ -227,6 +259,7 @@
|
|
|
227
259
|
color: #fff;
|
|
228
260
|
background-color: var(--kui-color-geekblue);
|
|
229
261
|
}
|
|
262
|
+
|
|
230
263
|
.k-tooltip-arrow {
|
|
231
264
|
color: var(--kui-color-geekblue);
|
|
232
265
|
}
|
|
@@ -237,6 +270,7 @@
|
|
|
237
270
|
color: #fff;
|
|
238
271
|
background-color: var(--kui-color-magenta);
|
|
239
272
|
}
|
|
273
|
+
|
|
240
274
|
.k-tooltip-arrow {
|
|
241
275
|
color: var(--kui-color-magenta);
|
|
242
276
|
}
|
|
@@ -247,6 +281,7 @@
|
|
|
247
281
|
color: #fff;
|
|
248
282
|
background-color: var(--kui-color-volcano);
|
|
249
283
|
}
|
|
284
|
+
|
|
250
285
|
.k-tooltip-arrow {
|
|
251
286
|
color: var(--kui-color-volcano);
|
|
252
287
|
}
|
|
@@ -257,6 +292,7 @@
|
|
|
257
292
|
color: #fff;
|
|
258
293
|
background-color: var(--kui-color-gold);
|
|
259
294
|
}
|
|
295
|
+
|
|
260
296
|
.k-tooltip-arrow {
|
|
261
297
|
color: var(--kui-color-gold);
|
|
262
298
|
}
|
|
@@ -267,43 +303,36 @@
|
|
|
267
303
|
color: #fff;
|
|
268
304
|
background-color: var(--kui-color-lime);
|
|
269
305
|
}
|
|
306
|
+
|
|
270
307
|
.k-tooltip-arrow {
|
|
271
308
|
color: var(--kui-color-lime);
|
|
272
309
|
}
|
|
273
310
|
}
|
|
274
311
|
|
|
275
|
-
@keyframes pop-zoom
|
|
312
|
+
@keyframes k-pop-zoom {
|
|
276
313
|
from {
|
|
277
314
|
opacity: 0;
|
|
278
315
|
transform: scale(.8, .8);
|
|
279
316
|
}
|
|
280
|
-
to {
|
|
281
|
-
opacity: 1;
|
|
282
|
-
transform: scale(1, 1);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
317
|
|
|
286
|
-
|
|
287
|
-
from {
|
|
318
|
+
to {
|
|
288
319
|
opacity: 1;
|
|
289
320
|
transform: scale(1, 1);
|
|
290
321
|
}
|
|
291
|
-
to {
|
|
292
|
-
opacity: 0;
|
|
293
|
-
transform: scale(.8, .8);
|
|
294
|
-
}
|
|
295
322
|
}
|
|
296
323
|
|
|
297
324
|
.k-tooltip-enter-active {
|
|
298
325
|
// transform-origin: center bottom;
|
|
299
|
-
animation: pop-zoom
|
|
326
|
+
animation: k-pop-zoom .3s;
|
|
300
327
|
}
|
|
301
328
|
|
|
302
329
|
.k-tooltip-leave-active {
|
|
303
330
|
// transform-origin: center bottom;
|
|
304
|
-
animation: pop-zoom
|
|
331
|
+
animation: k-pop-zoom .3s reverse;
|
|
305
332
|
}
|
|
306
|
-
|
|
333
|
+
|
|
334
|
+
body[theme-mode=dark],
|
|
335
|
+
*[theme-mode=dark] {
|
|
307
336
|
.k-tooltip .k-tooltip-content {
|
|
308
337
|
// background-color: #999;
|
|
309
338
|
}
|
|
@@ -24,11 +24,11 @@ export default {
|
|
|
24
24
|
let props = {
|
|
25
25
|
props: { preCls: 'tooltip', ...this.$props, updateKey: title },
|
|
26
26
|
}
|
|
27
|
-
return (
|
|
27
|
+
return (
|
|
28
28
|
<BasePop {...props}>
|
|
29
29
|
{this.$slots.default}
|
|
30
|
-
<template slot="title">{title}</template>
|
|
31
|
-
</BasePop>
|
|
30
|
+
{title ? <template slot="title">{title}</template> : null}
|
|
31
|
+
</BasePop>
|
|
32
32
|
)
|
|
33
33
|
}
|
|
34
34
|
};
|
package/components/tree/node.jsx
CHANGED
|
@@ -215,7 +215,7 @@ export default {
|
|
|
215
215
|
|
|
216
216
|
let titleCls = ['k-tree-title', { 'k-tree-title-selected': selected }]
|
|
217
217
|
|
|
218
|
-
if (Tree.$scopedSlots.title) {
|
|
218
|
+
if (Tree && Tree.$scopedSlots.title) {
|
|
219
219
|
title = Tree.$scopedSlots.title({ node: this.defaultData, parent: this.getParent() })
|
|
220
220
|
}
|
|
221
221
|
let innerNode = [iconNode, title]
|