bkui-vue 1.0.3-beta.47.scrollbar.1 → 1.0.3-beta.48

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.
@@ -56,7 +56,7 @@
56
56
  border-radius: 2px;
57
57
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
58
58
  }
59
- .bk-modal-body {
59
+ .bk-modal-content {
60
60
  overflow: auto;
61
61
  }
62
62
  .bk-modal-close {
@@ -185,7 +185,7 @@
185
185
  border-radius: 2px;
186
186
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
187
187
  }
188
- .bk-modal-body {
188
+ .bk-modal-content {
189
189
  overflow: auto;
190
190
  }
191
191
  .bk-modal-close {
@@ -506,7 +506,7 @@ function _defineProperty(obj, key, value) {
506
506
  ;// CONCATENATED MODULE: external "vue"
507
507
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
508
508
  var external_vue_y = x => () => x
509
- const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["useSlots"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.useSlots, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
509
+ const external_vue_namespaceObject = external_vue_x({ ["Transition"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Transition, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
510
510
  // EXTERNAL MODULE: ../../node_modules/@babel/runtime/regenerator/index.js
511
511
  var regenerator = __webpack_require__(2841);
512
512
  var regenerator_default = /*#__PURE__*/__webpack_require__.n(regenerator);
@@ -550,14 +550,10 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
550
550
  var useContentResize = function useContentResize(root, props) {
551
551
  var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
552
552
  resolveClassName = _usePrefix.resolveClassName;
553
- var slots = (0,external_vue_namespaceObject.useSlots)();
554
553
  var isContentScroll = (0,external_vue_namespaceObject.ref)(false);
555
554
  var contentStyles = (0,external_vue_namespaceObject.ref)({});
556
555
  var observer;
557
556
  var handleContentBoxChange = function handleContentBoxChange() {
558
- if (!slots.footer) {
559
- return;
560
- }
561
557
  var calcContentScroll = (0,throttle_namespaceObject["default"])(function () {
562
558
  var _root$value$querySele = root.value.querySelector(".".concat(resolveClassName('modal-header'))).getBoundingClientRect(),
563
559
  headerHeight = _root$value$querySele.height;
@@ -56,7 +56,7 @@
56
56
  border-radius: 2px;
57
57
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
58
58
  }
59
- .bk-modal-body {
59
+ .bk-modal-content {
60
60
  overflow: auto;
61
61
  }
62
62
  .bk-modal-close {
@@ -26,7 +26,7 @@
26
26
  display: none;
27
27
  width: 100%;
28
28
  height: 100%;
29
- background-color: rgba(0,0,0,.6);
29
+ background-color: rgba(0, 0, 0, 0.6);
30
30
  }
31
31
 
32
32
  .@{bk-prefix}-modal-wrapper {
@@ -35,8 +35,6 @@
35
35
  left: 50%;
36
36
  border-radius: 2px;
37
37
  transform: translate(-50%, -50%);
38
-
39
-
40
38
  }
41
39
 
42
40
  .@{bk-prefix}-modal-outside {
@@ -52,10 +50,10 @@
52
50
  overflow: hidden;
53
51
  background: #fff;
54
52
  border-radius: 2px;
55
- box-shadow: 0 4px 12px rgba(0,0,0,.15);
53
+ box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
56
54
  }
57
55
 
58
- .@{bk-prefix}-modal-body {
56
+ .@{bk-prefix}-modal-content {
59
57
  overflow: auto;
60
58
  }
61
59
 
@@ -72,11 +70,9 @@
72
70
  align-items: center;
73
71
  justify-content: center;
74
72
  border-radius: 50%;
75
- transition: .15s;
73
+ transition: 0.15s;
76
74
 
77
75
  &:hover {
78
76
  background: #f0f1f5;
79
77
  }
80
78
  }
81
-
82
-
@@ -185,7 +185,7 @@
185
185
  border-radius: 2px;
186
186
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
187
187
  }
188
- .bk-modal-body {
188
+ .bk-modal-content {
189
189
  overflow: auto;
190
190
  }
191
191
  .bk-modal-close {
@@ -79,11 +79,6 @@
79
79
  width: 100%;
80
80
  padding: 0 0 0 46px;
81
81
  }
82
- .bk-sideslider-content {
83
- padding-right: 24px;
84
- padding-left: 24px;
85
- overflow-y: scroll;
86
- }
87
82
  .bk-sideslider-footer {
88
83
  display: flex;
89
84
  width: 100%;
@@ -24,7 +24,7 @@
24
24
  &.is-fixed {
25
25
  .@{bk-prefix}-sideslider-footer {
26
26
  height: 54px;
27
- margin: 0;;
27
+ margin: 0;
28
28
  border-top: 1px solid transparent;
29
29
  box-shadow: rgb(0 0 0 / 6%) 0 -2px 4px 0;
30
30
  }
@@ -98,11 +98,8 @@
98
98
  }
99
99
  }
100
100
 
101
- .@{bk-prefix}-sideslider-content {
102
- padding-right: 24px;
103
- padding-left: 24px;
104
- overflow-y: scroll;
105
- }
101
+ // .@{bk-prefix}-sideslider-content {
102
+ // }
106
103
 
107
104
  .@{bk-prefix}-sideslider-footer {
108
105
  display: flex;
@@ -121,27 +118,27 @@
121
118
  .slide-leave-active,
122
119
  .@{bk-prefix}-modal-body {
123
120
  transform: translateX(0);
124
- transition: transform .25s;
121
+ transition: transform 0.25s;
125
122
  }
126
123
 
127
124
  .slide-enter-active {
128
- animation: slider-fade-in .25s;
125
+ animation: slider-fade-in 0.25s;
129
126
  }
130
127
 
131
128
  .slide-leave-active {
132
- animation: slider-fade-in .25s reverse;
129
+ animation: slider-fade-in 0.25s reverse;
133
130
  }
134
131
 
135
132
  .slide-enter-from,
136
133
  .slide-leave-to {
137
134
  &.left {
138
135
  transform: translateX(-100%);
139
- transition: transform .25s;
136
+ transition: transform 0.25s;
140
137
  }
141
138
 
142
139
  &.right {
143
140
  transform: translateX(100%);
144
- transition: transform .25s;
141
+ transition: transform 0.25s;
145
142
  }
146
143
  }
147
144
 
@@ -154,6 +151,3 @@
154
151
  opacity: 1;
155
152
  }
156
153
  }
157
-
158
-
159
-
@@ -208,11 +208,6 @@
208
208
  width: 100%;
209
209
  padding: 0 0 0 46px;
210
210
  }
211
- .bk-sideslider-content {
212
- padding-right: 24px;
213
- padding-left: 24px;
214
- overflow-y: scroll;
215
- }
216
211
  .bk-sideslider-footer {
217
212
  display: flex;
218
213
  width: 100%;
@@ -6984,10 +6984,6 @@ 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
- },
6991
6987
  "enabled": props.virtualEnabled,
6992
6988
  "keepAlive": true
6993
6989
  }), {
@@ -997,9 +997,9 @@
997
997
  }
998
998
  .bk-table {
999
999
  position: relative;
1000
- width: 100%;
1001
1000
  height: auto;
1002
1001
  overflow: hidden;
1002
+ width: 100%;
1003
1003
  }
1004
1004
  .bk-table-flex {
1005
1005
  display: flex;
@@ -1015,9 +1015,19 @@
1015
1015
  }
1016
1016
  .bk-table .bk-table-body {
1017
1017
  position: relative;
1018
- overflow: hidden;
1018
+ overflow: auto;
1019
+ scrollbar-gutter: stable;
1019
1020
  border-bottom: 1px solid #dcdee5;
1020
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
+ }
1021
1031
  .bk-table .bk-table-body .prepend-row {
1022
1032
  transform: translateX(var(--prepend-left));
1023
1033
  }
@@ -1107,8 +1117,8 @@
1107
1117
  .bk-table .bk-table-body table th .cell .drag-cell,
1108
1118
  .bk-table .bk-table-head table td .cell .drag-cell,
1109
1119
  .bk-table .bk-table-body table td .cell .drag-cell {
1110
- height: 100%;
1111
1120
  font-size: 14px;
1121
+ height: 100%;
1112
1122
  }
1113
1123
  .bk-table .bk-table-head table th .cell.has-sort,
1114
1124
  .bk-table .bk-table-body table th .cell.has-sort,
@@ -1270,8 +1280,8 @@
1270
1280
  }
1271
1281
  .bk-table .bk-table-head table tbody tr td .cell.drag,
1272
1282
  .bk-table .bk-table-body table tbody tr td .cell.drag {
1273
- text-align: center;
1274
1283
  cursor: move;
1284
+ text-align: center;
1275
1285
  }
1276
1286
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1277
1287
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
@@ -1284,6 +1294,7 @@
1284
1294
  .bk-table .bk-table-head {
1285
1295
  position: relative;
1286
1296
  z-index: 2;
1297
+ scrollbar-gutter: stable;
1287
1298
  overflow: hidden;
1288
1299
  background-color: var(--background-color);
1289
1300
  }
@@ -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
  }
@@ -136,8 +148,8 @@
136
148
  white-space: nowrap;
137
149
 
138
150
  .drag-cell {
139
- height: 100%;
140
151
  font-size: 14px;
152
+ height: 100%;
141
153
  }
142
154
 
143
155
  &.has-sort {
@@ -285,8 +297,8 @@
285
297
  align-items: center;
286
298
 
287
299
  &.drag {
288
- text-align: center;
289
300
  cursor: move;
301
+ text-align: center;
290
302
  }
291
303
  }
292
304
  }
@@ -312,6 +324,7 @@
312
324
  // }
313
325
 
314
326
  &.--drag-start {
327
+
315
328
  td {
316
329
  background: #fff!important;
317
330
  }
@@ -324,6 +337,7 @@
324
337
  .@{bk-prefix}-table-head {
325
338
  position: relative;
326
339
  z-index: 2;
340
+ scrollbar-gutter: stable;
327
341
  overflow: hidden;
328
342
  background-color: var(--background-color);
329
343
 
@@ -439,8 +453,7 @@
439
453
 
440
454
  }
441
455
 
442
- th,
443
- td {
456
+ th, td {
444
457
  border-right: 1px solid transparent;
445
458
  }
446
459
 
@@ -1126,9 +1126,9 @@
1126
1126
  }
1127
1127
  .bk-table {
1128
1128
  position: relative;
1129
- width: 100%;
1130
1129
  height: auto;
1131
1130
  overflow: hidden;
1131
+ width: 100%;
1132
1132
  }
1133
1133
  .bk-table-flex {
1134
1134
  display: flex;
@@ -1144,9 +1144,19 @@
1144
1144
  }
1145
1145
  .bk-table .bk-table-body {
1146
1146
  position: relative;
1147
- overflow: hidden;
1147
+ overflow: auto;
1148
+ scrollbar-gutter: stable;
1148
1149
  border-bottom: 1px solid #dcdee5;
1149
1150
  }
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
+ }
1150
1160
  .bk-table .bk-table-body .prepend-row {
1151
1161
  transform: translateX(var(--prepend-left));
1152
1162
  }
@@ -1236,8 +1246,8 @@
1236
1246
  .bk-table .bk-table-body table th .cell .drag-cell,
1237
1247
  .bk-table .bk-table-head table td .cell .drag-cell,
1238
1248
  .bk-table .bk-table-body table td .cell .drag-cell {
1239
- height: 100%;
1240
1249
  font-size: 14px;
1250
+ height: 100%;
1241
1251
  }
1242
1252
  .bk-table .bk-table-head table th .cell.has-sort,
1243
1253
  .bk-table .bk-table-body table th .cell.has-sort,
@@ -1399,8 +1409,8 @@
1399
1409
  }
1400
1410
  .bk-table .bk-table-head table tbody tr td .cell.drag,
1401
1411
  .bk-table .bk-table-body table tbody tr td .cell.drag {
1402
- text-align: center;
1403
1412
  cursor: move;
1413
+ text-align: center;
1404
1414
  }
1405
1415
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1406
1416
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
@@ -1413,6 +1423,7 @@
1413
1423
  .bk-table .bk-table-head {
1414
1424
  position: relative;
1415
1425
  z-index: 2;
1426
+ scrollbar-gutter: stable;
1416
1427
  overflow: hidden;
1417
1428
  background-color: var(--background-color);
1418
1429
  }
@@ -124,7 +124,6 @@ declare const BkVirtualRender: {
124
124
  } & {
125
125
  default: boolean;
126
126
  };
127
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
128
127
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
129
128
  default: boolean;
130
129
  } & {
@@ -262,7 +261,6 @@ declare const BkVirtualRender: {
262
261
  } & {
263
262
  default: boolean;
264
263
  };
265
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
266
264
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
267
265
  default: boolean;
268
266
  } & {
@@ -442,7 +440,6 @@ declare const BkVirtualRender: {
442
440
  } & {
443
441
  default: boolean;
444
442
  };
445
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
446
443
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
447
444
  default: boolean;
448
445
  } & {
@@ -616,7 +613,6 @@ declare const BkVirtualRender: {
616
613
  } & {
617
614
  default: boolean;
618
615
  };
619
- scrollbar: import("vue-types").VueTypeDef<import("./props").IScrollbarOption>;
620
616
  autoReset: import("vue-types").VueTypeValidableDef<boolean> & {
621
617
  default: boolean;
622
618
  } & {