bkui-vue 1.0.3-beta.62.dialog.1 → 1.0.3-beta.63

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 (88) hide show
  1. package/dist/index.cjs.js +69 -69
  2. package/dist/index.esm.js +17802 -18626
  3. package/dist/index.umd.js +69 -69
  4. package/dist/style.css +1 -1
  5. package/dist/style.variable.css +1 -1
  6. package/lib/checkbox/index.js +4 -4
  7. package/lib/components.d.ts +0 -1
  8. package/lib/components.js +0 -1
  9. package/lib/dialog/dialog.css +77 -139
  10. package/lib/dialog/dialog.d.ts +121 -41
  11. package/lib/dialog/dialog.less +65 -10
  12. package/lib/dialog/dialog.variable.css +77 -139
  13. package/lib/dialog/index.d.ts +272 -105
  14. package/lib/dialog/index.js +100 -91
  15. package/lib/dialog/props.d.ts +48 -8
  16. package/lib/info-box/index.d.ts +2 -2
  17. package/lib/info-box/index.js +173 -312
  18. package/lib/info-box/info-box.css +7 -63
  19. package/lib/info-box/info-box.d.ts +16 -17
  20. package/lib/info-box/info-box.less +14 -76
  21. package/lib/info-box/info-box.variable.css +7 -63
  22. package/lib/modal/index.d.ts +325 -45
  23. package/lib/modal/index.js +666 -187
  24. package/lib/modal/modal.css +31 -131
  25. package/lib/modal/modal.d.ts +126 -16
  26. package/lib/modal/modal.less +28 -84
  27. package/lib/modal/modal.variable.css +31 -131
  28. package/lib/modal/props.mixin.d.ts +53 -2
  29. package/lib/radio/index.js +5 -5
  30. package/lib/select/index.d.ts +33 -0
  31. package/lib/select/index.js +4 -2
  32. package/lib/select/select.css +19 -5
  33. package/lib/select/select.d.ts +11 -0
  34. package/lib/select/select.less +26 -6
  35. package/lib/select/select.variable.css +19 -5
  36. package/lib/select/selectTagInput.d.ts +7 -0
  37. package/lib/shared/index.d.ts +1 -0
  38. package/lib/shared/index.js +48 -1
  39. package/lib/shared/mask.d.ts +11 -0
  40. package/lib/sideslider/index.d.ts +222 -31
  41. package/lib/sideslider/index.js +36 -49
  42. package/lib/sideslider/sideslider.css +42 -4
  43. package/lib/sideslider/sideslider.d.ts +105 -14
  44. package/lib/sideslider/sideslider.less +58 -13
  45. package/lib/sideslider/sideslider.variable.css +42 -4
  46. package/lib/table/const.d.ts +1 -1
  47. package/lib/table/index.d.ts +0 -23
  48. package/lib/table/index.js +43 -176
  49. package/lib/table/plugins/use-fixed-column.d.ts +1 -1
  50. package/lib/table/plugins/use-pagination.d.ts +1 -3
  51. package/lib/table/props.d.ts +0 -8
  52. package/lib/table/table.css +42 -97
  53. package/lib/table/table.d.ts +0 -11
  54. package/lib/table/table.less +58 -43
  55. package/lib/table/table.variable.css +42 -97
  56. package/lib/table/use-attributes.d.ts +0 -1
  57. package/lib/table/use-render.d.ts +1 -1
  58. package/lib/table-column/index.js +2 -6
  59. package/lib/tree/index.d.ts +0 -23
  60. package/lib/tree/index.js +3 -9
  61. package/lib/tree/props.d.ts +0 -8
  62. package/lib/tree/tree.css +2 -75
  63. package/lib/tree/tree.d.ts +0 -11
  64. package/lib/tree/tree.variable.css +2 -75
  65. package/lib/virtual-render/index.d.ts +0 -4
  66. package/lib/virtual-render/index.js +52 -253
  67. package/lib/virtual-render/props.d.ts +0 -7
  68. package/lib/virtual-render/use-fix-top.d.ts +7 -2
  69. package/lib/virtual-render/v-virtual-render.d.ts +1 -2
  70. package/lib/virtual-render/virtual-render.css +2 -75
  71. package/lib/virtual-render/virtual-render.d.ts +0 -2
  72. package/lib/virtual-render/virtual-render.less +3 -3
  73. package/lib/virtual-render/virtual-render.variable.css +2 -75
  74. package/package.json +1 -1
  75. package/lib/info-box/render-component.d.ts +0 -4
  76. package/lib/modal/mask.d.ts +0 -6
  77. package/lib/scrollbar/index.d.ts +0 -14
  78. package/lib/scrollbar/index.js +0 -18737
  79. package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
  80. package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
  81. package/lib/scrollbar/scrollbar-core/index.d.ts +0 -236
  82. package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
  83. package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
  84. package/lib/scrollbar/scrollbar.css +0 -74
  85. package/lib/scrollbar/scrollbar.less +0 -93
  86. package/lib/scrollbar/scrollbar.variable.css +0 -203
  87. package/lib/table/plugins/use-shift-key.d.ts +0 -11
  88. package/lib/virtual-render/use-scrollbar.d.ts +0 -23
@@ -15,84 +15,11 @@
15
15
  .bk-F-scroll-y::-webkit-scrollbar-thumb {
16
16
  border-radius: 4px;
17
17
  }
18
- .bk-scrollbar-wrapper {
19
- position: relative;
20
- overflow: hidden;
21
- }
22
- .bk-scrollbar-wrapper .bk-scrollbar-content-el {
23
- display: inline-flex;
24
- flex-direction: column;
25
- }
26
- .bk-scrollbar-wrapper .bk-scrollbar-track {
27
- z-index: 1;
28
- position: absolute;
29
- right: 0;
30
- bottom: 0;
31
- pointer-events: none;
32
- overflow: hidden;
33
- }
34
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
35
- background-color: #F0F1F5;
36
- cursor: pointer;
37
- }
38
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
39
- background-color: #979BA5;
40
- }
41
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
42
- top: 0;
43
- width: 8px;
44
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
45
- }
46
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
47
- left: 0;
48
- height: 8px;
49
- transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
50
- }
51
- .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
52
- right: auto;
53
- left: 0;
54
- top: 0;
55
- bottom: 0;
56
- min-height: 0;
57
- min-width: 8px;
58
- width: auto;
59
- }
60
- .bk-scrollbar-wrapper .bk-scrollbar-dragging {
61
- pointer-events: none;
62
- -webkit-touch-callout: none;
63
- -webkit-user-select: none;
64
- -khtml-user-select: none;
65
- -moz-user-select: none;
66
- -ms-user-select: none;
67
- user-select: none;
68
- }
69
- .bk-scrollbar-wrapper .bk-scrollbar {
70
- position: absolute;
71
- left: 0;
72
- right: 0;
73
- min-height: 8px;
74
- }
75
- .bk-scrollbar-wrapper .bk-scrollbar::before {
76
- position: absolute;
77
- content: '';
78
- background: #DCDEE5;
79
- border-radius: 6px;
80
- left: 1px;
81
- right: 1px;
82
- top: 1px;
83
- bottom: 1px;
84
- opacity: 0;
85
- transition: opacity 0.2s 0.9s linear;
86
- }
87
- .bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
88
- opacity: 0.9;
89
- transition-delay: 0s;
90
- transition-duration: 0s;
91
- }
92
18
  .bk-virtual-render {
93
19
  position: relative;
94
20
  }
95
- .bk-virtual-render .bk-virtual-content {
21
+ .bk-virtual-render .bk-virtual-content,
22
+ .bk-virtual-render.bk-virtual-content {
96
23
  position: absolute;
97
24
  top: 0;
98
25
  bottom: 0;
@@ -1070,9 +997,9 @@
1070
997
  }
1071
998
  .bk-table {
1072
999
  position: relative;
1073
- width: 100%;
1074
1000
  height: auto;
1075
1001
  overflow: hidden;
1002
+ width: 100%;
1076
1003
  }
1077
1004
  .bk-table-flex {
1078
1005
  display: flex;
@@ -1088,9 +1015,19 @@
1088
1015
  }
1089
1016
  .bk-table .bk-table-body {
1090
1017
  position: relative;
1091
- overflow: hidden;
1018
+ overflow: auto;
1019
+ scrollbar-gutter: stable;
1092
1020
  border-bottom: 1px solid #dcdee5;
1093
1021
  }
1022
+ .bk-table .bk-table-body::-webkit-scrollbar {
1023
+ width: 5px;
1024
+ height: 6px;
1025
+ }
1026
+ .bk-table .bk-table-body::-webkit-scrollbar-thumb {
1027
+ background: #dcdee5;
1028
+ border-radius: 10px;
1029
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
1030
+ }
1094
1031
  .bk-table .bk-table-body .prepend-row {
1095
1032
  transform: translateX(var(--prepend-left));
1096
1033
  }
@@ -1117,6 +1054,17 @@
1117
1054
  background: white;
1118
1055
  transform: translateZ(0);
1119
1056
  }
1057
+ .bk-table .bk-table-head::-webkit-scrollbar,
1058
+ .bk-table .bk-table-body::-webkit-scrollbar {
1059
+ width: 5px;
1060
+ height: 5px;
1061
+ }
1062
+ .bk-table .bk-table-head::-webkit-scrollbar-thumb,
1063
+ .bk-table .bk-table-body::-webkit-scrollbar-thumb {
1064
+ background: #ddd;
1065
+ border-radius: 20px;
1066
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
1067
+ }
1120
1068
  .bk-table .bk-table-head.__is-empty,
1121
1069
  .bk-table .bk-table-body.__is-empty {
1122
1070
  display: flex;
@@ -1169,8 +1117,8 @@
1169
1117
  .bk-table .bk-table-body table th .cell .drag-cell,
1170
1118
  .bk-table .bk-table-head table td .cell .drag-cell,
1171
1119
  .bk-table .bk-table-body table td .cell .drag-cell {
1172
- height: 100%;
1173
1120
  font-size: 14px;
1121
+ height: 100%;
1174
1122
  }
1175
1123
  .bk-table .bk-table-head table th .cell.has-sort,
1176
1124
  .bk-table .bk-table-body table th .cell.has-sort,
@@ -1295,7 +1243,7 @@
1295
1243
  .bk-table .bk-table-body table thead th .cell {
1296
1244
  display: flex;
1297
1245
  align-items: center;
1298
- height: calc(var(--row-height) - 2px);
1246
+ height: calc(var(--row-height) - 1px);
1299
1247
  color: #313238;
1300
1248
  }
1301
1249
  .bk-table .bk-table-head table thead th.active,
@@ -1312,27 +1260,28 @@
1312
1260
  .bk-table .bk-table-head table tbody tr td,
1313
1261
  .bk-table .bk-table-body table tbody tr td {
1314
1262
  background-color: #fff;
1315
- border-top: 1px solid transparent;
1316
- border-bottom: 1px solid transparent;
1317
- border-right: 1px solid transparent;
1318
- box-sizing: border-box;
1319
1263
  }
1320
1264
  .bk-table .bk-table-head table tbody tr td.empty-cell,
1321
1265
  .bk-table .bk-table-body table tbody tr td.empty-cell {
1322
1266
  padding-bottom: 30px;
1323
1267
  }
1268
+ .bk-table .bk-table-head table tbody tr td.is-last,
1269
+ .bk-table .bk-table-body table tbody tr td.is-last {
1270
+ border-bottom: none;
1271
+ }
1324
1272
  .bk-table .bk-table-head table tbody tr td .cell,
1325
1273
  .bk-table .bk-table-body table tbody tr td .cell {
1326
1274
  display: block;
1327
1275
  width: 100%;
1328
- line-height: calc(var(--row-height) - 2px);
1276
+ height: 100%;
1277
+ line-height: calc(var(--row-height) - 1px);
1329
1278
  box-sizing: border-box;
1330
1279
  align-items: center;
1331
1280
  }
1332
1281
  .bk-table .bk-table-head table tbody tr td .cell.drag,
1333
1282
  .bk-table .bk-table-body table tbody tr td .cell.drag {
1334
- text-align: center;
1335
1283
  cursor: move;
1284
+ text-align: center;
1336
1285
  }
1337
1286
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1338
1287
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
@@ -1345,6 +1294,7 @@
1345
1294
  .bk-table .bk-table-head {
1346
1295
  position: relative;
1347
1296
  z-index: 2;
1297
+ scrollbar-gutter: stable;
1348
1298
  overflow: hidden;
1349
1299
  background-color: var(--background-color);
1350
1300
  }
@@ -1387,7 +1337,6 @@
1387
1337
  width: 100%;
1388
1338
  height: var(--footer-height);
1389
1339
  align-items: center;
1390
- padding: 0 16px 0 22px;
1391
1340
  }
1392
1341
  .bk-table .bk-table-footer.is-hidden {
1393
1342
  display: none;
@@ -1395,10 +1344,10 @@
1395
1344
  .bk-table.bordered-row .bk-table-head {
1396
1345
  border-bottom: 1px solid #dcdee5;
1397
1346
  }
1398
- .bk-table.bordered-row .bk-table-body tbody tr td {
1399
- border-bottom-color: #dcdee5;
1347
+ .bk-table.bordered-row td {
1348
+ border-bottom: 1px solid #dcdee5;
1400
1349
  }
1401
- .bk-table.bordered-row .bk-table-body tbody tr:last-child td {
1350
+ .bk-table.bordered-row tr:last-child td {
1402
1351
  border-bottom: none;
1403
1352
  }
1404
1353
  .bk-table.bordered-outer {
@@ -1419,18 +1368,14 @@
1419
1368
  .bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
1420
1369
  border-bottom: 1px solid #dcdee5;
1421
1370
  }
1422
- .bk-table.bordered-col th {
1371
+ .bk-table.bordered-col th,
1372
+ .bk-table.bordered-col td {
1423
1373
  border-right: 1px solid #dcdee5;
1424
1374
  }
1425
- .bk-table.bordered-col th:last-child {
1375
+ .bk-table.bordered-col th:last-child,
1376
+ .bk-table.bordered-col td:last-child {
1426
1377
  border-right: none;
1427
1378
  }
1428
- .bk-table.bordered-col .bk-table-body tbody tr td {
1429
- border-right-color: #dcdee5;
1430
- }
1431
- .bk-table.bordered-col .bk-table-body tbody tr td:last-child {
1432
- border-right-color: transparent;
1433
- }
1434
1379
  .bk-table th,
1435
1380
  .bk-table td {
1436
1381
  border-right: 1px solid transparent;
@@ -157,11 +157,6 @@ declare const _default: import("vue").DefineComponent<{
157
157
  rowDraggable: import("vue-types").VueTypeDef<any> & {
158
158
  default: any;
159
159
  };
160
- shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
161
- default: boolean;
162
- } & {
163
- default: boolean;
164
- };
165
160
  }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
166
161
  columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
167
162
  columnFilter: (_args: {
@@ -403,11 +398,6 @@ declare const _default: import("vue").DefineComponent<{
403
398
  rowDraggable: import("vue-types").VueTypeDef<any> & {
404
399
  default: any;
405
400
  };
406
- shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
407
- default: boolean;
408
- } & {
409
- default: boolean;
410
- };
411
401
  }>> & {
412
402
  onDragend?: (_args: {
413
403
  sourceEvent: DragEvent;
@@ -534,6 +524,5 @@ declare const _default: import("vue").DefineComponent<{
534
524
  prependStyle: import("vue").CSSProperties;
535
525
  isFlex: boolean;
536
526
  rowDraggable: any;
537
- shiftMultiChecked: boolean;
538
527
  }, {}>;
539
528
  export default _default;
@@ -12,9 +12,9 @@
12
12
 
13
13
  .@{bk-prefix}-table {
14
14
  position: relative;
15
- width: 100%;
16
15
  height: auto;
17
16
  overflow: hidden;
17
+ width: 100%;
18
18
 
19
19
  &-flex {
20
20
  display: flex;
@@ -34,9 +34,21 @@
34
34
 
35
35
  .@{bk-prefix}-table-body {
36
36
  position: relative;
37
- overflow: hidden;
37
+ overflow: auto;
38
+ scrollbar-gutter: stable;
38
39
  border-bottom: 1px solid @table-border-color;
39
40
 
41
+ &::-webkit-scrollbar {
42
+ width: 5px;
43
+ height: 6px;
44
+ }
45
+
46
+ &::-webkit-scrollbar-thumb {
47
+ background: #dcdee5;
48
+ border-radius: 10px;
49
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
50
+ }
51
+
40
52
  .prepend-row {
41
53
  transform: translateX(var(--prepend-left));
42
54
  }
@@ -81,6 +93,17 @@
81
93
  background: @table-bg-color;
82
94
  transform: translateZ(0);
83
95
 
96
+ &::-webkit-scrollbar {
97
+ width: 5px;
98
+ height: 5px;
99
+ }
100
+
101
+ &::-webkit-scrollbar-thumb {
102
+ background: #ddd;
103
+ border-radius: 20px;
104
+ box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
105
+ }
106
+
84
107
  &.__is-empty {
85
108
  display: flex;
86
109
  height: 100%;
@@ -125,8 +148,8 @@
125
148
  white-space: nowrap;
126
149
 
127
150
  .drag-cell {
128
- height: 100%;
129
151
  font-size: 14px;
152
+ height: 100%;
130
153
  }
131
154
 
132
155
  &.has-sort {
@@ -236,7 +259,7 @@
236
259
  .cell {
237
260
  display: flex;
238
261
  align-items: center;
239
- height: calc(var(--row-height) - 2px);
262
+ height: calc(var(--row-height) - 1px);
240
263
  color: @table-head-font-color;
241
264
  }
242
265
 
@@ -256,31 +279,26 @@
256
279
  tr {
257
280
  td {
258
281
  background-color: #fff;
259
- border-top: 1px solid transparent;
260
- border-bottom: 1px solid transparent;
261
- border-right: 1px solid transparent;
262
-
263
- box-sizing: border-box;
264
282
 
265
283
  &.empty-cell {
266
284
  padding-bottom: 30px;
267
285
  }
268
286
 
269
287
  &.is-last {
270
- // border-bottom: none;
288
+ border-bottom: none;
271
289
  }
272
290
 
273
291
  .cell {
274
292
  display: block;
275
293
  width: 100%;
276
- // height: 100%;
277
- line-height: calc(var(--row-height) - 2px);
294
+ height: 100%;
295
+ line-height: calc(var(--row-height) - 1px);
278
296
  box-sizing: border-box;
279
297
  align-items: center;
280
298
 
281
299
  &.drag {
282
- text-align: center;
283
300
  cursor: move;
301
+ text-align: center;
284
302
  }
285
303
  }
286
304
  }
@@ -295,7 +313,18 @@
295
313
  }
296
314
  }
297
315
 
316
+ // &.--drag-enter {
317
+ // &.--bottom {
318
+ // border-bottom: solid 1px #3785ff;
319
+ // }
320
+
321
+ // &.--top {
322
+ // border-top: solid 1px #3785ff;
323
+ // }
324
+ // }
325
+
298
326
  &.--drag-start {
327
+
299
328
  td {
300
329
  background: #fff!important;
301
330
  }
@@ -308,6 +337,7 @@
308
337
  .@{bk-prefix}-table-head {
309
338
  position: relative;
310
339
  z-index: 2;
340
+ scrollbar-gutter: stable;
311
341
  overflow: hidden;
312
342
  background-color: var(--background-color);
313
343
 
@@ -338,8 +368,11 @@
338
368
  cursor: pointer;
339
369
 
340
370
  background: @table-head-bg-color;
371
+ //border-right: 1px solid @table-border-color;
372
+ // border-bottom: 1px solid @table-border-color;
341
373
  border-left: 1px solid @table-border-color;
342
374
  border-radius: 0 2px 0 0;
375
+ // transform: translateX(var(--scroll-left));
343
376
  justify-content: center;
344
377
  align-items: center;
345
378
 
@@ -356,7 +389,6 @@
356
389
  width: 100%;
357
390
  height: var(--footer-height);
358
391
  align-items: center;
359
- padding: 0 16px 0 22px;
360
392
 
361
393
  &.is-hidden {
362
394
  display: none;
@@ -368,18 +400,14 @@
368
400
  border-bottom: 1px solid @table-border-color;
369
401
  }
370
402
 
371
- .bk-table-body {
372
- tbody {
373
- tr {
374
- td {
375
- border-bottom-color: @table-border-color;
376
- }
403
+ td {
404
+ border-bottom: 1px solid @table-border-color;
405
+ }
377
406
 
378
- &:last-child {
379
- td {
380
- border-bottom: none;
381
- }
382
- }
407
+ tr {
408
+ &:last-child {
409
+ td {
410
+ border-bottom: none;
383
411
  }
384
412
  }
385
413
  }
@@ -414,7 +442,8 @@
414
442
  }
415
443
 
416
444
  &.bordered-col {
417
- th {
445
+ th,
446
+ td {
418
447
  border-right: 1px solid @table-border-color;
419
448
 
420
449
  &:last-child {
@@ -422,24 +451,9 @@
422
451
  }
423
452
  }
424
453
 
425
- .bk-table-body {
426
- tbody {
427
- tr {
428
- td {
429
- border-right-color: @table-border-color;
430
-
431
- &:last-child {
432
- border-right-color: transparent;
433
- }
434
- }
435
- }
436
- }
437
- }
438
-
439
454
  }
440
455
 
441
- th,
442
- td {
456
+ th, td {
443
457
  border-right: 1px solid transparent;
444
458
  }
445
459
 
@@ -459,6 +473,7 @@
459
473
  right: 0;
460
474
  bottom: var(--footer-height);
461
475
  left: 0;
476
+ // height: var(--fix-height);
462
477
  pointer-events: none;
463
478
 
464
479
  .column_fixed {
@@ -517,4 +532,4 @@
517
532
  .stripe-row {
518
533
  background: #fafbfd;
519
534
  }
520
- }
535
+ }