kui-vue 3.3.11 → 3.4.0
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/transfer.js +5 -5
- package/components/_tool/utils.js +2 -137
- 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 +231 -17
- package/components/base/pop.jsx +35 -21
- package/components/button/button.jsx +5 -11
- package/components/button/index.js +1 -8
- package/components/collapse/styles/index.less +3 -16
- package/components/colorPicker/colorpicker.jsx +4 -3
- package/components/colorPicker/styles/index.less +22 -43
- package/components/datePicker/datecalendar.jsx +1 -1
- package/components/datePicker/datepicker.jsx +5 -2
- package/components/datePicker/styles/datepicker.less +4 -14
- 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 +35 -13
- package/components/form/demo/align.md +1 -1
- package/components/form/demo/base.md +1 -1
- package/components/form/demo/dynamicvalid.md +1 -1
- package/components/form/demo/length.md +2 -2
- package/components/form/demo/valid.md +2 -2
- 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/input/styles/index.less +2 -2
- package/components/menu/menuitem.jsx +12 -7
- package/components/menu/styles/index.less +190 -203
- 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/popconfirm/styles/index.less +33 -14
- package/components/poptip/demo/closeinside.md +1 -1
- package/components/poptip/styles/index.less +3 -14
- package/components/radio/button.jsx +1 -1
- package/components/rate/styles/index.less +9 -1
- package/components/select/demo/base.md +1 -1
- package/components/select/demo/multiple.md +1 -1
- package/components/select/demo/theme.md +11 -13
- package/components/select/select.jsx +64 -34
- package/components/select/styles/index.less +143 -149
- 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 +48 -17
- 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 +4 -4
- package/components/menu/styles/dropmenu.less +0 -119
- /package/{README.md → readme.md} +0 -0
|
@@ -1,27 +1,33 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-tooltip {
|
|
3
4
|
display: inline-block;
|
|
4
|
-
position: relative;
|
|
5
5
|
max-width: 256px;
|
|
6
6
|
font-size: 12px;
|
|
7
7
|
word-break: break-word;
|
|
8
8
|
line-height: 1.5;
|
|
9
9
|
position: absolute;
|
|
10
10
|
z-index: 1001;
|
|
11
|
+
transform: translateZ(0);
|
|
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;
|
|
21
|
+
min-width: 36px;
|
|
19
22
|
// }
|
|
20
23
|
}
|
|
24
|
+
|
|
21
25
|
.k-tooltip-title {
|
|
22
26
|
padding: 8px 12px;
|
|
23
27
|
font-size: 14px;
|
|
28
|
+
text-align: center;
|
|
24
29
|
}
|
|
30
|
+
|
|
25
31
|
.k-tooltip-arrow {
|
|
26
32
|
position: absolute;
|
|
27
33
|
box-sizing: border-box;
|
|
@@ -30,60 +36,72 @@
|
|
|
30
36
|
height: 7px;
|
|
31
37
|
color: @dark-back-color-10;
|
|
32
38
|
}
|
|
39
|
+
|
|
33
40
|
&[k-placement^=top] {
|
|
34
41
|
.k-tooltip-content {
|
|
35
42
|
margin-bottom: 6px;
|
|
36
43
|
}
|
|
44
|
+
|
|
37
45
|
.k-tooltip-arrow {
|
|
38
46
|
bottom: -6px;
|
|
39
47
|
}
|
|
40
48
|
}
|
|
49
|
+
|
|
41
50
|
&[k-placement=top] {
|
|
42
51
|
.k-tooltip-arrow {
|
|
43
52
|
left: 50%;
|
|
44
53
|
transform: translateX(-50%);
|
|
45
54
|
}
|
|
46
55
|
}
|
|
56
|
+
|
|
47
57
|
&[k-placement=top-right] {
|
|
48
58
|
.k-tooltip-arrow {
|
|
49
59
|
right: 12px;
|
|
50
60
|
}
|
|
51
61
|
}
|
|
62
|
+
|
|
52
63
|
&[k-placement=top-left] {
|
|
53
64
|
.k-tooltip-arrow {
|
|
54
65
|
left: 12px;
|
|
55
66
|
}
|
|
56
67
|
}
|
|
68
|
+
|
|
57
69
|
&[k-placement^=bottom] {
|
|
58
70
|
.k-tooltip-content {
|
|
59
71
|
margin-top: 6px;
|
|
60
72
|
}
|
|
73
|
+
|
|
61
74
|
.k-tooltip-arrow {
|
|
62
75
|
top: -7px;
|
|
63
76
|
height: 9px;
|
|
64
77
|
transform: rotate(180deg);
|
|
65
78
|
}
|
|
66
79
|
}
|
|
80
|
+
|
|
67
81
|
&[k-placement=bottom] {
|
|
68
82
|
.k-tooltip-arrow {
|
|
69
83
|
left: 50%;
|
|
70
84
|
transform: translateX(-50%) rotate(180deg);
|
|
71
85
|
}
|
|
72
86
|
}
|
|
87
|
+
|
|
73
88
|
&[k-placement=bottom-left] {
|
|
74
89
|
.k-tooltip-arrow {
|
|
75
90
|
left: 12px;
|
|
76
91
|
}
|
|
77
92
|
}
|
|
93
|
+
|
|
78
94
|
&[k-placement=bottom-right] {
|
|
79
95
|
.k-tooltip-arrow {
|
|
80
96
|
right: 12px;
|
|
81
97
|
}
|
|
82
98
|
}
|
|
99
|
+
|
|
83
100
|
&[k-placement^=left] {
|
|
84
101
|
.k-tooltip-content {
|
|
85
102
|
margin-right: 6px;
|
|
86
103
|
}
|
|
104
|
+
|
|
87
105
|
.k-tooltip-arrow {
|
|
88
106
|
right: -14px;
|
|
89
107
|
width: 24px;
|
|
@@ -91,26 +109,31 @@
|
|
|
91
109
|
transform: rotate(-90deg);
|
|
92
110
|
}
|
|
93
111
|
}
|
|
112
|
+
|
|
94
113
|
&[k-placement=left] {
|
|
95
114
|
.k-tooltip-arrow {
|
|
96
115
|
top: 50%;
|
|
97
116
|
transform: translateY(-50%) rotate(-90deg);
|
|
98
117
|
}
|
|
99
118
|
}
|
|
119
|
+
|
|
100
120
|
&[k-placement=left-bottom] {
|
|
101
121
|
.k-tooltip-arrow {
|
|
102
122
|
bottom: 14px;
|
|
103
123
|
}
|
|
104
124
|
}
|
|
125
|
+
|
|
105
126
|
&[k-placement=left-top] {
|
|
106
127
|
.k-tooltip-arrow {
|
|
107
128
|
top: 14px;
|
|
108
129
|
}
|
|
109
130
|
}
|
|
131
|
+
|
|
110
132
|
&[k-placement^=right] {
|
|
111
133
|
.k-tooltip-content {
|
|
112
134
|
margin-left: 6px;
|
|
113
135
|
}
|
|
136
|
+
|
|
114
137
|
.k-tooltip-arrow {
|
|
115
138
|
left: -14px;
|
|
116
139
|
width: 24px;
|
|
@@ -118,17 +141,20 @@
|
|
|
118
141
|
transform: rotate(90deg);
|
|
119
142
|
}
|
|
120
143
|
}
|
|
144
|
+
|
|
121
145
|
&[k-placement=right] {
|
|
122
146
|
.k-tooltip-arrow {
|
|
123
147
|
top: 50%;
|
|
124
148
|
transform: translateY(-50%) rotate(90deg);
|
|
125
149
|
}
|
|
126
150
|
}
|
|
151
|
+
|
|
127
152
|
&[k-placement=right-top] {
|
|
128
153
|
.k-tooltip-arrow {
|
|
129
154
|
top: 14px;
|
|
130
155
|
}
|
|
131
156
|
}
|
|
157
|
+
|
|
132
158
|
&[k-placement=right-bottom] {
|
|
133
159
|
.k-tooltip-arrow {
|
|
134
160
|
bottom: 14px;
|
|
@@ -147,6 +173,7 @@
|
|
|
147
173
|
color: #fff;
|
|
148
174
|
background-color: var(--kui-color-pink);
|
|
149
175
|
}
|
|
176
|
+
|
|
150
177
|
.k-tooltip-arrow {
|
|
151
178
|
color: var(--kui-color-pink);
|
|
152
179
|
}
|
|
@@ -157,6 +184,7 @@
|
|
|
157
184
|
color: #fff;
|
|
158
185
|
background-color: var(--kui-color-red);
|
|
159
186
|
}
|
|
187
|
+
|
|
160
188
|
.k-tooltip-arrow {
|
|
161
189
|
color: var(--kui-color-red);
|
|
162
190
|
}
|
|
@@ -167,6 +195,7 @@
|
|
|
167
195
|
color: #fff;
|
|
168
196
|
background-color: var(--kui-color-yellow);
|
|
169
197
|
}
|
|
198
|
+
|
|
170
199
|
.k-tooltip-arrow {
|
|
171
200
|
color: var(--kui-color-yellow);
|
|
172
201
|
}
|
|
@@ -177,6 +206,7 @@
|
|
|
177
206
|
color: #fff;
|
|
178
207
|
background-color: var(--kui-color-orange);
|
|
179
208
|
}
|
|
209
|
+
|
|
180
210
|
.k-tooltip-arrow {
|
|
181
211
|
color: var(--kui-color-orange);
|
|
182
212
|
}
|
|
@@ -187,6 +217,7 @@
|
|
|
187
217
|
color: #fff;
|
|
188
218
|
background-color: var(--kui-color-cyan);
|
|
189
219
|
}
|
|
220
|
+
|
|
190
221
|
.k-tooltip-arrow {
|
|
191
222
|
color: var(--kui-color-cyan);
|
|
192
223
|
}
|
|
@@ -197,6 +228,7 @@
|
|
|
197
228
|
color: #fff;
|
|
198
229
|
background-color: var(--kui-color-green);
|
|
199
230
|
}
|
|
231
|
+
|
|
200
232
|
.k-tooltip-arrow {
|
|
201
233
|
color: var(--kui-color-green);
|
|
202
234
|
}
|
|
@@ -207,6 +239,7 @@
|
|
|
207
239
|
color: #fff;
|
|
208
240
|
background-color: var(--kui-color-blue);
|
|
209
241
|
}
|
|
242
|
+
|
|
210
243
|
.k-tooltip-arrow {
|
|
211
244
|
color: var(--kui-color-blue);
|
|
212
245
|
}
|
|
@@ -217,6 +250,7 @@
|
|
|
217
250
|
color: #fff;
|
|
218
251
|
background-color: var(--kui-color-purple);
|
|
219
252
|
}
|
|
253
|
+
|
|
220
254
|
.k-tooltip-arrow {
|
|
221
255
|
color: var(--kui-color-purple);
|
|
222
256
|
}
|
|
@@ -227,6 +261,7 @@
|
|
|
227
261
|
color: #fff;
|
|
228
262
|
background-color: var(--kui-color-geekblue);
|
|
229
263
|
}
|
|
264
|
+
|
|
230
265
|
.k-tooltip-arrow {
|
|
231
266
|
color: var(--kui-color-geekblue);
|
|
232
267
|
}
|
|
@@ -237,6 +272,7 @@
|
|
|
237
272
|
color: #fff;
|
|
238
273
|
background-color: var(--kui-color-magenta);
|
|
239
274
|
}
|
|
275
|
+
|
|
240
276
|
.k-tooltip-arrow {
|
|
241
277
|
color: var(--kui-color-magenta);
|
|
242
278
|
}
|
|
@@ -247,6 +283,7 @@
|
|
|
247
283
|
color: #fff;
|
|
248
284
|
background-color: var(--kui-color-volcano);
|
|
249
285
|
}
|
|
286
|
+
|
|
250
287
|
.k-tooltip-arrow {
|
|
251
288
|
color: var(--kui-color-volcano);
|
|
252
289
|
}
|
|
@@ -257,6 +294,7 @@
|
|
|
257
294
|
color: #fff;
|
|
258
295
|
background-color: var(--kui-color-gold);
|
|
259
296
|
}
|
|
297
|
+
|
|
260
298
|
.k-tooltip-arrow {
|
|
261
299
|
color: var(--kui-color-gold);
|
|
262
300
|
}
|
|
@@ -267,43 +305,36 @@
|
|
|
267
305
|
color: #fff;
|
|
268
306
|
background-color: var(--kui-color-lime);
|
|
269
307
|
}
|
|
308
|
+
|
|
270
309
|
.k-tooltip-arrow {
|
|
271
310
|
color: var(--kui-color-lime);
|
|
272
311
|
}
|
|
273
312
|
}
|
|
274
313
|
|
|
275
|
-
@keyframes pop-zoom
|
|
314
|
+
@keyframes k-pop-zoom {
|
|
276
315
|
from {
|
|
277
316
|
opacity: 0;
|
|
278
317
|
transform: scale(.8, .8);
|
|
279
318
|
}
|
|
280
|
-
to {
|
|
281
|
-
opacity: 1;
|
|
282
|
-
transform: scale(1, 1);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
319
|
|
|
286
|
-
|
|
287
|
-
from {
|
|
320
|
+
to {
|
|
288
321
|
opacity: 1;
|
|
289
322
|
transform: scale(1, 1);
|
|
290
323
|
}
|
|
291
|
-
to {
|
|
292
|
-
opacity: 0;
|
|
293
|
-
transform: scale(.8, .8);
|
|
294
|
-
}
|
|
295
324
|
}
|
|
296
325
|
|
|
297
326
|
.k-tooltip-enter-active {
|
|
298
327
|
// transform-origin: center bottom;
|
|
299
|
-
animation: pop-zoom
|
|
328
|
+
animation: k-pop-zoom .3s;
|
|
300
329
|
}
|
|
301
330
|
|
|
302
331
|
.k-tooltip-leave-active {
|
|
303
332
|
// transform-origin: center bottom;
|
|
304
|
-
animation: pop-zoom
|
|
333
|
+
animation: k-pop-zoom .3s reverse;
|
|
305
334
|
}
|
|
306
|
-
|
|
335
|
+
|
|
336
|
+
body[theme-mode=dark],
|
|
337
|
+
*[theme-mode=dark] {
|
|
307
338
|
.k-tooltip .k-tooltip-content {
|
|
308
339
|
// background-color: #999;
|
|
309
340
|
}
|
|
@@ -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]
|