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