bkui-vue 2.0.1-beta.25 → 2.0.1-beta.27

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.
@@ -4644,7 +4644,8 @@ function date_picker_objectSpread(e) { for (var r = 1; r < arguments.length; r++
4644
4644
  if (visualValue !== null && visualValue !== void 0 && visualValue.value) {
4645
4645
  state.showClose = true;
4646
4646
  }
4647
- state.internalValue = state.tmpValue;
4647
+ // state.internalValue = state.tmpValue;
4648
+ // console.error('enterenterenterenterenterenterenterenter', e, state.internalValue);
4648
4649
  };
4649
4650
  var handleInputMouseleave = function handleInputMouseleave(_e) {
4650
4651
  // if (e.toElement?.classList.contains('clear-action')) {
package/lib/index.js CHANGED
@@ -4,5 +4,5 @@ export { default } from './preset';
4
4
  export * from './config-provider';
5
5
  export * from './directives';
6
6
  export * as plugins from './plugins';
7
- export const version = "2.0.1-beta.25";
7
+ export const version = "2.0.1-beta.27";
8
8
  window.__bkui_vue_version__ = version;
@@ -1,5 +1,4 @@
1
1
  import "../styles/reset.css";
2
- import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
3
2
  /******/ var __webpack_modules__ = ({
4
3
 
5
4
  /***/ 6635:
@@ -17492,10 +17491,8 @@ function _nonIterableRest() {
17492
17491
  function _slicedToArray(arr, i) {
17493
17492
  return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
17494
17493
  }
17495
- ;// CONCATENATED MODULE: external "../shared"
17496
- var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17497
- var y = x => () => x
17498
- const shared_namespaceObject = x({ ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle });
17494
+ // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
17495
+ var lodash = __webpack_require__(6635);
17499
17496
  ;// CONCATENATED MODULE: ../../packages/scrollbar/src/scrollbar-core/can-use-dom.ts
17500
17497
  /*
17501
17498
  * Tencent is pleased to support the open source community by making
@@ -17734,8 +17731,6 @@ function scrollbarWidth() {
17734
17731
  }
17735
17732
  return cachedScrollbarWidth;
17736
17733
  }
17737
- // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
17738
- var lodash = __webpack_require__(6635);
17739
17734
  ;// CONCATENATED MODULE: ../../packages/scrollbar/src/scrollbar-core/index.ts
17740
17735
 
17741
17736
 
@@ -17775,7 +17770,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
17775
17770
 
17776
17771
 
17777
17772
 
17778
-
17779
17773
  var scrollbar_core_getElementWindow = getElementWindow,
17780
17774
  scrollbar_core_getElementDocument = getElementDocument,
17781
17775
  scrollbar_core_addClasses = addClasses,
@@ -18158,11 +18152,11 @@ var BkScrollbarCore = /*#__PURE__*/function () {
18158
18152
  if (_typeof(this.el) !== 'object' || !this.el.nodeName) {
18159
18153
  throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
18160
18154
  }
18161
- this.onMouseMove = (0,shared_namespaceObject.throttle)(this.mOnMouseMove);
18155
+ this.onMouseMove = (0,lodash.throttle)(this.mOnMouseMove, 64);
18162
18156
  this.onWindowResize = (0,lodash.debounce)(this.mOnWindowResize, 64);
18163
18157
  this.onStopScrolling = (0,lodash.debounce)(this.mOnStopScrolling, 64);
18164
18158
  this.onMouseEntered = (0,lodash.debounce)(this.mOnMouseEntered, 64);
18165
- this.mouseWheelInstance = mouse_wheel(this.mOnMouseWheel);
18159
+ this.mouseWheelInstance = mouse_wheel((0,lodash.throttle)(this.mOnMouseWheel, 16));
18166
18160
  this.init();
18167
18161
  }
18168
18162
  _createClass(BkScrollbarCore, [{
@@ -18626,6 +18620,7 @@ _defineProperty(BkScrollbarCore, "defaultOptions", {
18626
18620
  scrollbarMinSize: 25,
18627
18621
  scrollbarMaxSize: 0,
18628
18622
  ariaLabel: 'scrollable content',
18623
+ size: 'default',
18629
18624
  classNames: {
18630
18625
  contentEl: 'bk-content',
18631
18626
  wrapper: 'bk-wrapper',
@@ -1,4 +1,3 @@
1
- import { Cancellable } from '../../shared';
2
1
  import * as helpers from './helpers';
3
2
  interface DebouncedFunc<T extends (...args: any[]) => any> {
4
3
  /**
@@ -38,6 +37,7 @@ export interface Options {
38
37
  autoHide: boolean;
39
38
  useSystemScrollXBehavior?: boolean;
40
39
  useSystemScrollYBehavior?: boolean;
40
+ size: 'default' | 'small';
41
41
  scrollDelegate: {
42
42
  scrollHeight?: number;
43
43
  scrollWidth?: number;
@@ -47,7 +47,7 @@ export interface Options {
47
47
  y: number;
48
48
  }) => void;
49
49
  }
50
- export type SimpleBarOptions = Partial<Options>;
50
+ export type BkScrollBarOptions = Partial<Options>;
51
51
  type ClassNames = {
52
52
  contentEl: string;
53
53
  offset: string;
@@ -161,7 +161,7 @@ export default class BkScrollbarCore {
161
161
  * 模拟滚动条内部缩略滚动器滚动位置缓存器
162
162
  */
163
163
  wrapperScrollMap: {};
164
- onMouseMove: (() => void) | Cancellable<any>;
164
+ onMouseMove: (() => void) | DebouncedFunc<any>;
165
165
  onWindowResize: (() => void) | DebouncedFunc<any>;
166
166
  onStopScrolling: (() => void) | DebouncedFunc<any>;
167
167
  onMouseEntered: (() => void) | DebouncedFunc<any>;
@@ -145,23 +145,41 @@
145
145
  pointer-events: none;
146
146
  overflow: hidden;
147
147
  }
148
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical {
149
+ width: 6px;
150
+ }
151
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical.bk-scrollbar-hover {
152
+ width: 8px;
153
+ }
154
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal {
155
+ height: 6px;
156
+ }
157
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal.bk-scrollbar-hover {
158
+ height: 8px;
159
+ }
148
160
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
149
- background-color: #F0F1F5;
161
+ background-color: #f0f1f5;
150
162
  cursor: pointer;
151
163
  }
152
164
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
153
- background-color: #979BA5;
165
+ background-color: #979ba5;
154
166
  }
155
167
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
156
168
  top: 0;
157
169
  width: 8px;
158
170
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
159
171
  }
172
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical.bk-scrollbar-hover {
173
+ width: 10px;
174
+ }
160
175
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
161
176
  left: 0;
162
177
  height: 8px;
163
178
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
164
179
  }
180
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar-hover {
181
+ height: 10px;
182
+ }
165
183
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
166
184
  right: auto;
167
185
  left: 0;
@@ -184,17 +202,18 @@
184
202
  position: absolute;
185
203
  left: 0;
186
204
  right: 0;
187
- min-height: 8px;
205
+ top: 0;
206
+ bottom: 0;
188
207
  }
189
208
  .bk-scrollbar-wrapper .bk-scrollbar::before {
190
209
  position: absolute;
191
210
  content: '';
192
- background: #DCDEE5;
211
+ background: #dcdee5;
193
212
  border-radius: 6px;
194
- left: 1px;
195
- right: 1px;
196
- top: 1px;
197
- bottom: 1px;
213
+ left: 0;
214
+ right: 0;
215
+ top: 0;
216
+ bottom: 0;
198
217
  opacity: 0;
199
218
  transition: opacity 0.2s 0.9s linear;
200
219
  }
@@ -18,13 +18,31 @@
18
18
  pointer-events: none;
19
19
  overflow: hidden;
20
20
 
21
+ &.track-small {
22
+ &.@{bk-prefix}-scrollbar-vertical {
23
+ width: 6px;
24
+
25
+ &.@{bk-prefix}-scrollbar-hover {
26
+ width: 8px;
27
+ }
28
+ }
29
+
30
+ &.@{bk-prefix}-scrollbar-horizontal {
31
+ height: 6px;
32
+
33
+ &.@{bk-prefix}-scrollbar-hover {
34
+ height: 8px;
35
+ }
36
+ }
37
+ }
38
+
21
39
  &.@{bk-prefix}-scrollbar-hover {
22
- background-color: #F0F1F5;
40
+ background-color: #f0f1f5;
23
41
  cursor: pointer;
24
42
 
25
43
  .@{bk-prefix}-scrollbar {
26
44
  &::before {
27
- background-color: #979BA5;
45
+ background-color: #979ba5;
28
46
  }
29
47
  }
30
48
  }
@@ -33,6 +51,10 @@
33
51
  top: 0;
34
52
  width: 8px;
35
53
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
54
+
55
+ &.@{bk-prefix}-scrollbar-hover {
56
+ width: 10px;
57
+ }
36
58
  }
37
59
 
38
60
  &.@{bk-prefix}-scrollbar-horizontal {
@@ -40,6 +62,10 @@
40
62
  height: 8px;
41
63
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
42
64
 
65
+ &.@{bk-prefix}-scrollbar-hover {
66
+ height: 10px;
67
+ }
68
+
43
69
  &.@{bk-prefix}-scrollbar {
44
70
  right: auto;
45
71
  left: 0;
@@ -52,7 +78,6 @@
52
78
  }
53
79
  }
54
80
 
55
-
56
81
  .@{bk-prefix}-scrollbar-dragging {
57
82
  pointer-events: none;
58
83
  -webkit-touch-callout: none;
@@ -63,22 +88,22 @@
63
88
  user-select: none;
64
89
  }
65
90
 
66
-
67
91
  .@{bk-prefix}-scrollbar {
68
92
  position: absolute;
69
93
  left: 0;
70
94
  right: 0;
71
- min-height: 8px;
95
+ top: 0;
96
+ bottom: 0;
72
97
 
73
98
  &::before {
74
99
  position: absolute;
75
100
  content: '';
76
- background: #DCDEE5;
101
+ background: #dcdee5;
77
102
  border-radius: 6px;
78
- left: 1px;
79
- right: 1px;
80
- top: 1px;
81
- bottom: 1px;
103
+ left: 0;
104
+ right: 0;
105
+ top: 0;
106
+ bottom: 0;
82
107
  opacity: 0;
83
108
  transition: opacity 0.2s 0.9s linear;
84
109
  }
@@ -405,23 +405,41 @@
405
405
  pointer-events: none;
406
406
  overflow: hidden;
407
407
  }
408
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical {
409
+ width: 6px;
410
+ }
411
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical.bk-scrollbar-hover {
412
+ width: 8px;
413
+ }
414
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal {
415
+ height: 6px;
416
+ }
417
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal.bk-scrollbar-hover {
418
+ height: 8px;
419
+ }
408
420
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
409
- background-color: #F0F1F5;
421
+ background-color: #f0f1f5;
410
422
  cursor: pointer;
411
423
  }
412
424
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
413
- background-color: #979BA5;
425
+ background-color: #979ba5;
414
426
  }
415
427
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
416
428
  top: 0;
417
429
  width: 8px;
418
430
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
419
431
  }
432
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical.bk-scrollbar-hover {
433
+ width: 10px;
434
+ }
420
435
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
421
436
  left: 0;
422
437
  height: 8px;
423
438
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
424
439
  }
440
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar-hover {
441
+ height: 10px;
442
+ }
425
443
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
426
444
  right: auto;
427
445
  left: 0;
@@ -444,17 +462,18 @@
444
462
  position: absolute;
445
463
  left: 0;
446
464
  right: 0;
447
- min-height: 8px;
465
+ top: 0;
466
+ bottom: 0;
448
467
  }
449
468
  .bk-scrollbar-wrapper .bk-scrollbar::before {
450
469
  position: absolute;
451
470
  content: '';
452
- background: #DCDEE5;
471
+ background: #dcdee5;
453
472
  border-radius: 6px;
454
- left: 1px;
455
- right: 1px;
456
- top: 1px;
457
- bottom: 1px;
473
+ left: 0;
474
+ right: 0;
475
+ top: 0;
476
+ bottom: 0;
458
477
  opacity: 0;
459
478
  transition: opacity 0.2s 0.9s linear;
460
479
  }
@@ -3551,7 +3551,11 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
3551
3551
  "height": _this.virtualHeight,
3552
3552
  "lineHeight": _this.virtualLineHeight,
3553
3553
  "list": _this.filterList,
3554
- "preloadItemCount": _this.preloadItemCount
3554
+ "preloadItemCount": _this.preloadItemCount,
3555
+ "scrollbar": {
3556
+ enabled: true,
3557
+ size: 'small'
3558
+ }
3555
3559
  }, {
3556
3560
  "default": function _default(_ref3) {
3557
3561
  var _this$$slots10, _this$$slots11;
@@ -17324,6 +17324,8 @@ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODUL
17324
17324
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17325
17325
  var external_vue_y = x => () => x
17326
17326
  const external_vue_namespaceObject = external_vue_x({ ["Fragment"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.Fragment, ["computed"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.computed, ["createTextVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createTextVNode, ["createVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.createVNode, ["defineComponent"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.defineComponent, ["getCurrentInstance"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.getCurrentInstance, ["inject"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.inject, ["isProxy"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isProxy, ["isRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isRef, ["isVNode"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.isVNode, ["mergeProps"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.mergeProps, ["nextTick"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.nextTick, ["onBeforeUnmount"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onBeforeUnmount, ["onMounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onMounted, ["onUnmounted"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.onUnmounted, ["provide"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.provide, ["reactive"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.reactive, ["ref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.ref, ["toRaw"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRaw, ["toRef"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.toRef, ["unref"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.unref, ["watch"]: () => __WEBPACK_EXTERNAL_MODULE_vue__.watch });
17327
+ // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
17328
+ var lodash = __webpack_require__(6635);
17327
17329
  ;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/typeof.js
17328
17330
  function typeof_typeof(o) {
17329
17331
  "@babel/helpers - typeof";
@@ -17912,8 +17914,6 @@ var tableProps = {
17912
17914
  }
17913
17915
  }).def(null)
17914
17916
  };
17915
- // EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
17916
- var lodash = __webpack_require__(6635);
17917
17917
  ;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
17918
17918
  /*
17919
17919
  * Tencent is pleased to support the open source community by making
@@ -17971,12 +17971,13 @@ var TableColumnProp = {
17971
17971
  setup: function setup(props, _ref) {
17972
17972
  var slots = _ref.slots;
17973
17973
  var initTableColumns = (0,external_vue_namespaceObject.inject)(PROVIDE_KEY_INIT_COL, function () {});
17974
+ var lastPropsVal = {};
17974
17975
  (0,external_vue_namespaceObject.watch)(function () {
17975
17976
  return [props];
17976
- }, function (oldVal, newVal) {
17977
- var _newVal$;
17978
- if (!(0,lodash.isEqual)((0,external_vue_namespaceObject.toRaw)(oldVal === null || oldVal === void 0 ? void 0 : oldVal[0]), (0,external_vue_namespaceObject.toRaw)((_newVal$ = newVal === null || newVal === void 0 ? void 0 : newVal[0]) !== null && _newVal$ !== void 0 ? _newVal$ : {}))) {
17977
+ }, function () {
17978
+ if (!(0,lodash.isEqual)(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props))) {
17979
17979
  initTableColumns();
17980
+ Object.assign(lastPropsVal, (0,external_vue_namespaceObject.toRaw)(props));
17980
17981
  }
17981
17982
  }, {
17982
17983
  immediate: true,
@@ -18422,7 +18423,7 @@ function v4(options, buf, offset) {
18422
18423
  return columnCache.get(ctx);
18423
18424
  };
18424
18425
  var resolveChildNode = function resolveChildNode(node) {
18425
- var _node$type, _node$type2;
18426
+ var _node$type, _node$type2, _node$component;
18426
18427
  if (!node || ((_node$type = node.type) === null || _node$type === void 0 ? void 0 : _node$type.name) === 'Table') {
18427
18428
  return;
18428
18429
  }
@@ -18443,24 +18444,28 @@ function v4(options, buf, offset) {
18443
18444
  }
18444
18445
  return;
18445
18446
  }
18447
+ if (node !== null && node !== void 0 && (_node$component = node.component) !== null && _node$component !== void 0 && _node$component.subTree) {
18448
+ var _node$component2;
18449
+ resolveChildNode(node === null || node === void 0 || (_node$component2 = node.component) === null || _node$component2 === void 0 ? void 0 : _node$component2.subTree);
18450
+ return;
18451
+ }
18452
+ if (typeof node === 'function') {
18453
+ return node();
18454
+ }
18446
18455
  if (Array.isArray(node)) {
18447
18456
  node.forEach(resolveChildNode);
18457
+ return;
18448
18458
  }
18449
18459
  if (Array.isArray(node === null || node === void 0 ? void 0 : node.children)) {
18450
18460
  node.children.forEach(resolveChildNode);
18461
+ return;
18451
18462
  }
18452
18463
  if ((0,external_vue_namespaceObject.isVNode)(node) && node !== null && node !== void 0 && node.children && typeof_typeof(node === null || node === void 0 ? void 0 : node.children) === 'object') {
18453
18464
  Object.keys(node.children).forEach(function (key) {
18454
18465
  return resolveChildNode(node.children[key]);
18455
18466
  });
18467
+ return;
18456
18468
  }
18457
- if (typeof node === 'function') {
18458
- return node();
18459
- }
18460
- // if (Array.isArray(node?.subTree)) {
18461
- // node.subTree.forEach(resolveChildNode);
18462
- // }
18463
- return;
18464
18469
  };
18465
18470
  var resolveColumns = function resolveColumns(children) {
18466
18471
  columns.length = 0;
@@ -18470,8 +18475,14 @@ function v4(options, buf, offset) {
18470
18475
  return ((_node$type3 = node.type) === null || _node$type3 === void 0 ? void 0 : _node$type3.name) === 'GhostBody';
18471
18476
  });
18472
18477
  if (ghostBody) {
18473
- var _ghostBody$children$d, _ghostBody$children, _ghostBody$children$d2;
18474
- ((_ghostBody$children$d = (_ghostBody$children = ghostBody.children) === null || _ghostBody$children === void 0 || (_ghostBody$children$d2 = _ghostBody$children["default"]) === null || _ghostBody$children$d2 === void 0 ? void 0 : _ghostBody$children$d2.call(_ghostBody$children)) !== null && _ghostBody$children$d !== void 0 ? _ghostBody$children$d : []).forEach(resolveChildNode);
18478
+ var _ghostBody$component;
18479
+ if ((_ghostBody$component = ghostBody.component) !== null && _ghostBody$component !== void 0 && _ghostBody$component.subTree) {
18480
+ var _ghostBody$component2;
18481
+ resolveChildNode((_ghostBody$component2 = ghostBody.component) === null || _ghostBody$component2 === void 0 ? void 0 : _ghostBody$component2.subTree);
18482
+ } else {
18483
+ var _ghostBody$children$d, _ghostBody$children, _ghostBody$children$d2;
18484
+ ((_ghostBody$children$d = (_ghostBody$children = ghostBody.children) === null || _ghostBody$children === void 0 || (_ghostBody$children$d2 = _ghostBody$children["default"]) === null || _ghostBody$children$d2 === void 0 ? void 0 : _ghostBody$children$d2.call(_ghostBody$children)) !== null && _ghostBody$children$d !== void 0 ? _ghostBody$children$d : []).forEach(resolveChildNode);
18485
+ }
18475
18486
  }
18476
18487
  columns.sort(function (col1, col2) {
18477
18488
  return col1.index - col2.index;
@@ -20785,6 +20796,51 @@ const virtual_render_namespaceObject = virtual_render_x({ ["default"]: () => __W
20785
20796
  var virtual_render_less_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
20786
20797
  var virtual_render_less_y = x => () => x
20787
20798
  const virtual_render_less_namespaceObject = virtual_render_less_x({ });
20799
+ ;// CONCATENATED MODULE: ../../packages/table/src/components/ghost-body.tsx
20800
+
20801
+ /*
20802
+ * Tencent is pleased to support the open source community by making
20803
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
20804
+ *
20805
+ * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
20806
+ *
20807
+ * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
20808
+ *
20809
+ * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
20810
+ *
20811
+ * ---------------------------------------------------
20812
+ * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
20813
+ * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
20814
+ * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
20815
+ * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
20816
+ *
20817
+ * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
20818
+ * the Software.
20819
+ *
20820
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
20821
+ * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20822
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20823
+ * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20824
+ * IN THE SOFTWARE.
20825
+ */
20826
+
20827
+ /* harmony default export */ const ghost_body = ((0,external_vue_namespaceObject.defineComponent)({
20828
+ name: 'GhostBody',
20829
+ setup: function setup(_, ctx) {
20830
+ var columnGhostStyle = {
20831
+ zIndex: -1,
20832
+ width: 0,
20833
+ height: 0,
20834
+ display: 'none'
20835
+ };
20836
+ return function () {
20837
+ var _ctx$slots$default, _ctx$slots;
20838
+ return (0,external_vue_namespaceObject.createVNode)("div", {
20839
+ "style": columnGhostStyle
20840
+ }, [(_ctx$slots$default = (_ctx$slots = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots)]);
20841
+ };
20842
+ }
20843
+ }));
20788
20844
  ;// CONCATENATED MODULE: external "../loading"
20789
20845
  var loading_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
20790
20846
  var loading_y = x => () => x
@@ -20869,51 +20925,6 @@ const loading_less_namespaceObject = loading_less_x({ });
20869
20925
  renderScrollLoading: renderScrollLoading
20870
20926
  };
20871
20927
  });
20872
- ;// CONCATENATED MODULE: ../../packages/table/src/components/ghost-body.tsx
20873
-
20874
- /*
20875
- * Tencent is pleased to support the open source community by making
20876
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
20877
- *
20878
- * Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
20879
- *
20880
- * 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
20881
- *
20882
- * License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
20883
- *
20884
- * ---------------------------------------------------
20885
- * Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
20886
- * documentation files (the "Software"), to deal in the Software without restriction, including without limitation
20887
- * the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
20888
- * to permit persons to whom the Software is furnished to do so, subject to the following conditions:
20889
- *
20890
- * The above copyright notice and this permission notice shall be included in all copies or substantial portions of
20891
- * the Software.
20892
- *
20893
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
20894
- * THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20895
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
20896
- * CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
20897
- * IN THE SOFTWARE.
20898
- */
20899
-
20900
- /* harmony default export */ const ghost_body = ((0,external_vue_namespaceObject.defineComponent)({
20901
- name: 'GhostBody',
20902
- setup: function setup(_, ctx) {
20903
- var columnGhostStyle = {
20904
- zIndex: -1,
20905
- width: 0,
20906
- height: 0,
20907
- display: 'none'
20908
- };
20909
- return function () {
20910
- var _ctx$slots$default, _ctx$slots;
20911
- return (0,external_vue_namespaceObject.createVNode)("div", {
20912
- "style": columnGhostStyle
20913
- }, [(_ctx$slots$default = (_ctx$slots = ctx.slots)["default"]) === null || _ctx$slots$default === void 0 ? void 0 : _ctx$slots$default.call(_ctx$slots)]);
20914
- };
20915
- }
20916
- }));
20917
20928
  ;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-layout.tsx
20918
20929
 
20919
20930
 
@@ -21182,12 +21193,12 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
21182
21193
  "enabled": props.virtualEnabled,
21183
21194
  "lineHeight": lineHeight.value,
21184
21195
  "list": list,
21196
+ "maxHeight": bodyMaxHeight.value,
21185
21197
  "rowKey": props.rowKey,
21186
21198
  "scrollEvent": true,
21187
21199
  "scrollbar": {
21188
21200
  enabled: props.scrollbar
21189
21201
  },
21190
- "maxHeight": bodyMaxHeight.value,
21191
21202
  "throttleDelay": 120,
21192
21203
  "onContentScroll": handleScrollChanged
21193
21204
  }, {
@@ -162,23 +162,41 @@
162
162
  pointer-events: none;
163
163
  overflow: hidden;
164
164
  }
165
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical {
166
+ width: 6px;
167
+ }
168
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-vertical.bk-scrollbar-hover {
169
+ width: 8px;
170
+ }
171
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal {
172
+ height: 6px;
173
+ }
174
+ .bk-scrollbar-wrapper .bk-scrollbar-track.track-small.bk-scrollbar-horizontal.bk-scrollbar-hover {
175
+ height: 8px;
176
+ }
165
177
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
166
- background-color: #F0F1F5;
178
+ background-color: #f0f1f5;
167
179
  cursor: pointer;
168
180
  }
169
181
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
170
- background-color: #979BA5;
182
+ background-color: #979ba5;
171
183
  }
172
184
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
173
185
  top: 0;
174
186
  width: 8px;
175
187
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
176
188
  }
189
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical.bk-scrollbar-hover {
190
+ width: 10px;
191
+ }
177
192
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
178
193
  left: 0;
179
194
  height: 8px;
180
195
  transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
181
196
  }
197
+ .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar-hover {
198
+ height: 10px;
199
+ }
182
200
  .bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
183
201
  right: auto;
184
202
  left: 0;
@@ -201,17 +219,18 @@
201
219
  position: absolute;
202
220
  left: 0;
203
221
  right: 0;
204
- min-height: 8px;
222
+ top: 0;
223
+ bottom: 0;
205
224
  }
206
225
  .bk-scrollbar-wrapper .bk-scrollbar::before {
207
226
  position: absolute;
208
227
  content: '';
209
- background: #DCDEE5;
228
+ background: #dcdee5;
210
229
  border-radius: 6px;
211
- left: 1px;
212
- right: 1px;
213
- top: 1px;
214
- bottom: 1px;
230
+ left: 0;
231
+ right: 0;
232
+ top: 0;
233
+ bottom: 0;
215
234
  opacity: 0;
216
235
  transition: opacity 0.2s 0.9s linear;
217
236
  }