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,14 +1,17 @@
|
|
|
1
1
|
@import '../../styles/var.less';
|
|
2
|
+
|
|
2
3
|
.k-image {
|
|
3
4
|
position: relative;
|
|
4
5
|
display: inline-block;
|
|
5
6
|
text-align: center;
|
|
6
7
|
line-height: 1;
|
|
8
|
+
|
|
7
9
|
.k-image-img {
|
|
8
10
|
width: 100%;
|
|
9
11
|
height: auto;
|
|
10
12
|
// max-height: 100%;
|
|
11
13
|
}
|
|
14
|
+
|
|
12
15
|
.k-image-loading {
|
|
13
16
|
position: absolute;
|
|
14
17
|
top: 0;
|
|
@@ -21,6 +24,7 @@
|
|
|
21
24
|
align-items: center;
|
|
22
25
|
justify-content: center;
|
|
23
26
|
}
|
|
27
|
+
|
|
24
28
|
.k-image-error {
|
|
25
29
|
font-size: 50px;
|
|
26
30
|
opacity: .3;
|
|
@@ -41,6 +45,7 @@
|
|
|
41
45
|
left: 0;
|
|
42
46
|
z-index: 1001;
|
|
43
47
|
display: flex;
|
|
48
|
+
|
|
44
49
|
.k-image-preview-mask {
|
|
45
50
|
position: fixed;
|
|
46
51
|
top: 0;
|
|
@@ -51,6 +56,7 @@
|
|
|
51
56
|
height: 100%;
|
|
52
57
|
background-color: var(--kui-color-mask);
|
|
53
58
|
}
|
|
59
|
+
|
|
54
60
|
.k-image-preview-wrap {
|
|
55
61
|
position: absolute;
|
|
56
62
|
top: 0;
|
|
@@ -64,6 +70,7 @@
|
|
|
64
70
|
z-index: 1002;
|
|
65
71
|
pointer-events: none;
|
|
66
72
|
transition: all .3s;
|
|
73
|
+
|
|
67
74
|
.k-image-preview-control {
|
|
68
75
|
background-color: var(--kui-color-mask-30);
|
|
69
76
|
display: flex;
|
|
@@ -79,9 +86,11 @@
|
|
|
79
86
|
justify-content: center;
|
|
80
87
|
margin: 0;
|
|
81
88
|
padding: 0;
|
|
89
|
+
|
|
82
90
|
path {
|
|
83
91
|
stroke-width: 40px !important;
|
|
84
92
|
}
|
|
93
|
+
|
|
85
94
|
.k-image-preview-action {
|
|
86
95
|
margin: 12px;
|
|
87
96
|
color: #999;
|
|
@@ -94,11 +103,13 @@
|
|
|
94
103
|
align-items: center;
|
|
95
104
|
justify-content: center;
|
|
96
105
|
border-radius: 3px;
|
|
106
|
+
|
|
97
107
|
&:hover {
|
|
98
108
|
background-color: var(--kui-color-mask-30);
|
|
99
109
|
color: #666;
|
|
100
110
|
}
|
|
101
111
|
}
|
|
112
|
+
|
|
102
113
|
.k-image-preview-action-divider {
|
|
103
114
|
position: relative;
|
|
104
115
|
top: -.06em;
|
|
@@ -110,18 +121,23 @@
|
|
|
110
121
|
border-width: 1px 0 0;
|
|
111
122
|
background-color: var(--kui-color-border);
|
|
112
123
|
}
|
|
113
|
-
|
|
124
|
+
|
|
125
|
+
.k-image-preview-action-rotate-left .k-icon {
|
|
114
126
|
transform: rotateY(-180deg) rotate(45deg);
|
|
115
127
|
}
|
|
116
|
-
|
|
128
|
+
|
|
129
|
+
.k-image-preview-action-rotate-right .k-icon {
|
|
117
130
|
transform: rotate(45deg);
|
|
118
131
|
}
|
|
132
|
+
|
|
119
133
|
.k-image-preview-action-disabled {
|
|
120
134
|
opacity: .6;
|
|
121
135
|
cursor: not-allowed;
|
|
122
136
|
}
|
|
123
137
|
}
|
|
124
|
-
|
|
138
|
+
|
|
139
|
+
.k-image-preview-switch-left,
|
|
140
|
+
.k-image-preview-switch-right {
|
|
125
141
|
position: absolute;
|
|
126
142
|
width: 44px;
|
|
127
143
|
height: 44px;
|
|
@@ -136,29 +152,36 @@
|
|
|
136
152
|
top: 50%;
|
|
137
153
|
pointer-events: auto;
|
|
138
154
|
cursor: pointer;
|
|
155
|
+
|
|
139
156
|
&:hover {
|
|
140
157
|
background-color: var(--kui-color-main);
|
|
141
158
|
color: #fff;
|
|
142
159
|
}
|
|
143
|
-
|
|
160
|
+
|
|
161
|
+
&:active {
|
|
144
162
|
background-color: var(--kui-color-main-actived);
|
|
145
163
|
}
|
|
146
164
|
}
|
|
165
|
+
|
|
147
166
|
.k-image-preview-switch-left {
|
|
148
167
|
left: 10px;
|
|
149
168
|
transform: rotate(-90deg);
|
|
150
169
|
}
|
|
170
|
+
|
|
151
171
|
.k-image-preview-switch-right {
|
|
152
172
|
right: 10px;
|
|
153
173
|
transform: rotate(90deg);
|
|
154
174
|
}
|
|
175
|
+
|
|
155
176
|
.k-image-preview-switch-disabled {
|
|
156
177
|
cursor: not-allowed;
|
|
157
178
|
opacity: .6;
|
|
179
|
+
|
|
158
180
|
&:hover {
|
|
159
181
|
background-color: var(--kui-color-mask-30);
|
|
160
182
|
}
|
|
161
183
|
}
|
|
184
|
+
|
|
162
185
|
.k-image-preview-img-wrap {
|
|
163
186
|
position: absolute;
|
|
164
187
|
top: 0;
|
|
@@ -169,12 +192,14 @@
|
|
|
169
192
|
text-align: center;
|
|
170
193
|
// overflow: hidden;
|
|
171
194
|
pointer-events: none;
|
|
195
|
+
|
|
172
196
|
&::before {
|
|
173
197
|
display: inline-block;
|
|
174
198
|
width: 0;
|
|
175
199
|
height: 50%;
|
|
176
200
|
content: '';
|
|
177
201
|
}
|
|
202
|
+
|
|
178
203
|
.k-image-preview-img {
|
|
179
204
|
vertical-align: middle;
|
|
180
205
|
user-select: none;
|
|
@@ -184,9 +209,11 @@
|
|
|
184
209
|
max-width: 100%;
|
|
185
210
|
max-height: 100%;
|
|
186
211
|
}
|
|
212
|
+
|
|
187
213
|
video.k-image-preview-img {
|
|
188
214
|
max-height: calc(100vh - 130px);
|
|
189
215
|
}
|
|
216
|
+
|
|
190
217
|
.k-image-preview-img-error {
|
|
191
218
|
pointer-events: auto;
|
|
192
219
|
width: 60%;
|
|
@@ -207,6 +234,7 @@
|
|
|
207
234
|
}
|
|
208
235
|
}
|
|
209
236
|
}
|
|
237
|
+
|
|
210
238
|
.k-image-preview-panel {
|
|
211
239
|
background-color: var(--kui-color-mask-30);
|
|
212
240
|
position: absolute;
|
|
@@ -220,6 +248,7 @@
|
|
|
220
248
|
opacity: 1;
|
|
221
249
|
transition: all .3s;
|
|
222
250
|
color: #fff;
|
|
251
|
+
|
|
223
252
|
.k-image-preview-panel-action {
|
|
224
253
|
position: absolute;
|
|
225
254
|
left: 0;
|
|
@@ -229,18 +258,21 @@
|
|
|
229
258
|
padding: 15px 0;
|
|
230
259
|
color: #fff;
|
|
231
260
|
cursor: pointer;
|
|
261
|
+
|
|
232
262
|
.k-icon {
|
|
233
263
|
transform: rotate(90deg);
|
|
234
264
|
}
|
|
235
265
|
}
|
|
236
266
|
}
|
|
267
|
+
|
|
237
268
|
.k-image-preview-panel-hidden {
|
|
238
269
|
transform: translateX(100%);
|
|
239
270
|
opacity: 0;
|
|
240
271
|
}
|
|
241
272
|
}
|
|
242
273
|
|
|
243
|
-
.k-image-panel-enter-active,
|
|
274
|
+
.k-image-panel-enter-active,
|
|
275
|
+
.k-image-panel-leave-active {
|
|
244
276
|
transition: all .3s;
|
|
245
277
|
}
|
|
246
278
|
|
|
@@ -248,32 +280,24 @@
|
|
|
248
280
|
display: inline-block;
|
|
249
281
|
}
|
|
250
282
|
|
|
251
|
-
@keyframes k-image-zoom
|
|
283
|
+
@keyframes k-image-zoom {
|
|
252
284
|
from {
|
|
253
285
|
opacity: 0;
|
|
254
286
|
transform: scale3d(.3, .3, 0) translateZ(0);
|
|
255
287
|
}
|
|
288
|
+
|
|
256
289
|
to {
|
|
257
290
|
opacity: 1;
|
|
258
291
|
}
|
|
259
292
|
}
|
|
260
293
|
|
|
261
|
-
@keyframes k-image-zoom-out {
|
|
262
|
-
from {
|
|
263
|
-
opacity: 1;
|
|
264
|
-
}
|
|
265
|
-
to {
|
|
266
|
-
opacity: 0;
|
|
267
|
-
transform: scale3d(.3, .3, 0) translateZ(0);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
294
|
|
|
271
295
|
.k-image-zoom-enter-active {
|
|
272
|
-
animation: k-image-zoom
|
|
296
|
+
animation: k-image-zoom .25s cubic-bezier(.78, .14, .15, .86);
|
|
273
297
|
}
|
|
274
298
|
|
|
275
299
|
.k-image-zoom-leave-active {
|
|
276
|
-
animation: k-image-zoom
|
|
300
|
+
animation: k-image-zoom .25s cubic-bezier(.78, .14, .15, .86) reverse;
|
|
277
301
|
}
|
|
278
302
|
|
|
279
303
|
.k-image-preview-loading {
|
package/components/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import Alert from './alert'
|
|
|
2
2
|
import Affix from './affix'
|
|
3
3
|
import Avatar from './avatar'
|
|
4
4
|
import { Breadcrumb, BreadcrumbItem } from './breadcrumb'
|
|
5
|
-
import Button from './button'
|
|
5
|
+
import { Button,ButtonGroup } from './button'
|
|
6
6
|
import Badge from './badge'
|
|
7
7
|
import BackTop from './backtop'
|
|
8
8
|
import ColorPicker from './colorPicker'
|
|
@@ -60,7 +60,7 @@ const components = {
|
|
|
60
60
|
BackTop,
|
|
61
61
|
Badge,
|
|
62
62
|
Breadcrumb, BreadcrumbItem,
|
|
63
|
-
Button,
|
|
63
|
+
Button, ButtonGroup,
|
|
64
64
|
Card,
|
|
65
65
|
Carousel, CarouselItem,
|
|
66
66
|
Checkbox, CheckboxGroup,
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
background-image: none;
|
|
102
102
|
position: relative;
|
|
103
103
|
cursor: text;
|
|
104
|
-
transition:
|
|
104
|
+
transition: border .3s ease-in-out;
|
|
105
105
|
flex-shrink: 0;
|
|
106
106
|
&:focus {
|
|
107
107
|
// box-shadow: 0 0 5px rgba(59, 180, 242, 0.55);
|
|
@@ -157,7 +157,7 @@ select:-webkit-autofill:focus {
|
|
|
157
157
|
height: auto;
|
|
158
158
|
vertical-align: bottom;
|
|
159
159
|
font-size: 14px;
|
|
160
|
-
resize:
|
|
160
|
+
resize: vertical;
|
|
161
161
|
outline: none;
|
|
162
162
|
}
|
|
163
163
|
|
|
@@ -72,17 +72,22 @@ export default {
|
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
|
-
}
|
|
75
|
+
},
|
|
76
|
+
style: {}
|
|
77
|
+
}
|
|
78
|
+
// console.log(SubMenu.zIndex)
|
|
79
|
+
if (SubMenu && SubMenu.zIndex > 0 && (Menu && Menu.mode == 'inline' && !Menu.inlineCollapsed)) {
|
|
80
|
+
props.style.paddingLeft = (SubMenu.zIndex + 1) * 16 + 'px'
|
|
76
81
|
}
|
|
77
|
-
|
|
82
|
+
// 没有子集的时候才展示
|
|
83
|
+
const showTooltip = Menu.inlineCollapsed && !SubMenu
|
|
78
84
|
let child = title || getChild(this.$slots.default)
|
|
79
|
-
let titleNode =
|
|
85
|
+
let titleNode = <span class={`k-${preCls}-title-content`}>{child}</span>
|
|
86
|
+
let iconNode = this.$slots.icon ? <span class={`k-${preCls}-item-icon`} >{this.$slots.icon}</span> : (icon ? <Icon type={icon} class={`k-${preCls}-item-icon`} /> : null)
|
|
87
|
+
let menuItem = <li {...props}>{iconNode}{titleNode}</li>
|
|
80
88
|
return (
|
|
81
89
|
<Tooltip placement="right">
|
|
82
|
-
|
|
83
|
-
{this.$slots.icon ? <span class={`k-${preCls}-item-icon`} >{this.$slots.icon}</span> : icon ? <Icon type={icon} class={`k-${preCls}-item-icon`} /> : <span class={`k-${preCls}-icon-temp`} />}
|
|
84
|
-
{titleNode}
|
|
85
|
-
</li>
|
|
90
|
+
{menuItem}
|
|
86
91
|
{showTooltip ? <template slot="title">{this.$slots.default}</template> : null}
|
|
87
92
|
</Tooltip>
|
|
88
93
|
)
|