bkui-vue 1.0.3-beta.60.scrollbar.5 → 1.0.3-beta.61.dialog.1
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/dist/index.cjs.js +61 -63
- package/dist/index.esm.js +19978 -19906
- package/dist/index.umd.js +61 -63
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/components.d.ts +2 -0
- package/lib/components.js +3 -1
- package/lib/date-picker/index.js +1 -1
- package/lib/dialog/dialog.css +140 -80
- package/lib/dialog/dialog.d.ts +41 -121
- package/lib/dialog/dialog.less +10 -65
- package/lib/dialog/dialog.variable.css +140 -80
- package/lib/dialog/index.d.ts +105 -272
- package/lib/dialog/index.js +91 -100
- package/lib/dialog/props.d.ts +8 -48
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +312 -172
- package/lib/info-box/info-box.css +63 -7
- package/lib/info-box/info-box.d.ts +17 -16
- package/lib/info-box/info-box.less +76 -14
- package/lib/info-box/info-box.variable.css +63 -7
- package/lib/info-box/render-component.d.ts +4 -0
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +48 -325
- package/lib/modal/index.js +195 -675
- package/lib/modal/mask.d.ts +6 -0
- package/lib/modal/modal.css +132 -34
- package/lib/modal/modal.d.ts +17 -126
- package/lib/modal/modal.less +88 -39
- package/lib/modal/modal.variable.css +132 -34
- package/lib/modal/props.mixin.d.ts +2 -53
- package/lib/scrollbar/index.d.ts +14 -0
- package/lib/scrollbar/index.js +18737 -0
- package/lib/{virtual-render → scrollbar}/scrollbar-core/index.d.ts +31 -8
- package/lib/{virtual-render/bk-scrollbar.css → scrollbar/scrollbar.css} +13 -13
- package/lib/{virtual-render/bk-scrollbar.less → scrollbar/scrollbar.less} +13 -13
- package/lib/{virtual-render/bk-scrollbar.variable.css → scrollbar/scrollbar.variable.css} +13 -13
- package/lib/search-select/index.d.ts +327 -12
- package/lib/search-select/index.js +620 -340
- package/lib/search-select/input.d.ts +6 -1
- package/lib/search-select/search-select.css +20 -6
- package/lib/search-select/search-select.d.ts +109 -4
- package/lib/search-select/search-select.less +16 -12
- package/lib/search-select/search-select.variable.css +20 -6
- package/lib/search-select/selected.d.ts +107 -5
- package/lib/search-select/utils.d.ts +13 -1
- package/lib/select/index.d.ts +23 -0
- package/lib/select/index.js +4 -1
- package/lib/select/select.d.ts +11 -0
- package/lib/shared/index.d.ts +0 -1
- package/lib/shared/index.js +1 -48
- package/lib/sideslider/index.d.ts +31 -222
- package/lib/sideslider/index.js +49 -36
- package/lib/sideslider/sideslider.css +4 -47
- package/lib/sideslider/sideslider.d.ts +14 -105
- package/lib/sideslider/sideslider.less +14 -65
- package/lib/sideslider/sideslider.variable.css +4 -47
- package/lib/table/index.js +37 -28
- package/lib/table/plugins/use-pagination.d.ts +3 -1
- package/lib/table/table.css +14 -13
- package/lib/table/table.less +2 -2
- package/lib/table/table.variable.css +14 -13
- package/lib/table/use-attributes.d.ts +1 -0
- package/lib/timeline/index.js +1 -0
- package/lib/tree/tree.css +13 -13
- package/lib/tree/tree.variable.css +13 -13
- package/lib/upload/index.d.ts +12 -0
- package/lib/upload/index.js +21 -30
- package/lib/upload/props.d.ts +3 -0
- package/lib/upload/upload-trigger.d.ts +6 -0
- package/lib/upload/upload.d.ts +6 -0
- package/lib/virtual-render/index.js +262 -2175
- package/lib/virtual-render/use-scrollbar.d.ts +2 -2
- package/lib/virtual-render/virtual-render.css +13 -13
- package/lib/virtual-render/virtual-render.less +2 -2
- package/lib/virtual-render/virtual-render.variable.css +13 -13
- package/package.json +2 -2
- package/lib/icon/image-fill.js +0 -191
- package/lib/shared/mask.d.ts +0 -11
- package/lib/virtual-render/bk-scrollbar.d.ts +0 -10
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/can-use-dom.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/helpers.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/mouse-wheel.d.ts +0 -0
- /package/lib/{virtual-render → scrollbar}/scrollbar-core/scrollbar-width.d.ts +0 -0
package/lib/dialog/dialog.less
CHANGED
@@ -5,55 +5,20 @@
|
|
5
5
|
font-size: 14px;
|
6
6
|
|
7
7
|
&.is-fullscreen {
|
8
|
-
|
9
|
-
right: 0 ;
|
10
|
-
bottom: 0;
|
11
|
-
left: 0;
|
12
|
-
transform: translate(0 , 0);
|
13
|
-
|
14
|
-
.bk-modal-wrapper {
|
8
|
+
.@{bk-prefix}-modal-wrapper {
|
15
9
|
top: 0;
|
16
10
|
right: 0;
|
17
11
|
bottom: 0;
|
18
12
|
left: 0;
|
19
|
-
|
13
|
+
border-radius: 0;
|
14
|
+
transform: translate(0, 0);
|
20
15
|
}
|
21
16
|
}
|
22
|
-
}
|
23
|
-
.@{bk-prefix}-dialog-wrapper {
|
24
|
-
.@{bk-prefix}-modal-wrapper {
|
25
|
-
position: relative;
|
26
|
-
|
27
|
-
* {
|
28
|
-
box-sizing: border-box;
|
29
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
30
|
-
}
|
31
|
-
|
32
|
-
&.scroll-able {
|
33
|
-
.@{bk-prefix}-modal-content {
|
34
|
-
overflow: auto;
|
35
|
-
}
|
36
|
-
}
|
37
17
|
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
&.fullscreen {
|
43
|
-
.@{bk-prefix}-modal-content {
|
44
|
-
max-height: calc(100vh - 137px);
|
45
|
-
}
|
46
|
-
|
47
|
-
&.no-footer {
|
48
|
-
max-height: calc(100vh - 79px);
|
49
|
-
}
|
50
|
-
}
|
51
|
-
|
52
|
-
&.no-footer {
|
53
|
-
.@{bk-prefix}-modal-body {
|
54
|
-
padding-bottom: 0;
|
55
|
-
}
|
56
|
-
}
|
18
|
+
.@{bk-prefix}-modal-wrapper {
|
19
|
+
top: 50%;
|
20
|
+
left: 50%;
|
21
|
+
transform: translate(-50%, -50%);
|
57
22
|
}
|
58
23
|
}
|
59
24
|
|
@@ -63,27 +28,6 @@
|
|
63
28
|
line-height: 1;
|
64
29
|
}
|
65
30
|
|
66
|
-
.@{bk-prefix}-dialog-header-icon {
|
67
|
-
display: flex;
|
68
|
-
justify-content: center;
|
69
|
-
|
70
|
-
.@{bk-prefix}-info-icon {
|
71
|
-
font-size: 48px;
|
72
|
-
|
73
|
-
&.success {
|
74
|
-
color: @success-color;
|
75
|
-
}
|
76
|
-
|
77
|
-
&.warning {
|
78
|
-
color: @warning-color;
|
79
|
-
}
|
80
|
-
|
81
|
-
&.danger {
|
82
|
-
color: @danger-color;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
}
|
86
|
-
|
87
31
|
.@{bk-prefix}-dialog-title {
|
88
32
|
display: inline-block;
|
89
33
|
width: 100%;
|
@@ -100,11 +44,12 @@
|
|
100
44
|
left: 0;
|
101
45
|
height: 18px;
|
102
46
|
|
103
|
-
&.
|
47
|
+
&.is-draggable {
|
104
48
|
cursor: move;
|
49
|
+
user-select: none;
|
105
50
|
}
|
106
51
|
|
107
|
-
&.
|
52
|
+
&.is-dragging {
|
108
53
|
user-select: none;
|
109
54
|
}
|
110
55
|
}
|
@@ -127,56 +127,86 @@
|
|
127
127
|
--select-active-color: #e1ecff;
|
128
128
|
--select-hover-color: #f5f7fa;
|
129
129
|
}
|
130
|
-
.bk-
|
131
|
-
|
130
|
+
.bk-infobox {
|
131
|
+
font-size: 12px;
|
132
132
|
}
|
133
|
-
.bk-
|
133
|
+
.bk-infobox .bk-modal-wrapper {
|
134
|
+
top: 50%;
|
135
|
+
left: 50%;
|
136
|
+
transform: translate(-50%, -50%);
|
137
|
+
}
|
138
|
+
.bk-infobox-header {
|
139
|
+
padding-top: 24px;
|
140
|
+
}
|
141
|
+
.bk-infobox-type {
|
142
|
+
display: flex;
|
143
|
+
justify-content: center;
|
144
|
+
align-items: center;
|
145
|
+
}
|
146
|
+
.bk-infobox-icon {
|
147
|
+
width: 42px;
|
148
|
+
height: 42px;
|
149
|
+
font-size: 42px;
|
150
|
+
}
|
151
|
+
.bk-infobox-icon.success {
|
152
|
+
color: #2dcb56;
|
153
|
+
}
|
154
|
+
.bk-infobox-icon.warning {
|
155
|
+
color: #ff9c01;
|
156
|
+
}
|
157
|
+
.bk-infobox-icon.danger {
|
158
|
+
color: #ea3636;
|
159
|
+
}
|
160
|
+
.bk-infobox-icon.loading {
|
161
|
+
color: #3a84ff;
|
162
|
+
}
|
163
|
+
.bk-infobox-title {
|
164
|
+
padding-right: 24px;
|
165
|
+
padding-left: 24px;
|
166
|
+
margin-top: 24px;
|
167
|
+
font-size: 20px;
|
168
|
+
line-height: 32px;
|
169
|
+
color: #313238;
|
170
|
+
}
|
171
|
+
.bk-infobox-content {
|
172
|
+
padding-right: 24px;
|
173
|
+
padding-left: 24px;
|
134
174
|
margin-top: 16px;
|
135
175
|
}
|
136
|
-
.bk-
|
137
|
-
|
176
|
+
.bk-infobox-footer {
|
177
|
+
display: flex;
|
178
|
+
padding-right: 24px;
|
179
|
+
padding-bottom: 24px;
|
180
|
+
padding-left: 24px;
|
181
|
+
margin-top: 24px;
|
182
|
+
align-content: center;
|
138
183
|
}
|
139
|
-
.bk-
|
140
|
-
|
141
|
-
word-break: break-all;
|
184
|
+
.bk-infobox-footer.is-position-right {
|
185
|
+
justify-content: right;
|
142
186
|
}
|
143
|
-
.bk-
|
144
|
-
|
145
|
-
left: 0px;
|
146
|
-
width: 100%;
|
147
|
-
height: 100%;
|
148
|
-
pointer-events: auto;
|
187
|
+
.bk-infobox-footer.is-position-center {
|
188
|
+
justify-content: center;
|
149
189
|
}
|
150
|
-
.bk-
|
151
|
-
|
190
|
+
.bk-infobox-footer.is-position-left {
|
191
|
+
justify-content: left;
|
152
192
|
}
|
153
|
-
.bk-
|
154
|
-
|
193
|
+
.bk-infobox-footer .bk-button {
|
194
|
+
min-width: 88px;
|
155
195
|
}
|
156
|
-
.bk-
|
157
|
-
|
196
|
+
.bk-infobox-footer .bk-button ~ .bk-button {
|
197
|
+
margin-left: 8px;
|
158
198
|
}
|
159
199
|
.bk-modal-ctx-mask {
|
200
|
+
position: fixed;
|
160
201
|
top: 0;
|
161
202
|
left: 0;
|
162
|
-
display: none;
|
163
203
|
width: 100%;
|
164
204
|
height: 100%;
|
165
205
|
background-color: rgba(0, 0, 0, 0.6);
|
166
206
|
}
|
167
207
|
.bk-modal-wrapper {
|
168
|
-
position: absolute;
|
169
|
-
top: 50%;
|
170
|
-
left: 50%;
|
171
|
-
border-radius: 2px;
|
172
|
-
transform: translate(-50%, -50%);
|
173
|
-
}
|
174
|
-
.bk-modal-outside {
|
175
208
|
position: fixed;
|
176
|
-
|
177
|
-
right: 0;
|
178
|
-
bottom: 0;
|
179
|
-
left: 0;
|
209
|
+
border-radius: 2px;
|
180
210
|
}
|
181
211
|
.bk-modal-body {
|
182
212
|
height: 100%;
|
@@ -185,8 +215,12 @@
|
|
185
215
|
border-radius: 2px;
|
186
216
|
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
|
187
217
|
}
|
188
|
-
.bk-modal-
|
189
|
-
|
218
|
+
.bk-modal-content {
|
219
|
+
max-height: 100vh;
|
220
|
+
font-size: 0;
|
221
|
+
}
|
222
|
+
.bk-modal-content div {
|
223
|
+
font-size: 12px;
|
190
224
|
}
|
191
225
|
.bk-modal-close {
|
192
226
|
position: absolute;
|
@@ -206,65 +240,90 @@
|
|
206
240
|
.bk-modal-close:hover {
|
207
241
|
background: #f0f1f5;
|
208
242
|
}
|
209
|
-
.
|
210
|
-
|
243
|
+
.modal-fadein-enter-from {
|
244
|
+
opacity: 0;
|
211
245
|
}
|
212
|
-
.
|
213
|
-
|
214
|
-
right: 0 ;
|
215
|
-
bottom: 0;
|
216
|
-
left: 0;
|
217
|
-
transform: translate(0, 0);
|
246
|
+
.modal-fadein-enter-from .bk-modal-body {
|
247
|
+
transform: translateY(-20px);
|
218
248
|
}
|
219
|
-
.
|
220
|
-
|
221
|
-
right: 0;
|
222
|
-
bottom: 0;
|
223
|
-
left: 0;
|
224
|
-
transform: translate(0, 0);
|
249
|
+
.modal-fadein-enter-to {
|
250
|
+
opacity: 1;
|
225
251
|
}
|
226
|
-
.
|
227
|
-
|
252
|
+
.modal-fadein-enter-to .bk-modal-body {
|
253
|
+
transform: translateY(0);
|
228
254
|
}
|
229
|
-
.
|
230
|
-
|
231
|
-
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
255
|
+
.modal-fadein-leave-from {
|
256
|
+
opacity: 1;
|
232
257
|
}
|
233
|
-
.
|
234
|
-
|
258
|
+
.modal-fadein-leave-from .bk-modal-body {
|
259
|
+
transform: translateY(0);
|
235
260
|
}
|
236
|
-
.
|
237
|
-
|
261
|
+
.modal-fadein-leave-to {
|
262
|
+
opacity: 0;
|
238
263
|
}
|
239
|
-
.
|
240
|
-
|
264
|
+
.modal-fadein-leave-to .bk-modal-body {
|
265
|
+
transform: translateY(-20px);
|
241
266
|
}
|
242
|
-
.
|
243
|
-
|
267
|
+
.modal-fadein-enter-active,
|
268
|
+
.modal-fadein-leave-active {
|
269
|
+
transition: opacity 0.15s linear;
|
244
270
|
}
|
245
|
-
.
|
246
|
-
|
271
|
+
.modal-fadein-enter-active .bk-modal-body,
|
272
|
+
.modal-fadein-leave-active .bk-modal-body {
|
273
|
+
transition: transform 0.08s linear;
|
247
274
|
}
|
248
|
-
.
|
249
|
-
|
250
|
-
font-size: 20px;
|
251
|
-
line-height: 1;
|
275
|
+
.modal-right-enter-from {
|
276
|
+
transform: translateX(100%);
|
252
277
|
}
|
253
|
-
.
|
254
|
-
|
255
|
-
justify-content: center;
|
278
|
+
.modal-right-enter-to {
|
279
|
+
transform: translateX(0);
|
256
280
|
}
|
257
|
-
.
|
258
|
-
|
281
|
+
.modal-right-leave-from {
|
282
|
+
transform: translateX(0);
|
259
283
|
}
|
260
|
-
.
|
261
|
-
|
284
|
+
.modal-right-leave-to {
|
285
|
+
transform: translateX(100%);
|
262
286
|
}
|
263
|
-
.
|
264
|
-
|
287
|
+
.modal-right-enter-active,
|
288
|
+
.modal-right-leave-active {
|
289
|
+
transition: transform 0.15s ease;
|
265
290
|
}
|
266
|
-
.
|
267
|
-
|
291
|
+
.modal-left-enter-from {
|
292
|
+
transform: translateX(-100%);
|
293
|
+
}
|
294
|
+
.modal-left-enter-to {
|
295
|
+
transform: translateX(0);
|
296
|
+
}
|
297
|
+
.modal-left-leave-from {
|
298
|
+
transform: translateX(0);
|
299
|
+
}
|
300
|
+
.modal-left-leave-to {
|
301
|
+
transform: translateX(-100%);
|
302
|
+
}
|
303
|
+
.modal-left-enter-active,
|
304
|
+
.modal-left-leave-active {
|
305
|
+
transition: transform 0.15s ease;
|
306
|
+
}
|
307
|
+
.bk-dialog {
|
308
|
+
font-size: 14px;
|
309
|
+
}
|
310
|
+
.bk-dialog.is-fullscreen .bk-modal-wrapper {
|
311
|
+
top: 0;
|
312
|
+
right: 0;
|
313
|
+
bottom: 0;
|
314
|
+
left: 0;
|
315
|
+
border-radius: 0;
|
316
|
+
transform: translate(0, 0);
|
317
|
+
}
|
318
|
+
.bk-dialog .bk-modal-wrapper {
|
319
|
+
top: 50%;
|
320
|
+
left: 50%;
|
321
|
+
transform: translate(-50%, -50%);
|
322
|
+
}
|
323
|
+
.bk-dialog-header {
|
324
|
+
padding: 16px 24px 0;
|
325
|
+
font-size: 20px;
|
326
|
+
line-height: 1;
|
268
327
|
}
|
269
328
|
.bk-dialog-title {
|
270
329
|
display: inline-block;
|
@@ -281,10 +340,11 @@
|
|
281
340
|
left: 0;
|
282
341
|
height: 18px;
|
283
342
|
}
|
284
|
-
.bk-dialog-tool.
|
343
|
+
.bk-dialog-tool.is-draggable {
|
285
344
|
cursor: move;
|
345
|
+
user-select: none;
|
286
346
|
}
|
287
|
-
.bk-dialog-tool.
|
347
|
+
.bk-dialog-tool.is-dragging {
|
288
348
|
user-select: none;
|
289
349
|
}
|
290
350
|
.bk-dialog-content {
|