kui-vue 3.3.11 → 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.
Files changed (51) hide show
  1. package/components/_tool/clone.js +1 -2
  2. package/components/_tool/utils.js +3 -3
  3. package/components/alert/styles/index.less +2 -2
  4. package/components/avatar/AvatarGroup.jsx +2 -2
  5. package/components/backtop/styles/index.less +44 -47
  6. package/components/base/drop.jsx +3 -2
  7. package/components/base/pop.jsx +34 -20
  8. package/components/button/button.jsx +5 -11
  9. package/components/button/index.js +1 -8
  10. package/components/collapse/styles/index.less +3 -16
  11. package/components/colorPicker/colorpicker.jsx +1 -1
  12. package/components/colorPicker/styles/index.less +6 -18
  13. package/components/datePicker/datecalendar.jsx +1 -1
  14. package/components/datePicker/styles/datepicker.less +4 -14
  15. package/components/drawer/drawer.jsx +1 -1
  16. package/components/dropdown/demo/base.md +1 -1
  17. package/components/dropdown/demo/rightmenu.md +5 -5
  18. package/components/dropdown/dropdown.jsx +11 -3
  19. package/components/dropdown/styles/index.less +31 -13
  20. package/components/form/form.jsx +1 -1
  21. package/components/form/styles/index.less +3 -14
  22. package/components/fragment/component.js +98 -0
  23. package/components/fragment/frag.js +362 -0
  24. package/components/fragment/fragment.js +19 -0
  25. package/components/fragment/index.js +104 -0
  26. package/components/fragment/ssr.js +4 -0
  27. package/components/icon/demo/search.vue +1 -1
  28. package/components/image/styles/index.less +41 -17
  29. package/components/index.js +2 -2
  30. package/components/menu/menuitem.jsx +12 -7
  31. package/components/menu/styles/index.less +189 -202
  32. package/components/menu/submenu.jsx +106 -37
  33. package/components/message/styles/index.less +11 -14
  34. package/components/modal/index.js +1 -1
  35. package/components/modal/modal.jsx +2 -2
  36. package/components/modal/styles/index.less +227 -221
  37. package/components/notice/styles/index.less +19 -5
  38. package/components/popconfirm/styles/index.less +33 -14
  39. package/components/poptip/styles/index.less +3 -14
  40. package/components/radio/button.jsx +1 -1
  41. package/components/select/styles/index.less +8 -31
  42. package/components/table/table.jsx +1 -1
  43. package/components/tabs/styles/index.less +3 -2
  44. package/components/tag/styles/index.less +3 -15
  45. package/components/tooltip/styles/index.less +45 -16
  46. package/components/tooltip/tooltip.jsx +3 -3
  47. package/components/tree/node.jsx +1 -1
  48. package/dist/k-ui.css +2 -2
  49. package/dist/k-ui.js +2 -2
  50. package/package.json +3 -3
  51. package/components/menu/styles/dropmenu.less +0 -119
@@ -1,272 +1,278 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-modal {
3
- color: var(--kui-color-font);
4
- .k-modal-wrap {
5
- position: fixed;
6
- top: 0;
7
- right: 0;
8
- bottom: 0;
9
- left: 0;
10
- z-index: 1001;
11
- overflow: auto;
12
- outline: 0;
13
- -webkit-overflow-scrolling: touch;
14
- }
15
- .k-modal-mask {
16
- position: fixed;
17
- top: 0;
18
- bottom: 0;
19
- left: 0;
20
- right: 0;
21
- background-color: rgba(55, 55, 55, .6);
22
- height: 100%;
23
- z-index: 1001;
24
- overflow: hidden;
25
- }
26
- .k-modal-inner {
27
- position: relative;
28
- background-color: var(--kui-color-control-10);
29
- border: 1px solid var(--kui-color-gray-80);
30
- z-index: 1001;
31
- outline: 0;
32
- border-radius: 12px;
33
- top: 100px;
34
- overflow: hidden;
35
- margin: 0 auto;
36
- box-shadow: 0 0 10px 3px rgba(55, 55, 55, .2);
37
- width: 480px; // animation: darken .5s ease-in-out;
38
- }
39
- .k-modal-content {
40
- position: relative;
41
- border: 0;
42
- background-clip: padding-box;
43
- height: 100%;
44
- overflow: hidden;
45
- padding:0 20px;
46
- .k-modal-close {
47
- position: absolute;
48
- cursor: pointer;
49
- font-size: 20px;
50
- color: var(--kui-color-font);
51
- width: 20px;
52
- height: 20px;
53
- top: 20px;
54
- right: 20px;
55
- transition: all .3s ease-in-out;
56
- .k-icon {
57
- position: absolute;
58
- top: 50%;
59
- left: 50%;
60
- transform: translateY(-50%) translateX(-50%);
61
- }
62
- &:hover {
63
- color: var(--kui-color-danger);
64
- border-radius: var(--kui-border-radius);
65
- background-color: var(--kui-color-gray-80);
66
- // transform: rotate(360deg);
67
- }
68
- }
69
- .k-modal-header {
70
- // border-bottom: 1px solid var(--kui-color-gray-80);
71
- padding:20px 0;
72
- line-height: 1;
73
- font-size: 14px;
74
- user-select: none;
75
- .k-modal-header-inner {
76
- width: 90%;
77
- white-space: nowrap;
78
- overflow: hidden;
79
- text-overflow: ellipsis;
80
- font-size: 16px;
81
- font-weight: 600;
82
- line-height: 1.1;
83
- }
84
- }
85
- .k-modal-body {
86
- // padding:20px 0;
87
- margin-bottom: 20px;
88
- font-size: 14px;
89
- line-height: 1.5;
90
- // height: calc(100% - 43px - 45px);
91
- overflow: auto;
92
- box-sizing: border-box;
93
- }
94
- .k-modal-footer {
95
- // border-top: 1px solid var(--kui-color-gray-80);
96
- padding:0 0 20px 0;
97
- text-align: right;
98
- display: inline-block;
99
- width: 100%;
100
- box-sizing: border-box;
101
- .k-btn {
102
- margin-left: 8px;
103
- }
104
- }
105
- }
4
+ color: var(--kui-color-font);
5
+
6
+ .k-modal-wrap {
7
+ position: fixed;
8
+ top: 0;
9
+ right: 0;
10
+ bottom: 0;
11
+ left: 0;
12
+ z-index: 1001;
13
+ overflow: auto;
14
+ outline: 0;
15
+ -webkit-overflow-scrolling: touch;
16
+ }
17
+
18
+ .k-modal-mask {
19
+ position: fixed;
20
+ top: 0;
21
+ bottom: 0;
22
+ left: 0;
23
+ right: 0;
24
+ background-color: rgba(55, 55, 55, .6);
25
+ height: 100%;
26
+ z-index: 1001;
27
+ overflow: hidden;
28
+ }
29
+
30
+ .k-modal-inner {
31
+ position: relative;
32
+ background-color: var(--kui-color-control-10);
33
+ border: 1px solid var(--kui-color-gray-80);
34
+ z-index: 1001;
35
+ outline: 0;
36
+ border-radius: 12px;
37
+ top: 100px;
38
+ overflow: hidden;
39
+ margin: 0 auto;
40
+ box-shadow: 0 0 10px 3px rgba(55, 55, 55, .2);
41
+ width: 480px; // animation: darken .5s ease-in-out;
42
+ }
43
+
44
+ .k-modal-content {
45
+ position: relative;
46
+ border: 0;
47
+ background-clip: padding-box;
48
+ height: 100%;
49
+ overflow: hidden;
50
+ padding: 0 20px;
51
+
52
+ .k-modal-close {
53
+ position: absolute;
54
+ cursor: pointer;
55
+ font-size: 20px;
56
+ color: var(--kui-color-font);
57
+ width: 20px;
58
+ height: 20px;
59
+ top: 20px;
60
+ right: 20px;
61
+ transition: all .3s ease-in-out;
62
+
63
+ .k-icon {
64
+ position: absolute;
65
+ top: 50%;
66
+ left: 50%;
67
+ transform: translateY(-50%) translateX(-50%);
68
+ }
69
+
70
+ &:hover {
71
+ color: var(--kui-color-danger);
72
+ border-radius: var(--kui-border-radius);
73
+ background-color: var(--kui-color-gray-80);
74
+ // transform: rotate(360deg);
75
+ }
76
+ }
77
+
78
+ .k-modal-header {
79
+ // border-bottom: 1px solid var(--kui-color-gray-80);
80
+ padding: 20px 0;
81
+ line-height: 1;
82
+ font-size: 14px;
83
+ user-select: none;
84
+
85
+ .k-modal-header-inner {
86
+ width: 90%;
87
+ white-space: nowrap;
88
+ overflow: hidden;
89
+ text-overflow: ellipsis;
90
+ font-size: 16px;
91
+ font-weight: 600;
92
+ line-height: 1.1;
93
+ }
94
+ }
95
+
96
+ .k-modal-body {
97
+ // padding:20px 0;
98
+ margin-bottom: 20px;
99
+ font-size: 14px;
100
+ line-height: 1.5;
101
+ // height: calc(100% - 43px - 45px);
102
+ overflow: auto;
103
+ box-sizing: border-box;
104
+ }
105
+
106
+ .k-modal-footer {
107
+ // border-top: 1px solid var(--kui-color-gray-80);
108
+ padding: 0 0 20px 0;
109
+ text-align: right;
110
+ display: inline-block;
111
+ width: 100%;
112
+ box-sizing: border-box;
113
+
114
+ .k-btn {
115
+ margin-left: 8px;
116
+ }
117
+ }
118
+ }
106
119
  }
107
120
 
108
121
  .k-modal-has-footer {
109
- .k-modal-content {
110
- .k-modal-body {
111
- height: calc(100% - 43px - 45px);
112
- }
113
- }
122
+ .k-modal-content {
123
+ .k-modal-body {
124
+ height: calc(100% - 43px - 45px);
125
+ }
126
+ }
114
127
  }
115
128
 
116
129
  .k-modal-draggable {
117
- .k-modal-header {
118
- cursor: move;
119
- }
120
- .k-modal-inner {
121
- position: absolute;
122
- }
130
+ .k-modal-header {
131
+ cursor: move;
132
+ }
133
+
134
+ .k-modal-inner {
135
+ position: absolute;
136
+ }
123
137
  }
124
138
 
125
139
  .k-modal-centered {
126
- .k-modal-wrap {
127
- text-align: center;
128
- &::before {
129
- display: inline-block;
130
- width: 0;
131
- height: 100%;
132
- vertical-align: middle;
133
- content: '';
134
- }
135
- }
136
- .k-modal-inner {
137
- top: 0;
138
- display: inline-block;
139
- text-align: left;
140
- vertical-align: middle;
141
- }
140
+ .k-modal-wrap {
141
+ text-align: center;
142
+
143
+ &::before {
144
+ display: inline-block;
145
+ width: 0;
146
+ height: 100%;
147
+ vertical-align: middle;
148
+ content: '';
149
+ }
150
+ }
151
+
152
+ .k-modal-inner {
153
+ top: 0;
154
+ display: inline-block;
155
+ text-align: left;
156
+ vertical-align: middle;
157
+ }
142
158
  }
143
159
 
144
160
  .k-modal-maximized {
145
- .k-modal-wrap{
146
- overflow: hidden;
147
- }
148
- .k-modal-inner {
149
- height: 100%;
150
- width: 100%;
151
- top: 0;
152
- left: 0;
153
- border-radius: 0;
154
- .k-modal-footer {
155
- position: absolute;
156
- width: 100%;
157
- bottom: 0;
158
- left: 0;
159
- background: var(--kui-color-control-10);
160
- }
161
- }
161
+ .k-modal-wrap {
162
+ overflow: hidden;
163
+ }
164
+
165
+ .k-modal-inner {
166
+ height: 100%;
167
+ width: 100%;
168
+ top: 0;
169
+ left: 0;
170
+ border-radius: 0;
171
+
172
+ .k-modal-footer {
173
+ position: absolute;
174
+ width: 100%;
175
+ bottom: 0;
176
+ left: 0;
177
+ background: var(--kui-color-control-10);
178
+ }
179
+ }
162
180
  }
163
181
 
164
182
  .k-toast {
165
- .k-modal-inner {
166
- width: 416px;
167
- background: var(--kui-color-control-10);
168
- border-radius: var(--kui-border-radius);
169
- padding: 20px;
170
- border-radius: 12px;
171
- overflow: hidden;
172
- }
173
- .k-toast-header {
174
- .k-toast-icon {
175
- font-size: 28px;
176
- margin-right: 12px;
177
- float: left;
178
- }
179
- .k-toast-title {
180
- font-size: 16px;
181
- font-weight: 600;
182
- overflow: hidden;
183
- line-height: 1.5;
184
- }
185
- }
186
- .k-toast-content {
187
- padding-left: 40px;
188
- padding-top: 8px;
189
- font-size: 14px;
190
- }
191
- .k-toast-footer {
192
- float: right;
193
- margin-top: 20px;
194
- .k-btn {
195
- margin-left: 8px;
196
- }
197
- }
183
+ .k-modal-inner {
184
+ width: 416px;
185
+ background: var(--kui-color-control-10);
186
+ border-radius: var(--kui-border-radius);
187
+ padding: 20px;
188
+ border-radius: 12px;
189
+ overflow: hidden;
190
+ }
191
+
192
+ .k-toast-header {
193
+ .k-toast-icon {
194
+ font-size: 28px;
195
+ margin-right: 12px;
196
+ float: left;
197
+ }
198
+
199
+ .k-toast-title {
200
+ font-size: 16px;
201
+ font-weight: 600;
202
+ overflow: hidden;
203
+ line-height: 1.5;
204
+ }
205
+ }
206
+
207
+ .k-toast-content {
208
+ padding-left: 40px;
209
+ padding-top: 8px;
210
+ font-size: 14px;
211
+ }
212
+
213
+ .k-toast-footer {
214
+ float: right;
215
+ margin-top: 20px;
216
+
217
+ .k-btn {
218
+ margin-left: 8px;
219
+ }
220
+ }
198
221
  }
199
222
 
200
223
  .k-toast-success .k-toast-icon {
201
- color: var(--kui-color-success);
224
+ color: var(--kui-color-success);
202
225
  }
203
226
 
204
227
  .k-toast-error .k-toast-icon {
205
- color: var(--kui-color-danger);
228
+ color: var(--kui-color-danger);
206
229
  }
207
230
 
208
231
  .k-toast-warning .k-toast-icon {
209
- color: var(--kui-color-warning);
232
+ color: var(--kui-color-warning);
210
233
  }
211
234
 
212
235
  .k-toast-info .k-toast-icon {
213
- color: var(--kui-color-main);
236
+ color: var(--kui-color-main);
214
237
  }
215
238
 
216
239
  .k-toast-confirm .k-toast-icon {
217
- color: var(--kui-color-warning);
240
+ color: var(--kui-color-warning);
218
241
  }
219
242
 
220
- @keyframes fade-in {
221
- from {
222
- opacity: 0;
223
- }
224
- to {
225
- opacity: 1;
226
- }
227
- }
243
+ @keyframes k-modal-fade {
244
+ from {
245
+ opacity: 0;
246
+ }
228
247
 
229
- @keyframes fade-out {
230
- from {
231
- opacity: 1;
232
- }
233
- to {
234
- opacity: 0;
235
- }
248
+ to {
249
+ opacity: 1;
250
+ }
236
251
  }
237
252
 
238
253
  .k-modal-fade-enter-active {
239
- animation: fade-in .4s linear;
254
+ animation: k-modal-fade .4s linear;
240
255
  }
241
256
 
242
257
  .k-modal-fade-leave-active {
243
- animation: fade-out .4s linear;
258
+ animation: k-modal-fade .4s linear reverse;
244
259
  }
245
260
 
246
- @keyframes k-modal-zoom-in {
247
- from {
248
- opacity: 0;
249
- transform: scale3d(.3, .3, 0)
250
- }
251
- to {
252
- opacity: 1;
253
- }
254
- }
261
+ @keyframes k-modal-zoom {
262
+ from {
263
+ opacity: 0;
264
+ transform: scale3d(.3, .3, 0)
265
+ }
255
266
 
256
- @keyframes k-modal-zoom-out {
257
- from {
258
- opacity: 1;
259
- }
260
- to {
261
- opacity: 0;
262
- transform: scale3d(.3, .3, 0);
263
- }
267
+ to {
268
+ opacity: 1;
269
+ }
264
270
  }
265
271
 
266
272
  .k-modal-zoom-enter-active {
267
- animation: k-modal-zoom-in .25s cubic-bezier(.78, .14, .15, .86);
273
+ animation: k-modal-zoom .25s cubic-bezier(.78, .14, .15, .86);
268
274
  }
269
275
 
270
276
  .k-modal-zoom-leave-active {
271
- animation: k-modal-zoom-out .25s cubic-bezier(.78, .14, .15, .86);
277
+ animation: k-modal-zoom .25s cubic-bezier(.78, .14, .15, .86) reverse;
272
278
  }
@@ -1,4 +1,5 @@
1
1
  @import '../../styles/var.less';
2
+
2
3
  .k-notice {
3
4
  font-size: 14px;
4
5
  line-height: 1.5;
@@ -16,6 +17,7 @@
16
17
  right: 0px;
17
18
  top: 24px;
18
19
  bottom: auto;
20
+
19
21
  .k-notice-box {
20
22
  box-sizing: content-box;
21
23
  transition: all .3s ease-in-out;
@@ -29,9 +31,11 @@
29
31
  margin-bottom: 16px;
30
32
  overflow: hidden;
31
33
  }
34
+
32
35
  .k-notice-has-icon {
33
36
  padding-left: 45px;
34
37
  }
38
+
35
39
  .k-notice-title {
36
40
  font-size: 16px;
37
41
  color: var(--kui-color-title);
@@ -41,6 +45,7 @@
41
45
  display: inline-block;
42
46
  font-weight: 600;
43
47
  }
48
+
44
49
  .k-notice-icon {
45
50
  font-size: 22px;
46
51
  margin-right: 8px;
@@ -48,10 +53,12 @@
48
53
  top: 17px;
49
54
  left: 16px;
50
55
  }
56
+
51
57
  .k-notoce-desc {
52
58
  font-size: 14px;
53
59
  line-height: 1.5;
54
60
  }
61
+
55
62
  .k-notice-close {
56
63
  position: absolute;
57
64
  right: 8px;
@@ -63,38 +70,45 @@
63
70
  padding: 3px;
64
71
  display: block;
65
72
  border-radius: var(--kui-border-radius);
66
- &:hover{
73
+
74
+ &:hover {
67
75
  background-color: var(--kui-color-gray-80);
68
76
  }
69
77
  }
78
+
70
79
  .k-notice-info .k-notice-icon {
71
80
  color: var(--kui-color-main);
72
81
  }
82
+
73
83
  .k-notice-error .k-notice-icon {
74
84
  color: var(--kui-color-danger);
75
85
  }
86
+
76
87
  .k-notice-success .k-notice-icon {
77
88
  color: var(--kui-color-success);
78
89
  }
90
+
79
91
  .k-notice-warning .k-notice-icon {
80
92
  color: var(--kui-color-warning);
81
93
  }
82
94
  }
83
95
 
84
- @keyframes noticeIn {
96
+ @keyframes k-notice-slide-in {
85
97
  from {
86
98
  opacity: 0;
87
99
  transform: translate3d(100%, 0, 0);
88
100
  }
101
+
89
102
  to {
90
103
  opacity: 1;
91
104
  }
92
105
  }
93
106
 
94
- @keyframes noticeOut {
107
+ @keyframes k-notice-slide-out {
95
108
  from {
96
109
  opacity: 1;
97
110
  }
111
+
98
112
  to {
99
113
  opacity: 0;
100
114
  transform: scaleY(.5);
@@ -102,9 +116,9 @@
102
116
  }
103
117
 
104
118
  .k-notice-slide-enter-active {
105
- animation: noticeIn .3s ease;
119
+ animation: k-notice-slide-in .3s ease;
106
120
  }
107
121
 
108
122
  .k-notice-slide-leave-active {
109
- animation: noticeOut .3s ease;
123
+ animation: k-notice-slide-out .3s ease;
110
124
  }