bkui-vue 2.0.1-beta.15.table.1 → 2.0.1-beta.15.table.2

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.
@@ -1,3 +1,4 @@
1
+ import { Cancellable } from '../../shared';
1
2
  import * as helpers from './helpers';
2
3
  interface DebouncedFunc<T extends (...args: any[]) => any> {
3
4
  /**
@@ -160,7 +161,7 @@ export default class BkScrollbarCore {
160
161
  * 模拟滚动条内部缩略滚动器滚动位置缓存器
161
162
  */
162
163
  wrapperScrollMap: {};
163
- onMouseMove: (() => void) | DebouncedFunc<any>;
164
+ onMouseMove: (() => void) | Cancellable<any>;
164
165
  onWindowResize: (() => void) | DebouncedFunc<any>;
165
166
  onStopScrolling: (() => void) | DebouncedFunc<any>;
166
167
  onMouseEntered: (() => void) | DebouncedFunc<any>;
@@ -0,0 +1,15 @@
1
+ export type Cancellable<T extends (...args: any[]) => void> = {
2
+ (...args: Parameters<T>): void;
3
+ /**
4
+ * Cancel the next scheduled invocation of the callback.
5
+ */
6
+ cancel(): void;
7
+ };
8
+ /**
9
+ * Returns a throttled function which runs once per rendered frame using
10
+ * requestAnimationFrame. If window.requestAnimationFrame does not exist,
11
+ * the behavior will be approximated using setTimeout.
12
+ *
13
+ * @param callback the function to be throttled
14
+ */
15
+ export declare const throttle: <T extends (...args: any[]) => void>(callback: T) => Cancellable<T>;
@@ -34,6 +34,7 @@ export * from './token';
34
34
  export * from './utils';
35
35
  export * from './vue-types';
36
36
  export * from './z-index-manager';
37
+ export * from './frame-throttle';
37
38
  export declare function classes(dynamicCls: object, constCls?: string): string;
38
39
  export declare const EMPTY_OBJ: any;
39
40
  export declare const noop: () => void;
@@ -107,6 +107,7 @@ __webpack_require__.d(__webpack_exports__, {
107
107
  scrollTop: () => (/* reexport */ scrollTop),
108
108
  scrollbarWidth: () => (/* reexport */ scrollbarWidth),
109
109
  stringEnum: () => (/* reexport */ stringEnum),
110
+ throttle: () => (/* reexport */ throttle),
110
111
  triggerType: () => (/* reexport */ triggerType),
111
112
  useForm: () => (/* reexport */ useForm),
112
113
  useFormItem: () => (/* reexport */ useFormItem),
@@ -1867,6 +1868,74 @@ var BKZIndexManager = /*#__PURE__*/function () {
1867
1868
  return BKZIndexManager;
1868
1869
  }();
1869
1870
  var bkZIndexManager = new BKZIndexManager();
1871
+ ;// CONCATENATED MODULE: ../../packages/shared/src/frame-throttle.ts
1872
+ var wrapperFactory = function wrapperFactory() {
1873
+ var state = {
1874
+ cancelToken: 0
1875
+ };
1876
+ var resetCancelToken = function resetCancelToken() {
1877
+ state.cancelToken = 0;
1878
+ };
1879
+ var wrapper = function wrapper(cbThis, cb) {
1880
+ state.callbackThis = cbThis;
1881
+ for (var _len = arguments.length, args = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
1882
+ args[_key - 2] = arguments[_key];
1883
+ }
1884
+ state.args = args;
1885
+ if (state.cancelToken) {
1886
+ return;
1887
+ }
1888
+ if ('requestAnimationFrame' in window) {
1889
+ state.cancelToken = window.requestAnimationFrame(function () {
1890
+ cb.apply(state.callbackThis, state.args);
1891
+ resetCancelToken();
1892
+ });
1893
+ } else {
1894
+ cb.apply(state.callbackThis, state.args);
1895
+ state.cancelToken = window.setTimeout(resetCancelToken, 1000 / 60); // 60 fps
1896
+ }
1897
+ };
1898
+ wrapper.cancel = function () {
1899
+ if ('requestAnimationFrame' in window) {
1900
+ window.cancelAnimationFrame(state.cancelToken);
1901
+ }
1902
+ window.clearTimeout(state.cancelToken);
1903
+ resetCancelToken();
1904
+ };
1905
+ return wrapper;
1906
+ };
1907
+ var throttleFactory = function throttleFactory(callback, thisArg) {
1908
+ for (var _len2 = arguments.length, argArray = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
1909
+ argArray[_key2 - 2] = arguments[_key2];
1910
+ }
1911
+ var wrapper = wrapperFactory();
1912
+ var argCount = arguments.length;
1913
+ var throttledCallback = function throttledCallback() {
1914
+ for (var _len3 = arguments.length, args = new Array(_len3), _key3 = 0; _key3 < _len3; _key3++) {
1915
+ args[_key3] = arguments[_key3];
1916
+ }
1917
+ // @ts-ignore
1918
+ wrapper.apply(void 0, [argCount > 1 ? thisArg : this, callback].concat(argArray, args));
1919
+ };
1920
+ throttledCallback.cancel = function () {
1921
+ return wrapper.cancel();
1922
+ };
1923
+ return throttledCallback;
1924
+ };
1925
+ /**
1926
+ * Returns a throttled function which runs once per rendered frame using
1927
+ * requestAnimationFrame. If window.requestAnimationFrame does not exist,
1928
+ * the behavior will be approximated using setTimeout.
1929
+ *
1930
+ * @param callback the function to be throttled
1931
+ */
1932
+ var throttle = function throttle(callback) {
1933
+ var throttledCallback = throttleFactory(callback);
1934
+ // Override `bind()` to create a new throttled callback, otherwise both
1935
+ // the unbound and bound callbacks will have the same scope.
1936
+ throttledCallback.bind = throttleFactory.bind(null, callback);
1937
+ return throttledCallback;
1938
+ };
1870
1939
  ;// CONCATENATED MODULE: ../../packages/shared/src/index.ts
1871
1940
 
1872
1941
 
@@ -1878,6 +1947,7 @@ var bkZIndexManager = new BKZIndexManager();
1878
1947
 
1879
1948
 
1880
1949
 
1950
+
1881
1951
  function classes(dynamicCls) {
1882
1952
  var constCls = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
1883
1953
  return Object.entries(dynamicCls).filter(function (entry) {
@@ -2078,10 +2148,11 @@ var __webpack_exports__resolveClassName = __webpack_exports__.resolveClassName;
2078
2148
  var __webpack_exports__scrollTop = __webpack_exports__.scrollTop;
2079
2149
  var __webpack_exports__scrollbarWidth = __webpack_exports__.scrollbarWidth;
2080
2150
  var __webpack_exports__stringEnum = __webpack_exports__.stringEnum;
2151
+ var __webpack_exports__throttle = __webpack_exports__.throttle;
2081
2152
  var __webpack_exports__triggerType = __webpack_exports__.triggerType;
2082
2153
  var __webpack_exports__useForm = __webpack_exports__.useForm;
2083
2154
  var __webpack_exports__useFormItem = __webpack_exports__.useFormItem;
2084
2155
  var __webpack_exports__valueOrDefault = __webpack_exports__.valueOrDefault;
2085
2156
  var __webpack_exports__withInstall = __webpack_exports__.withInstall;
2086
2157
  var __webpack_exports__withInstallProps = __webpack_exports__.withInstallProps;
2087
- export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopover as BKPopover, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TimelineNodeTypeEnum as TimelineNodeTypeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getFullscreenRoot as getFullscreenRoot, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isFullScreenContainsElement as isFullScreenContainsElement, __webpack_exports__isFunction as isFunction, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__isPromise as isPromise, __webpack_exports__isString as isString, __webpack_exports__isSymbol as isSymbol, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };
2158
+ export { __webpack_exports__AlignEnum as AlignEnum, __webpack_exports__BKLAYERD_INDEX_EFAULT_VALUE as BKLAYERD_INDEX_EFAULT_VALUE, __webpack_exports__BKLAYERTYPE as BKLAYERTYPE, __webpack_exports__BKPopover as BKPopover, __webpack_exports__DialogTypeEnum as DialogTypeEnum, __webpack_exports__DirectionEnum as DirectionEnum, __webpack_exports__EMPTY_OBJ as EMPTY_OBJ, __webpack_exports__InputBehaviorEnum as InputBehaviorEnum, __webpack_exports__InputBehaviorType as InputBehaviorType, __webpack_exports__LineStyleEnum as LineStyleEnum, __webpack_exports__PlacementEnum as PlacementEnum, __webpack_exports__Placements as Placements, __webpack_exports__ProgressEnum as ProgressEnum, __webpack_exports__ProgressStrokeLineCapEnum as ProgressStrokeLineCapEnum, __webpack_exports__ProgressStrokeLineCapType as ProgressStrokeLineCapType, __webpack_exports__ProgressType as ProgressType, __webpack_exports__PropTypes as PropTypes, __webpack_exports__RenderDirectiveEnum as RenderDirectiveEnum, __webpack_exports__RenderType as RenderType, __webpack_exports__SelectedType as SelectedType, __webpack_exports__SelectedTypeEnum as SelectedTypeEnum, __webpack_exports__SizeEnum as SizeEnum, __webpack_exports__SwitcherThemeEnum as SwitcherThemeEnum, __webpack_exports__SwitcherThemeType as SwitcherThemeType, __webpack_exports__TagThemeEnum as TagThemeEnum, __webpack_exports__TagThemeType as TagThemeType, __webpack_exports__ThemeEnum as ThemeEnum, __webpack_exports__TimelineNodeTypeEnum as TimelineNodeTypeEnum, __webpack_exports__TriggerEnum as TriggerEnum, __webpack_exports__alignType as alignType, __webpack_exports__arrayEqual as arrayEqual, __webpack_exports__bkZIndexManager as bkZIndexManager, __webpack_exports__capitalize as capitalize, __webpack_exports__checkOverflow as checkOverflow, __webpack_exports__classes as classes, __webpack_exports__clone as clone, __webpack_exports__debounce as debounce, __webpack_exports__dialogTypeUnion as dialogTypeUnion, __webpack_exports__directionType as directionType, __webpack_exports__elementsEqual as elementsEqual, __webpack_exports__filterProperty as filterProperty, __webpack_exports__finiteOrDefault as finiteOrDefault, __webpack_exports__formItemKey as formItemKey, __webpack_exports__formKey as formKey, __webpack_exports__getFullscreenRoot as getFullscreenRoot, __webpack_exports__getPopContainerId as getPopContainerId, __webpack_exports__hasOverflowEllipsis as hasOverflowEllipsis, __webpack_exports__isArray as isArray, __webpack_exports__isElement as isElement, __webpack_exports__isEmpty as isEmpty, __webpack_exports__isEmptyObj as isEmptyObj, __webpack_exports__isFinite as isFinite, __webpack_exports__isFullScreenContainsElement as isFullScreenContainsElement, __webpack_exports__isFunction as isFunction, __webpack_exports__isNullOrUndef as isNullOrUndef, __webpack_exports__isObject as isObject, __webpack_exports__isPromise as isPromise, __webpack_exports__isString as isString, __webpack_exports__isSymbol as isSymbol, __webpack_exports__lineStyleType as lineStyleType, __webpack_exports__maybeShowTooltip as maybeShowTooltip, __webpack_exports__merge as merge, __webpack_exports__mergeIf as mergeIf, __webpack_exports__mergerFn as mergerFn, __webpack_exports__mergerIfFn as mergerIfFn, __webpack_exports__noop as noop, __webpack_exports__observerResize as observerResize, __webpack_exports__off as off, __webpack_exports__on as on, __webpack_exports__placementType as placementType, __webpack_exports__random as random, __webpack_exports__renderDirectiveType as renderDirectiveType, __webpack_exports__renderEmptyVNode as renderEmptyVNode, __webpack_exports__renderType as renderType, __webpack_exports__resolveClassName as resolveClassName, __webpack_exports__scrollTop as scrollTop, __webpack_exports__scrollbarWidth as scrollbarWidth, __webpack_exports__stringEnum as stringEnum, __webpack_exports__throttle as throttle, __webpack_exports__triggerType as triggerType, __webpack_exports__useForm as useForm, __webpack_exports__useFormItem as useFormItem, __webpack_exports__valueOrDefault as valueOrDefault, __webpack_exports__withInstall as withInstall, __webpack_exports__withInstallProps as withInstallProps };
@@ -92,9 +92,9 @@ declare const BkSteps: {
92
92
  steps: unknown[];
93
93
  direction: "horizontal" | "vertical";
94
94
  lineType: "dashed" | "solid";
95
+ status: "" | "error" | "loading";
95
96
  beforeChange: (...args: any[]) => any;
96
97
  controllable: boolean;
97
- status: "" | "error" | "loading";
98
98
  curStep: number;
99
99
  }, true, {}, {}, {
100
100
  P: {};
@@ -155,9 +155,9 @@ declare const BkSteps: {
155
155
  steps: unknown[];
156
156
  direction: "horizontal" | "vertical";
157
157
  lineType: "dashed" | "solid";
158
+ status: "" | "error" | "loading";
158
159
  beforeChange: (...args: any[]) => any;
159
160
  controllable: boolean;
160
- status: "" | "error" | "loading";
161
161
  curStep: number;
162
162
  }>;
163
163
  __isFragment?: never;
@@ -215,9 +215,9 @@ declare const BkSteps: {
215
215
  steps: unknown[];
216
216
  direction: "horizontal" | "vertical";
217
217
  lineType: "dashed" | "solid";
218
+ status: "" | "error" | "loading";
218
219
  beforeChange: (...args: any[]) => any;
219
220
  controllable: boolean;
220
- status: "" | "error" | "loading";
221
221
  curStep: number;
222
222
  }, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
223
223
  export default BkSteps;
@@ -154,9 +154,9 @@ declare const _default: import("vue").DefineComponent<{
154
154
  steps: unknown[];
155
155
  direction: "horizontal" | "vertical";
156
156
  lineType: "dashed" | "solid";
157
+ status: "" | "error" | "loading";
157
158
  beforeChange: (...args: any[]) => any;
158
159
  controllable: boolean;
159
- status: "" | "error" | "loading";
160
160
  curStep: number;
161
161
  }, {}>;
162
162
  export default _default;
@@ -4,7 +4,6 @@ import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../sh
4
4
  import * as __WEBPACK_EXTERNAL_MODULE_vue__ from "vue";
5
5
  import * as __WEBPACK_EXTERNAL_MODULE_vue_types_22de060a__ from "vue-types";
6
6
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__ from "lodash/isElement";
7
- import * as __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__ from "lodash/throttle";
8
7
  import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_config_provider_fe8577a3__ from "../config-provider";
9
8
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_debounce_3540babe__ from "lodash/debounce";
10
9
  import * as __WEBPACK_EXTERNAL_MODULE_lodash_get_9427f899__ from "lodash/get";
@@ -17321,7 +17320,7 @@ __webpack_require__.d(__webpack_exports__, {
17321
17320
  ;// CONCATENATED MODULE: external "../shared"
17322
17321
  var x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17323
17322
  var y = x => () => x
17324
- const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
17323
+ const shared_namespaceObject = x({ ["PropTypes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.PropTypes, ["RenderType"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.RenderType, ["classes"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.classes, ["hasOverflowEllipsis"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.hasOverflowEllipsis, ["isElement"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.isElement, ["throttle"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.throttle, ["withInstallProps"]: () => __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__.withInstallProps });
17325
17324
  ;// CONCATENATED MODULE: external "vue"
17326
17325
  var external_vue_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
17327
17326
  var external_vue_y = x => () => x
@@ -18086,10 +18085,6 @@ var CELL_EVENT_TYPES = defineProperty_defineProperty(defineProperty_defineProper
18086
18085
  var isElement_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
18087
18086
  var isElement_y = x => () => x
18088
18087
  const isElement_namespaceObject = isElement_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_isElement_e6b2a6ce__["default"] });
18089
- ;// CONCATENATED MODULE: external "lodash/throttle"
18090
- var throttle_x = y => { var x = {}; __webpack_require__.d(x, y); return x; }
18091
- var throttle_y = x => () => x
18092
- const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTERNAL_MODULE_lodash_throttle_a7b7506a__["default"] });
18093
18088
  ;// CONCATENATED MODULE: ../../packages/table/src/hooks/use-column-resize.tsx
18094
18089
 
18095
18090
  /*
@@ -18165,14 +18160,14 @@ const throttle_namespaceObject = throttle_x({ ["default"]: () => __WEBPACK_EXTER
18165
18160
  dragColumn = null;
18166
18161
  };
18167
18162
  var updateOffsetX = function updateOffsetX(e) {
18168
- return (0,throttle_namespaceObject["default"])(function () {
18163
+ return (0,shared_namespaceObject.throttle)(function () {
18169
18164
  var diff = e.clientX - startX;
18170
18165
  var resolveWidth = getColumnOrderWidth(dragColumn, ORDER_LIST) + diff;
18171
18166
  var minWidth = getColumnOrderWidth(dragColumn, [COLUMN_ATTRIBUTE.COL_MIN_WIDTH]);
18172
18167
  if (minWidth < resolveWidth) {
18173
18168
  dragOffsetX.value = e.clientX - startX + dragStartOffsetX;
18174
18169
  }
18175
- }, 60);
18170
+ });
18176
18171
  };
18177
18172
  var handleMouseMove = function handleMouseMove(e) {
18178
18173
  stopDefaultEvent(e);
@@ -19631,7 +19626,7 @@ var observerResize = function observerResize(root, callbackFn) {
19631
19626
  callbackFn();
19632
19627
  }
19633
19628
  };
19634
- var execFn = resizerWay === 'debounce' ? (0,debounce_namespaceObject["default"])(resolveCallbackFn, delay) : (0,throttle_namespaceObject["default"])(resolveCallbackFn, delay);
19629
+ var execFn = resizerWay === 'debounce' ? (0,debounce_namespaceObject["default"])(resolveCallbackFn, delay) : (0,shared_namespaceObject.throttle)(resolveCallbackFn);
19635
19630
  var callFn = function callFn() {
19636
19631
  return Reflect.apply(execFn, _this, []);
19637
19632
  };
@@ -20926,6 +20921,12 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20926
20921
  transform: "translate3d(".concat(translateX.value, "px, ").concat(translateY.value, "px, 0)")
20927
20922
  };
20928
20923
  });
20924
+ var fixedBottomLoadingStyle = (0,external_vue_namespaceObject.computed)(function () {
20925
+ return {
20926
+ transform: "translate3d(".concat(translateX.value, "px, ").concat(translateY.value, "px, 0)"),
20927
+ minHeight: "".concat(lineHeight.value, "px")
20928
+ };
20929
+ });
20929
20930
  (0,external_vue_namespaceObject.onMounted)(function () {
20930
20931
  setOffsetRight();
20931
20932
  });
@@ -20959,8 +20960,10 @@ function use_layout_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
20959
20960
  }, null), (0,external_vue_namespaceObject.createVNode)("div", {
20960
20961
  "style": fixedWrapperStyle.value,
20961
20962
  "class": fixedWrapperClass.value
20962
- }, [fixedRows === null || fixedRows === void 0 ? void 0 : fixedRows()]), (0,external_vue_namespaceObject.createVNode)("div", null, [(_ctx$slots$appendBott = (_ctx$slots2 = ctx.slots).appendBottom) === null || _ctx$slots$appendBott === void 0 ? void 0 : _ctx$slots$appendBott.call(_ctx$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
20963
- "style": fixedWrapperStyle.value,
20963
+ }, [fixedRows === null || fixedRows === void 0 ? void 0 : fixedRows()]), (0,external_vue_namespaceObject.createVNode)("div", {
20964
+ "class": fixedBottomRow
20965
+ }, [(_ctx$slots$appendBott = (_ctx$slots2 = ctx.slots).appendBottom) === null || _ctx$slots$appendBott === void 0 ? void 0 : _ctx$slots$appendBott.call(_ctx$slots2)]), (0,external_vue_namespaceObject.createVNode)("div", {
20966
+ "style": fixedBottomLoadingStyle.value,
20964
20967
  "class": fixedBottomRow
20965
20968
  }, [loadingRow === null || loadingRow === void 0 ? void 0 : loadingRow()])];
20966
20969
  }
@@ -1208,6 +1208,8 @@
1208
1208
  width: 100%;
1209
1209
  height: 100%;
1210
1210
  overflow: hidden;
1211
+ border-collapse: separate;
1212
+ border-spacing: 0;
1211
1213
  }
1212
1214
  .bk-table-flex {
1213
1215
  display: flex;
@@ -1360,18 +1362,6 @@
1360
1362
  position: sticky;
1361
1363
  z-index: 1;
1362
1364
  }
1363
- .bk-table .bk-table-head table th.column_fixed.column_fixed_left,
1364
- .bk-table .bk-table-body table th.column_fixed.column_fixed_left,
1365
- .bk-table .bk-table-head table td.column_fixed.column_fixed_left,
1366
- .bk-table .bk-table-body table td.column_fixed.column_fixed_left {
1367
- left: 0;
1368
- }
1369
- .bk-table .bk-table-head table th.column_fixed.column_fixed_right,
1370
- .bk-table .bk-table-body table th.column_fixed.column_fixed_right,
1371
- .bk-table .bk-table-head table td.column_fixed.column_fixed_right,
1372
- .bk-table .bk-table-body table td.column_fixed.column_fixed_right {
1373
- right: 0;
1374
- }
1375
1365
  .bk-table .bk-table-head table th.row_expend .expand-cell-ctx,
1376
1366
  .bk-table .bk-table-body table th.row_expend .expand-cell-ctx,
1377
1367
  .bk-table .bk-table-head table td.row_expend .expand-cell-ctx,
@@ -1428,6 +1418,16 @@
1428
1418
  content: '';
1429
1419
  transform: translateX(50%);
1430
1420
  }
1421
+ .bk-table .bk-table-head table thead th.column_fixed::after,
1422
+ .bk-table .bk-table-body table thead th.column_fixed::after {
1423
+ position: absolute;
1424
+ content: '';
1425
+ right: -2px;
1426
+ top: 0;
1427
+ bottom: 0;
1428
+ width: 2px;
1429
+ background-color: var(--table-head-bg-color);
1430
+ }
1431
1431
  .bk-table .bk-table-head table thead th .cell,
1432
1432
  .bk-table .bk-table-body table thead th .cell {
1433
1433
  display: flex;
@@ -1442,6 +1442,12 @@
1442
1442
  cursor: pointer;
1443
1443
  background: var(--table-row-active-bg-color);
1444
1444
  }
1445
+ .bk-table .bk-table-head table thead th.active.column_fixed::after,
1446
+ .bk-table .bk-table-body table thead th.active.column_fixed::after,
1447
+ .bk-table .bk-table-head table thead th:hover.column_fixed::after,
1448
+ .bk-table .bk-table-body table thead th:hover.column_fixed::after {
1449
+ background-color: var(--table-row-hover-bg-color);
1450
+ }
1445
1451
  .bk-table .bk-table-head table thead th.column_fixed,
1446
1452
  .bk-table .bk-table-body table thead th.column_fixed {
1447
1453
  transform: translateX(var(--scroll-left));
@@ -1449,9 +1455,9 @@
1449
1455
  .bk-table .bk-table-head table tbody tr td,
1450
1456
  .bk-table .bk-table-body table tbody tr td {
1451
1457
  background-color: #fff;
1452
- border-top: 1px solid transparent;
1453
- border-bottom: 1px solid transparent;
1454
- border-right: 1px solid transparent;
1458
+ border-top: 1px solid var(--table-bg-color);
1459
+ border-bottom: 1px solid var(--table-bg-color);
1460
+ border-right: 1px solid var(--table-bg-color);
1455
1461
  box-sizing: border-box;
1456
1462
  }
1457
1463
  .bk-table .bk-table-head table tbody tr td.empty-cell,
@@ -1470,10 +1476,24 @@
1470
1476
  text-align: center;
1471
1477
  cursor: move;
1472
1478
  }
1479
+ .bk-table .bk-table-head table tbody tr td.column_fixed::after,
1480
+ .bk-table .bk-table-body table tbody tr td.column_fixed::after {
1481
+ position: absolute;
1482
+ content: '';
1483
+ right: -2px;
1484
+ top: 0;
1485
+ bottom: 0;
1486
+ width: 2px;
1487
+ background-color: var(--table-bg-color);
1488
+ }
1473
1489
  .bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
1474
1490
  .bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
1475
1491
  background: var(--table-row-hover-bg-color);
1476
- border-right: var(--table-row-hover-bg-color);
1492
+ border-right-color: var(--table-row-hover-bg-color);
1493
+ }
1494
+ .bk-table .bk-table-head table tbody tr:hover.hover-highlight td.column_fixed::after,
1495
+ .bk-table .bk-table-body table tbody tr:hover.hover-highlight td.column_fixed::after {
1496
+ background-color: var(--table-row-hover-bg-color);
1477
1497
  }
1478
1498
  .bk-table .bk-table-head table tbody tr.--drag-start td,
1479
1499
  .bk-table .bk-table-body table tbody tr.--drag-start td {
@@ -1556,23 +1576,26 @@
1556
1576
  .bk-table.bordered-col th {
1557
1577
  border-right: 1px solid var(--table-border-color);
1558
1578
  }
1579
+ .bk-table.bordered-col th.column_fixed::after {
1580
+ border-left: solid 1px var(--table-border-color);
1581
+ }
1559
1582
  .bk-table.bordered-col th:last-child {
1560
1583
  border-right: none;
1561
1584
  }
1562
1585
  .bk-table.bordered-col .bk-table-body tbody tr td {
1563
1586
  border-right-color: var(--table-border-color);
1564
1587
  }
1565
- .bk-table.bordered-col .bk-table-body tbody tr td:last-child {
1566
- border-right-color: transparent;
1588
+ .bk-table.bordered-col .bk-table-body tbody tr td.column_fixed::after {
1589
+ border-left: solid 1px var(--table-border-color);
1567
1590
  }
1568
1591
  .bk-table th,
1569
1592
  .bk-table td {
1570
- border-right: 1px solid transparent;
1593
+ border-right: 1px solid var(--table-bg-color);
1571
1594
  }
1572
1595
  .bk-table.bordered-none th,
1573
1596
  .bk-table.bordered-none td {
1574
1597
  border-top: none;
1575
- border-right: 1px solid transparent;
1598
+ border-right: 1px solid var(--table-bg-color);
1576
1599
  border-bottom: none;
1577
1600
  border-left: none;
1578
1601
  }
@@ -1609,6 +1632,7 @@
1609
1632
  right: 0;
1610
1633
  bottom: 0;
1611
1634
  left: 0;
1635
+ text-align: center;
1612
1636
  }
1613
1637
  .bk-table colgroup col {
1614
1638
  background: var(--table-bg-color);
@@ -15,6 +15,8 @@
15
15
  width: 100%;
16
16
  height: 100%;
17
17
  overflow: hidden;
18
+ border-collapse: separate;
19
+ border-spacing: 0;
18
20
 
19
21
  &-flex {
20
22
  display: flex;
@@ -94,7 +96,6 @@
94
96
  height: 100%;
95
97
  padding-bottom: 20px;
96
98
  }
97
-
98
99
  }
99
100
 
100
101
  table {
@@ -158,7 +159,6 @@
158
159
  }
159
160
  }
160
161
 
161
-
162
162
  .expand-btn-action {
163
163
  display: flex;
164
164
  padding: 0 16px;
@@ -169,14 +169,6 @@
169
169
  &.column_fixed {
170
170
  position: sticky;
171
171
  z-index: 1;
172
-
173
- &.column_fixed_left {
174
- left: 0;
175
- }
176
-
177
- &.column_fixed_right {
178
- right: 0;
179
- }
180
172
  }
181
173
 
182
174
  &.row_expend {
@@ -236,6 +228,18 @@
236
228
  }
237
229
  }
238
230
 
231
+ &.column_fixed {
232
+ &::after {
233
+ position: absolute;
234
+ content: '';
235
+ right: -2px;
236
+ top: 0;
237
+ bottom: 0;
238
+ width: 2px;
239
+ background-color: @table-head-bg-color;
240
+ }
241
+ }
242
+
239
243
  .cell {
240
244
  display: flex;
241
245
  align-items: center;
@@ -247,6 +251,12 @@
247
251
  &:hover {
248
252
  cursor: pointer;
249
253
  background: @table-row-active-bg-color;
254
+
255
+ &.column_fixed {
256
+ &::after {
257
+ background-color: @table-row-hover-bg-color;
258
+ }
259
+ }
250
260
  }
251
261
 
252
262
  &.column_fixed {
@@ -259,9 +269,9 @@
259
269
  tr {
260
270
  td {
261
271
  background-color: #fff;
262
- border-top: 1px solid transparent;
263
- border-bottom: 1px solid transparent;
264
- border-right: 1px solid transparent;
272
+ border-top: 1px solid @table-bg-color;
273
+ border-bottom: 1px solid @table-bg-color;
274
+ border-right: 1px solid @table-bg-color;
265
275
 
266
276
  box-sizing: border-box;
267
277
 
@@ -280,6 +290,18 @@
280
290
  cursor: move;
281
291
  }
282
292
  }
293
+
294
+ &.column_fixed {
295
+ &::after {
296
+ position: absolute;
297
+ content: '';
298
+ right: -2px;
299
+ top: 0;
300
+ bottom: 0;
301
+ width: 2px;
302
+ background-color: @table-bg-color;
303
+ }
304
+ }
283
305
  }
284
306
 
285
307
  &:hover {
@@ -287,7 +309,13 @@
287
309
  td {
288
310
  &:not(.empty-cell) {
289
311
  background: @table-row-hover-bg-color;
290
- border-right: @table-row-hover-bg-color;
312
+ border-right-color: @table-row-hover-bg-color;
313
+ }
314
+
315
+ &.column_fixed {
316
+ &::after {
317
+ background-color: @table-row-hover-bg-color;
318
+ }
291
319
  }
292
320
  }
293
321
  }
@@ -295,7 +323,7 @@
295
323
 
296
324
  &.--drag-start {
297
325
  td {
298
- background: #fff!important;
326
+ background: #fff !important;
299
327
  }
300
328
  }
301
329
  }
@@ -385,7 +413,6 @@
385
413
  .@{bk-prefix}-table-footer {
386
414
  border-bottom: 1px solid @table-border-color;
387
415
  }
388
-
389
416
  }
390
417
 
391
418
  &.bordered-horizontal {
@@ -409,6 +436,11 @@
409
436
  th {
410
437
  border-right: 1px solid @table-border-color;
411
438
 
439
+ &.column_fixed {
440
+ &::after {
441
+ border-left: solid 1px @table-border-color;
442
+ }
443
+ }
412
444
  &:last-child {
413
445
  border-right: none;
414
446
  }
@@ -420,26 +452,27 @@
420
452
  td {
421
453
  border-right-color: @table-border-color;
422
454
 
423
- &:last-child {
424
- border-right-color: transparent;
455
+ &.column_fixed {
456
+ &::after {
457
+ border-left: solid 1px @table-border-color;
458
+ }
425
459
  }
426
460
  }
427
461
  }
428
462
  }
429
463
  }
430
-
431
464
  }
432
465
 
433
466
  th,
434
467
  td {
435
- border-right: 1px solid transparent;
468
+ border-right: 1px solid @table-bg-color;
436
469
  }
437
470
 
438
471
  &.bordered-none {
439
472
  th,
440
473
  td {
441
474
  border-top: none;
442
- border-right: 1px solid transparent;
475
+ border-right: 1px solid @table-bg-color;
443
476
  border-bottom: none;
444
477
  border-left: none;
445
478
  }
@@ -490,6 +523,7 @@
490
523
  right: 0;
491
524
  bottom: 0;
492
525
  left: 0;
526
+ text-align: center;
493
527
  }
494
528
  colgroup {
495
529
  col {
@@ -511,4 +545,4 @@
511
545
  .stripe-row {
512
546
  background: #fafbfd;
513
547
  }
514
- }
548
+ }