bkui-vue 2.0.1-beta.15.table.1 → 2.0.1-beta.15.table.10
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 +53 -53
- package/dist/index.esm.js +13000 -12896
- package/dist/index.umd.js +39 -39
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/scrollbar/index.js +36 -13
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/table/components/table-column.d.ts +1 -0
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +3 -1
- package/lib/table/hooks/use-column-template.d.ts +2 -2
- package/lib/table/hooks/use-columns.d.ts +3 -2
- package/lib/table/hooks/use-layout.d.ts +7 -5
- package/lib/table/hooks/use-settings.d.ts +1 -1
- package/lib/table/hooks/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +16 -0
- package/lib/table/index.js +810 -609
- package/lib/table/props.d.ts +13 -1
- package/lib/table/table.css +35 -47
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +40 -60
- package/lib/table/table.variable.css +35 -47
- package/lib/table/utils.d.ts +7 -5
- package/lib/table-column/index.d.ts +3 -0
- package/lib/table-column/index.js +20 -9
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +1 -1
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/package.json +1 -1
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.15.table.
|
7
|
+
export const version = "2.0.1-beta.15.table.10";
|
8
8
|
window.__bkui_vue_version__ = version;
|
package/lib/scrollbar/index.js
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
import "../styles/reset.css";
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE_bkui_vue_lib_shared_edbdfb03__ from "../shared";
|
2
3
|
/******/ var __webpack_modules__ = ({
|
3
4
|
|
4
5
|
/***/ 6635:
|
@@ -17491,8 +17492,10 @@ function _nonIterableRest() {
|
|
17491
17492
|
function _slicedToArray(arr, i) {
|
17492
17493
|
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest();
|
17493
17494
|
}
|
17494
|
-
|
17495
|
-
var
|
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 });
|
17496
17499
|
;// CONCATENATED MODULE: ../../packages/scrollbar/src/scrollbar-core/can-use-dom.ts
|
17497
17500
|
/*
|
17498
17501
|
* Tencent is pleased to support the open source community by making
|
@@ -17627,6 +17630,7 @@ function classNamesToQuery(classNames) {
|
|
17627
17630
|
var getDeltaMode = function getDeltaMode(mode) {
|
17628
17631
|
return DELTA_MODE[mode] || DELTA_MODE[0];
|
17629
17632
|
};
|
17633
|
+
var targetDom = null;
|
17630
17634
|
var normalizeDelta = function normalizeDelta(evt) {
|
17631
17635
|
if ('deltaX' in evt) {
|
17632
17636
|
var mode = getDeltaMode(evt.deltaMode);
|
@@ -17652,13 +17656,31 @@ function classNamesToQuery(classNames) {
|
|
17652
17656
|
};
|
17653
17657
|
var eventName = 'onwheel' in window || document.implementation.hasFeature('Events.wheel', '3.0') ? 'wheel' : 'mousewheel';
|
17654
17658
|
var resolveEventResponse = function resolveEventResponse(e) {
|
17655
|
-
|
17659
|
+
var _targetDom;
|
17660
|
+
var result = normalizeDelta(e);
|
17661
|
+
var _ref = (_targetDom = targetDom) !== null && _targetDom !== void 0 ? _targetDom : {},
|
17662
|
+
_ref$scrollTop = _ref.scrollTop,
|
17663
|
+
scrollTop = _ref$scrollTop === void 0 ? 0 : _ref$scrollTop,
|
17664
|
+
_ref$offsetHeight = _ref.offsetHeight,
|
17665
|
+
offsetHeight = _ref$offsetHeight === void 0 ? 0 : _ref$offsetHeight,
|
17666
|
+
_ref$scrollHeight = _ref.scrollHeight,
|
17667
|
+
scrollHeight = _ref$scrollHeight === void 0 ? 0 : _ref$scrollHeight;
|
17668
|
+
var isWheelDown = result.y > 0 && scrollTop + offsetHeight + 2 < scrollHeight;
|
17669
|
+
var isWheelUp = result.y < 0 && scrollTop > 0;
|
17670
|
+
if (isWheelUp || isWheelDown) {
|
17671
|
+
e.stopImmediatePropagation();
|
17672
|
+
e.stopPropagation();
|
17673
|
+
e.preventDefault();
|
17674
|
+
}
|
17675
|
+
fn(result);
|
17656
17676
|
};
|
17657
17677
|
var addWheelEvent = function addWheelEvent(target) {
|
17678
|
+
targetDom = target;
|
17658
17679
|
target.addEventListener(eventName, resolveEventResponse);
|
17659
17680
|
};
|
17660
17681
|
var removeWheelEvent = function removeWheelEvent(target) {
|
17661
17682
|
target.removeEventListener(eventName, resolveEventResponse);
|
17683
|
+
targetDom = null;
|
17662
17684
|
};
|
17663
17685
|
return {
|
17664
17686
|
addWheelEvent: addWheelEvent,
|
@@ -17712,6 +17734,8 @@ function scrollbarWidth() {
|
|
17712
17734
|
}
|
17713
17735
|
return cachedScrollbarWidth;
|
17714
17736
|
}
|
17737
|
+
// EXTERNAL MODULE: ../../node_modules/lodash/lodash.js
|
17738
|
+
var lodash = __webpack_require__(6635);
|
17715
17739
|
;// CONCATENATED MODULE: ../../packages/scrollbar/src/scrollbar-core/index.ts
|
17716
17740
|
|
17717
17741
|
|
@@ -17751,6 +17775,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
17751
17775
|
|
17752
17776
|
|
17753
17777
|
|
17778
|
+
|
17754
17779
|
var scrollbar_core_getElementWindow = getElementWindow,
|
17755
17780
|
scrollbar_core_getElementDocument = getElementDocument,
|
17756
17781
|
scrollbar_core_addClasses = addClasses,
|
@@ -18044,7 +18069,7 @@ var BkScrollbarCore = /*#__PURE__*/function () {
|
|
18044
18069
|
}
|
18045
18070
|
_this.mouseWeelTimer = setTimeout(function () {
|
18046
18071
|
_this.hideScrollbar('y');
|
18047
|
-
_this.
|
18072
|
+
_this.hideScrollbar('x');
|
18048
18073
|
}, 200);
|
18049
18074
|
}
|
18050
18075
|
});
|
@@ -18132,13 +18157,11 @@ var BkScrollbarCore = /*#__PURE__*/function () {
|
|
18132
18157
|
if (_typeof(this.el) !== 'object' || !this.el.nodeName) {
|
18133
18158
|
throw new Error("Argument passed to SimpleBar must be an HTML element instead of ".concat(this.el));
|
18134
18159
|
}
|
18135
|
-
this.onMouseMove = (0,
|
18136
|
-
this.onWindowResize = (0,lodash.debounce)(this.mOnWindowResize, 64
|
18137
|
-
|
18138
|
-
|
18139
|
-
this.
|
18140
|
-
this.onMouseEntered = (0,lodash.debounce)(this.mOnMouseEntered, this.stopScrollDelay);
|
18141
|
-
this.mouseWheelInstance = mouse_wheel(this.mOnMouseWheel);
|
18160
|
+
this.onMouseMove = (0,shared_namespaceObject.throttle)(this.mOnMouseMove);
|
18161
|
+
this.onWindowResize = (0,lodash.debounce)(this.mOnWindowResize, 64);
|
18162
|
+
this.onStopScrolling = (0,lodash.debounce)(this.mOnStopScrolling, 64);
|
18163
|
+
this.onMouseEntered = (0,lodash.debounce)(this.mOnMouseEntered, 64);
|
18164
|
+
this.mouseWheelInstance = mouse_wheel((0,shared_namespaceObject.throttle)(this.mOnMouseWheel));
|
18142
18165
|
this.init();
|
18143
18166
|
}
|
18144
18167
|
_createClass(BkScrollbarCore, [{
|
@@ -18253,8 +18276,8 @@ var BkScrollbarCore = /*#__PURE__*/function () {
|
|
18253
18276
|
var wrapperOffsetHeight = this.wrapperEl.offsetHeight;
|
18254
18277
|
var wrapperScrollHeight = this.getWrapperElScrollSize('scrollHeight'); // this.wrapperEl.scrollHeight;
|
18255
18278
|
var wrapperScrollWidth = this.getWrapperElScrollSize('scrollWidth'); // this.wrapperEl.scrollWidth;
|
18256
|
-
this.axis.x.isOverflowing = wrapperOffsetWidth !== 0 && wrapperScrollWidth >
|
18257
|
-
this.axis.y.isOverflowing = wrapperScrollHeight >
|
18279
|
+
this.axis.x.isOverflowing = wrapperOffsetWidth !== 0 && wrapperScrollWidth - wrapperOffsetWidth > 2;
|
18280
|
+
this.axis.y.isOverflowing = wrapperScrollHeight - wrapperOffsetHeight > 2;
|
18258
18281
|
this.axis.x.forceVisible = this.options.forceVisible === 'x' || this.options.forceVisible === true;
|
18259
18282
|
this.axis.y.forceVisible = this.options.forceVisible === 'y' || this.options.forceVisible === true;
|
18260
18283
|
// Set isOverflowing to false if scrollbar is not necessary (content is shorter than offset)
|
@@ -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) |
|
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>;
|
package/lib/shared/index.d.ts
CHANGED
@@ -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;
|
package/lib/shared/index.js
CHANGED
@@ -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 };
|
package/lib/steps/index.d.ts
CHANGED
@@ -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;
|
package/lib/steps/steps.d.ts
CHANGED
@@ -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;
|
@@ -113,6 +113,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
113
113
|
showOverflowTooltip?: boolean | {
|
114
114
|
content: string | ((col: import("../props").Column, row: any) => string);
|
115
115
|
disabled?: boolean | ((col: import("../props").Column, row: any) => boolean);
|
116
|
+
allowHtml?: boolean;
|
116
117
|
watchCellResize?: boolean;
|
117
118
|
mode?: "auto" | "static";
|
118
119
|
popoverOption?: any;
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { Column, TablePropTypes } from '../props';
|
2
|
+
import { SetupContext } from 'vue';
|
3
|
+
import { UseMultiShiftKey } from './use-shift-key';
|
4
|
+
import { UseRows } from './use-rows';
|
5
|
+
import { UseColumns } from './use-columns';
|
6
|
+
type CellRenderArgsType = {
|
7
|
+
props: TablePropTypes;
|
8
|
+
rows: UseRows;
|
9
|
+
ctx: SetupContext;
|
10
|
+
columns: UseColumns;
|
11
|
+
row: any;
|
12
|
+
index: number;
|
13
|
+
column: Column;
|
14
|
+
isChild: boolean;
|
15
|
+
multiShiftKey: UseMultiShiftKey;
|
16
|
+
};
|
17
|
+
declare const _default: ({ props, rows, ctx, columns, row, index, column, isChild, multiShiftKey, }: CellRenderArgsType) => {
|
18
|
+
renderCell: () => any;
|
19
|
+
};
|
20
|
+
export default _default;
|
@@ -1,5 +1,7 @@
|
|
1
1
|
import { UseColumns } from './use-columns';
|
2
|
-
declare const _default: (columns: UseColumns
|
2
|
+
declare const _default: (columns: UseColumns, { afterResize }: {
|
3
|
+
afterResize: any;
|
4
|
+
}) => {
|
3
5
|
dragOffsetX: import("vue").Ref<number>;
|
4
6
|
};
|
5
7
|
export default _default;
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import {
|
1
|
+
import { VNode } from 'vue';
|
2
2
|
declare const _default: () => {
|
3
|
-
resolveColumns: (
|
3
|
+
resolveColumns: (children: VNode[]) => any[];
|
4
4
|
setNodeInstanceId: (column: any, uniqueId: string) => void;
|
5
5
|
};
|
6
6
|
export default _default;
|
@@ -3,10 +3,9 @@ import { Column, TablePropTypes } from '../props';
|
|
3
3
|
declare const useColumns: (props: TablePropTypes) => {
|
4
4
|
needColSpan: import("vue").ComputedRef<boolean>;
|
5
5
|
needRowSpan: import("vue").ComputedRef<boolean>;
|
6
|
-
headHeight: import("vue").ComputedRef<number>;
|
7
6
|
tableColumnSchema: WeakMap<object, any> & Omit<WeakMap<object, any>, keyof WeakMap<any, any>>;
|
8
7
|
tableColumnList: any[];
|
9
|
-
visibleColumns:
|
8
|
+
visibleColumns: Column[];
|
10
9
|
debounceUpdateColumns: import("lodash").DebouncedFunc<(columns: any) => void>;
|
11
10
|
sortColumns: any[];
|
12
11
|
filterColumns: any[];
|
@@ -32,6 +31,7 @@ declare const useColumns: (props: TablePropTypes) => {
|
|
32
31
|
getColumnRect: (column: Column) => any;
|
33
32
|
getColumnCustomClass: (column: any, row?: any) => any;
|
34
33
|
getColumnRefAttribute: (col: Column | IEmptyObject, attributeName: string) => any;
|
34
|
+
getColumnCalcWidth: (column: Column) => any;
|
35
35
|
resolveEventListener: (col: Column) => any;
|
36
36
|
setColumnIsHidden: (column: Column, value?: boolean) => void;
|
37
37
|
setColumnResizeWidth: (column: Column, value: number) => void;
|
@@ -48,6 +48,7 @@ declare const useColumns: (props: TablePropTypes) => {
|
|
48
48
|
height?: number;
|
49
49
|
}) => void;
|
50
50
|
setVisibleColumns: () => void;
|
51
|
+
resolveColsCalcWidth: (width: number) => void;
|
51
52
|
};
|
52
53
|
export type UseColumns = ReturnType<typeof useColumns>;
|
53
54
|
export default useColumns;
|
@@ -2,18 +2,20 @@ import { Ref } from 'vue';
|
|
2
2
|
import { TablePropTypes } from '../props';
|
3
3
|
declare const _default: (props: TablePropTypes, ctx: any) => {
|
4
4
|
renderContainer: (childrend: any) => JSX.Element;
|
5
|
-
renderHeader: (childrend?: any, settings?: any) => JSX.Element;
|
6
|
-
renderBody: (list: any, childrend?: any, fixedRows?: any
|
5
|
+
renderHeader: (childrend?: any, settings?: any, fixedRows?: any) => JSX.Element;
|
6
|
+
renderBody: (list: any, childrend?: any, fixedRows?: any) => JSX.Element;
|
7
7
|
renderFooter: (childrend?: any) => JSX.Element;
|
8
|
-
|
8
|
+
renderFixedBottom: () => JSX.Element;
|
9
|
+
setBodyHeight: (height: number) => void;
|
9
10
|
setFootHeight: (height: number) => void;
|
10
11
|
setTranslateX: (val: number) => void;
|
11
12
|
setDragOffsetX: (val: number) => void;
|
12
13
|
setFixedColumns: (values: any[]) => void;
|
13
14
|
setOffsetRight: () => void;
|
14
15
|
setLineHeight: (val: number) => void;
|
15
|
-
|
16
|
-
|
16
|
+
initRootStyleVars: () => void;
|
17
|
+
refRoot: Ref<HTMLElement>;
|
18
|
+
refHead: Ref<HTMLElement>;
|
17
19
|
refBody: Ref<any>;
|
18
20
|
refFooter: Ref<any>;
|
19
21
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { SetupContext } from 'vue';
|
2
2
|
import { TablePropTypes } from '../props';
|
3
3
|
import { UseColumns } from './use-columns';
|
4
|
-
declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns) => {
|
4
|
+
declare const useSettings: (props: TablePropTypes, ctx: SetupContext, columns: UseColumns, afterSetting: any) => {
|
5
5
|
options: {
|
6
6
|
fields: any[];
|
7
7
|
checked: any[];
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { TablePropTypes } from '../props';
|
2
|
-
declare const
|
2
|
+
declare const multiShiftKey: (props: TablePropTypes) => {
|
3
3
|
isShiftKeyDown: import("vue").Ref<boolean>;
|
4
4
|
setStore: (row: any, index: number) => boolean;
|
5
5
|
getStore: () => {
|
@@ -9,5 +9,7 @@ declare const _default: (props: TablePropTypes) => {
|
|
9
9
|
clearStore: () => void;
|
10
10
|
setStoreStart: (row?: any, index?: any) => void;
|
11
11
|
clearStoreStart: () => void;
|
12
|
+
removeMultiCheckedEvents: () => void;
|
12
13
|
};
|
13
|
-
export
|
14
|
+
export type UseMultiShiftKey = ReturnType<typeof multiShiftKey>;
|
15
|
+
export default multiShiftKey;
|
package/lib/table/index.d.ts
CHANGED
@@ -172,6 +172,9 @@ declare const BkTable: {
|
|
172
172
|
} & {
|
173
173
|
default: boolean;
|
174
174
|
};
|
175
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
176
|
+
default: () => import("./props").FixedBottomOption;
|
177
|
+
};
|
175
178
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<ExtractPropTypes<{
|
176
179
|
data: import("vue-types").VueTypeDef<any[]> & {
|
177
180
|
default: () => any[];
|
@@ -340,6 +343,9 @@ declare const BkTable: {
|
|
340
343
|
} & {
|
341
344
|
default: boolean;
|
342
345
|
};
|
346
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
347
|
+
default: () => import("./props").FixedBottomOption;
|
348
|
+
};
|
343
349
|
}>>, {
|
344
350
|
data: any[];
|
345
351
|
thead: import("./props").Thead;
|
@@ -385,6 +391,7 @@ declare const BkTable: {
|
|
385
391
|
isFlex: boolean;
|
386
392
|
rowDraggable: any;
|
387
393
|
shiftMultiChecked: boolean;
|
394
|
+
fixedBottom: import("./props").FixedBottomOption;
|
388
395
|
}, true, {}, {}, {
|
389
396
|
P: {};
|
390
397
|
B: {};
|
@@ -560,6 +567,9 @@ declare const BkTable: {
|
|
560
567
|
} & {
|
561
568
|
default: boolean;
|
562
569
|
};
|
570
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
571
|
+
default: () => import("./props").FixedBottomOption;
|
572
|
+
};
|
563
573
|
}>>, () => JSX.Element, {}, {}, {}, {
|
564
574
|
data: any[];
|
565
575
|
thead: import("./props").Thead;
|
@@ -605,6 +615,7 @@ declare const BkTable: {
|
|
605
615
|
isFlex: boolean;
|
606
616
|
rowDraggable: any;
|
607
617
|
shiftMultiChecked: boolean;
|
618
|
+
fixedBottom: import("./props").FixedBottomOption;
|
608
619
|
}>;
|
609
620
|
__isFragment?: never;
|
610
621
|
__isTeleport?: never;
|
@@ -777,6 +788,9 @@ declare const BkTable: {
|
|
777
788
|
} & {
|
778
789
|
default: boolean;
|
779
790
|
};
|
791
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
792
|
+
default: () => import("./props").FixedBottomOption;
|
793
|
+
};
|
780
794
|
}>>, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, {
|
781
795
|
data: any[];
|
782
796
|
thead: import("./props").Thead;
|
@@ -822,6 +836,7 @@ declare const BkTable: {
|
|
822
836
|
isFlex: boolean;
|
823
837
|
rowDraggable: any;
|
824
838
|
shiftMultiChecked: boolean;
|
839
|
+
fixedBottom: import("./props").FixedBottomOption;
|
825
840
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]> & Readonly<{
|
826
841
|
Column: import("vue").DefineComponent<{
|
827
842
|
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
@@ -896,6 +911,7 @@ declare const BkTable: {
|
|
896
911
|
showOverflowTooltip?: boolean | {
|
897
912
|
content: string | ((col: import("./props").Column, row: any) => string);
|
898
913
|
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
914
|
+
allowHtml?: boolean;
|
899
915
|
watchCellResize?: boolean;
|
900
916
|
mode?: "auto" | "static";
|
901
917
|
popoverOption?: any;
|