bkui-vue 1.0.3-beta.47 → 1.0.3-beta.47.scrollbar.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 +206 -154
- package/dist/index.esm.js +17889 -15285
- package/dist/index.umd.js +207 -155
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/table/index.js +4 -0
- package/lib/table/table.css +4 -15
- package/lib/table/table.less +6 -19
- package/lib/table/table.variable.css +4 -15
- package/lib/virtual-render/index.d.ts +4 -0
- package/lib/virtual-render/index.js +4607 -125
- package/lib/virtual-render/props.d.ts +8 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +8 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.d.ts +2 -0
- package/package.json +2 -1
package/lib/table/index.js
CHANGED
@@ -6984,6 +6984,10 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6984
6984
|
"throttleDelay": 120,
|
6985
6985
|
"scrollEvent": true,
|
6986
6986
|
"rowKey": props.rowKey,
|
6987
|
+
"scrollbar": {
|
6988
|
+
enabled: true,
|
6989
|
+
keepStruct: true
|
6990
|
+
},
|
6987
6991
|
"enabled": props.virtualEnabled,
|
6988
6992
|
"keepAlive": true
|
6989
6993
|
}), {
|
package/lib/table/table.css
CHANGED
@@ -997,9 +997,9 @@
|
|
997
997
|
}
|
998
998
|
.bk-table {
|
999
999
|
position: relative;
|
1000
|
+
width: 100%;
|
1000
1001
|
height: auto;
|
1001
1002
|
overflow: hidden;
|
1002
|
-
width: 100%;
|
1003
1003
|
}
|
1004
1004
|
.bk-table-flex {
|
1005
1005
|
display: flex;
|
@@ -1015,19 +1015,9 @@
|
|
1015
1015
|
}
|
1016
1016
|
.bk-table .bk-table-body {
|
1017
1017
|
position: relative;
|
1018
|
-
overflow:
|
1019
|
-
scrollbar-gutter: stable;
|
1018
|
+
overflow: hidden;
|
1020
1019
|
border-bottom: 1px solid #dcdee5;
|
1021
1020
|
}
|
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
1021
|
.bk-table .bk-table-body .prepend-row {
|
1032
1022
|
transform: translateX(var(--prepend-left));
|
1033
1023
|
}
|
@@ -1117,8 +1107,8 @@
|
|
1117
1107
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1118
1108
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1119
1109
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1120
|
-
font-size: 14px;
|
1121
1110
|
height: 100%;
|
1111
|
+
font-size: 14px;
|
1122
1112
|
}
|
1123
1113
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1124
1114
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1280,8 +1270,8 @@
|
|
1280
1270
|
}
|
1281
1271
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1282
1272
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1283
|
-
cursor: move;
|
1284
1273
|
text-align: center;
|
1274
|
+
cursor: move;
|
1285
1275
|
}
|
1286
1276
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1287
1277
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1294,7 +1284,6 @@
|
|
1294
1284
|
.bk-table .bk-table-head {
|
1295
1285
|
position: relative;
|
1296
1286
|
z-index: 2;
|
1297
|
-
scrollbar-gutter: stable;
|
1298
1287
|
overflow: hidden;
|
1299
1288
|
background-color: var(--background-color);
|
1300
1289
|
}
|
package/lib/table/table.less
CHANGED
@@ -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:
|
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
|
}
|
@@ -148,8 +136,8 @@
|
|
148
136
|
white-space: nowrap;
|
149
137
|
|
150
138
|
.drag-cell {
|
151
|
-
font-size: 14px;
|
152
139
|
height: 100%;
|
140
|
+
font-size: 14px;
|
153
141
|
}
|
154
142
|
|
155
143
|
&.has-sort {
|
@@ -297,8 +285,8 @@
|
|
297
285
|
align-items: center;
|
298
286
|
|
299
287
|
&.drag {
|
300
|
-
cursor: move;
|
301
288
|
text-align: center;
|
289
|
+
cursor: move;
|
302
290
|
}
|
303
291
|
}
|
304
292
|
}
|
@@ -324,7 +312,6 @@
|
|
324
312
|
// }
|
325
313
|
|
326
314
|
&.--drag-start {
|
327
|
-
|
328
315
|
td {
|
329
316
|
background: #fff!important;
|
330
317
|
}
|
@@ -337,7 +324,6 @@
|
|
337
324
|
.@{bk-prefix}-table-head {
|
338
325
|
position: relative;
|
339
326
|
z-index: 2;
|
340
|
-
scrollbar-gutter: stable;
|
341
327
|
overflow: hidden;
|
342
328
|
background-color: var(--background-color);
|
343
329
|
|
@@ -453,7 +439,8 @@
|
|
453
439
|
|
454
440
|
}
|
455
441
|
|
456
|
-
th,
|
442
|
+
th,
|
443
|
+
td {
|
457
444
|
border-right: 1px solid transparent;
|
458
445
|
}
|
459
446
|
|
@@ -1126,9 +1126,9 @@
|
|
1126
1126
|
}
|
1127
1127
|
.bk-table {
|
1128
1128
|
position: relative;
|
1129
|
+
width: 100%;
|
1129
1130
|
height: auto;
|
1130
1131
|
overflow: hidden;
|
1131
|
-
width: 100%;
|
1132
1132
|
}
|
1133
1133
|
.bk-table-flex {
|
1134
1134
|
display: flex;
|
@@ -1144,19 +1144,9 @@
|
|
1144
1144
|
}
|
1145
1145
|
.bk-table .bk-table-body {
|
1146
1146
|
position: relative;
|
1147
|
-
overflow:
|
1148
|
-
scrollbar-gutter: stable;
|
1147
|
+
overflow: hidden;
|
1149
1148
|
border-bottom: 1px solid #dcdee5;
|
1150
1149
|
}
|
1151
|
-
.bk-table .bk-table-body::-webkit-scrollbar {
|
1152
|
-
width: 5px;
|
1153
|
-
height: 6px;
|
1154
|
-
}
|
1155
|
-
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1156
|
-
background: #dcdee5;
|
1157
|
-
border-radius: 10px;
|
1158
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1159
|
-
}
|
1160
1150
|
.bk-table .bk-table-body .prepend-row {
|
1161
1151
|
transform: translateX(var(--prepend-left));
|
1162
1152
|
}
|
@@ -1246,8 +1236,8 @@
|
|
1246
1236
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1247
1237
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1248
1238
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1249
|
-
font-size: 14px;
|
1250
1239
|
height: 100%;
|
1240
|
+
font-size: 14px;
|
1251
1241
|
}
|
1252
1242
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1253
1243
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1409,8 +1399,8 @@
|
|
1409
1399
|
}
|
1410
1400
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1411
1401
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1412
|
-
cursor: move;
|
1413
1402
|
text-align: center;
|
1403
|
+
cursor: move;
|
1414
1404
|
}
|
1415
1405
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1416
1406
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1423,7 +1413,6 @@
|
|
1423
1413
|
.bk-table .bk-table-head {
|
1424
1414
|
position: relative;
|
1425
1415
|
z-index: 2;
|
1426
|
-
scrollbar-gutter: stable;
|
1427
1416
|
overflow: hidden;
|
1428
1417
|
background-color: var(--background-color);
|
1429
1418
|
}
|
@@ -124,6 +124,7 @@ declare const BkVirtualRender: {
|
|
124
124
|
} & {
|
125
125
|
default: boolean;
|
126
126
|
};
|
127
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
127
128
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
128
129
|
default: boolean;
|
129
130
|
} & {
|
@@ -261,6 +262,7 @@ declare const BkVirtualRender: {
|
|
261
262
|
} & {
|
262
263
|
default: boolean;
|
263
264
|
};
|
265
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
264
266
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
265
267
|
default: boolean;
|
266
268
|
} & {
|
@@ -440,6 +442,7 @@ declare const BkVirtualRender: {
|
|
440
442
|
} & {
|
441
443
|
default: boolean;
|
442
444
|
};
|
445
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
443
446
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
444
447
|
default: boolean;
|
445
448
|
} & {
|
@@ -613,6 +616,7 @@ declare const BkVirtualRender: {
|
|
613
616
|
} & {
|
614
617
|
default: boolean;
|
615
618
|
};
|
619
|
+
scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
|
616
620
|
autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
|
617
621
|
default: boolean;
|
618
622
|
} & {
|