bkui-vue 2.0.1-beta.15.table.1 → 2.0.1-beta.15.table.11
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 +40 -40
- package/dist/index.esm.js +13786 -13670
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +9 -1
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +34 -13
- package/lib/dialog/dialog.d.ts +7 -2
- package/lib/dialog/index.d.ts +15 -4
- package/lib/dialog/props.d.ts +3 -1
- package/lib/index.js +1 -1
- package/lib/modal/index.d.ts +18 -5
- package/lib/modal/index.js +7 -1
- package/lib/modal/modal.d.ts +7 -2
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +18 -7
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/scrollbar/index.js +36 -13
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/select/index.d.ts +24 -6
- package/lib/select/index.js +68 -56
- package/lib/select/select.d.ts +10 -2
- 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/sideslider/index.d.ts +15 -4
- package/lib/sideslider/sideslider.d.ts +7 -2
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- 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 -3
- 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 +18 -44
- package/lib/table/index.js +844 -595
- 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 +9 -132
- package/lib/table-column/index.js +17298 -25
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +3 -4
- 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/select/index.js
CHANGED
@@ -2609,7 +2609,8 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2609
2609
|
loading: shared_namespaceObject.PropTypes.bool.def(false),
|
2610
2610
|
filterable: shared_namespaceObject.PropTypes.bool.def(true),
|
2611
2611
|
remoteMethod: shared_namespaceObject.PropTypes.func,
|
2612
|
-
scrollHeight: shared_namespaceObject.PropTypes.number.def(
|
2612
|
+
scrollHeight: shared_namespaceObject.PropTypes.number.def(204),
|
2613
|
+
minHeight: shared_namespaceObject.PropTypes.number,
|
2613
2614
|
showAll: shared_namespaceObject.PropTypes.bool.def(false),
|
2614
2615
|
allOptionId: shared_namespaceObject.PropTypes.oneOfType([shared_namespaceObject.PropTypes.number, shared_namespaceObject.PropTypes.string]),
|
2615
2616
|
showSelectAll: shared_namespaceObject.PropTypes.bool.def(false),
|
@@ -2730,7 +2731,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2730
2731
|
var contentRef = (0,external_vue_namespaceObject.ref)();
|
2731
2732
|
var searchRef = (0,external_vue_namespaceObject.ref)();
|
2732
2733
|
var selectTagInputRef = (0,external_vue_namespaceObject.ref)();
|
2733
|
-
var virtualRenderRef = (0,external_vue_namespaceObject.ref)();
|
2734
2734
|
var popoverRef = (0,external_vue_namespaceObject.ref)();
|
2735
2735
|
var optionsMap = (0,external_vue_namespaceObject.ref)(new Map());
|
2736
2736
|
var options = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -2843,6 +2843,16 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2843
2843
|
var virtualHeight = (0,external_vue_namespaceObject.computed)(function () {
|
2844
2844
|
return scrollHeight.value - 12 - (isShowSelectAll.value ? 32 : 0);
|
2845
2845
|
});
|
2846
|
+
var virtualLineHeight = (0,external_vue_namespaceObject.ref)(32);
|
2847
|
+
// 是否启用虚拟滚动(如果配置了启用,但是数据小于滚动高度则不开启)
|
2848
|
+
var isEnableVirtualRender = (0,external_vue_namespaceObject.computed)(function () {
|
2849
|
+
if (enableVirtualRender.value) return virtualList.value.length * virtualLineHeight.value > virtualHeight.value;
|
2850
|
+
return false;
|
2851
|
+
});
|
2852
|
+
// 预加载滚动数据
|
2853
|
+
var preloadItemCount = (0,external_vue_namespaceObject.computed)(function () {
|
2854
|
+
return Math.ceil(virtualHeight.value / virtualLineHeight.value);
|
2855
|
+
});
|
2846
2856
|
// 当前空状态时显示文案
|
2847
2857
|
var curContentText = (0,external_vue_namespaceObject.computed)(function () {
|
2848
2858
|
if (searchLoading.value) {
|
@@ -2927,6 +2937,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
2927
2937
|
// 滚动到当前选中的options中
|
2928
2938
|
var scrollActiveOptionIntoView = function scrollActiveOptionIntoView() {
|
2929
2939
|
var _contentRef$value, _contentRef$value$que, _optionsDom$;
|
2940
|
+
if (isEnableVirtualRender.value) return;
|
2930
2941
|
var optionsDom = (_contentRef$value = contentRef.value) === null || _contentRef$value === void 0 || (_contentRef$value$que = _contentRef$value.querySelectorAll) === null || _contentRef$value$que === void 0 ? void 0 : _contentRef$value$que.call(_contentRef$value, '.is-selected');
|
2931
2942
|
optionsDom === null || optionsDom === void 0 || (_optionsDom$ = optionsDom[0]) === null || _optionsDom$ === void 0 || _optionsDom$.scrollIntoView({
|
2932
2943
|
block: 'center'
|
@@ -3246,7 +3257,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3246
3257
|
};
|
3247
3258
|
// 处理键盘事件
|
3248
3259
|
var handleDocumentKeydown = function handleDocumentKeydown(e) {
|
3249
|
-
if (!isPopoverShow.value ||
|
3260
|
+
if (!isPopoverShow.value || isEnableVirtualRender.value) return;
|
3250
3261
|
var availableOptions = options.value.filter(function (option) {
|
3251
3262
|
return !option.disabled && option.visible;
|
3252
3263
|
});
|
@@ -3304,13 +3315,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3304
3315
|
hidePopover();
|
3305
3316
|
handleBlur();
|
3306
3317
|
};
|
3307
|
-
var handlePopoverShow = function handlePopoverShow() {
|
3308
|
-
setTimeout(function () {
|
3309
|
-
var _virtualRenderRef$val, _virtualRenderRef$val2;
|
3310
|
-
// 虚拟滚动首次未更新问题
|
3311
|
-
enableVirtualRender.value && ((_virtualRenderRef$val = virtualRenderRef.value) === null || _virtualRenderRef$val === void 0 || (_virtualRenderRef$val2 = _virtualRenderRef$val.reset) === null || _virtualRenderRef$val2 === void 0 ? void 0 : _virtualRenderRef$val2.call(_virtualRenderRef$val));
|
3312
|
-
});
|
3313
|
-
};
|
3314
3318
|
(0,external_vue_namespaceObject.provide)(selectKey, (0,external_vue_namespaceObject.reactive)({
|
3315
3319
|
multiple: multiple,
|
3316
3320
|
selected: selected,
|
@@ -3348,7 +3352,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3348
3352
|
contentRef: contentRef,
|
3349
3353
|
searchRef: searchRef,
|
3350
3354
|
selectTagInputRef: selectTagInputRef,
|
3351
|
-
virtualRenderRef: virtualRenderRef,
|
3352
3355
|
popoverRef: popoverRef,
|
3353
3356
|
searchLoading: searchLoading,
|
3354
3357
|
isOptionsEmpty: isOptionsEmpty,
|
@@ -3385,13 +3388,15 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3385
3388
|
handleDeleteTag: handleDeleteTag,
|
3386
3389
|
handleInputChange: handleInputChange,
|
3387
3390
|
handleSelectedAllOptionMouseEnter: handleSelectedAllOptionMouseEnter,
|
3388
|
-
handlePopoverShow: handlePopoverShow,
|
3389
3391
|
localLoadingText: localLoadingText,
|
3390
3392
|
localPlaceholder: localPlaceholder,
|
3391
3393
|
localSearchPlaceholder: localSearchPlaceholder,
|
3392
3394
|
localSelectAllText: localSelectAllText,
|
3393
3395
|
resolveClassName: resolveClassName,
|
3394
|
-
handleCreateCustomOption: handleCreateCustomOption
|
3396
|
+
handleCreateCustomOption: handleCreateCustomOption,
|
3397
|
+
virtualLineHeight: virtualLineHeight,
|
3398
|
+
isEnableVirtualRender: isEnableVirtualRender,
|
3399
|
+
preloadItemCount: preloadItemCount
|
3395
3400
|
};
|
3396
3401
|
},
|
3397
3402
|
render: function render() {
|
@@ -3457,6 +3462,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3457
3462
|
"class": "select-all-icon"
|
3458
3463
|
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.t.all])])]);
|
3459
3464
|
};
|
3465
|
+
// 默认trigger输入框渲染
|
3460
3466
|
var renderTriggerInput = function renderTriggerInput() {
|
3461
3467
|
var _this$$slots5;
|
3462
3468
|
if (_this.multipleMode === 'tag') {
|
@@ -3516,6 +3522,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3516
3522
|
}
|
3517
3523
|
}));
|
3518
3524
|
};
|
3525
|
+
// 渲染trigger
|
3519
3526
|
var renderSelectTrigger = function renderSelectTrigger() {
|
3520
3527
|
var _this$$slots7, _this$$slots7$trigger;
|
3521
3528
|
return (0,external_vue_namespaceObject.createVNode)("div", {
|
@@ -3531,47 +3538,13 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3531
3538
|
selected: _this.selected
|
3532
3539
|
})) || renderTriggerInput()]);
|
3533
3540
|
};
|
3534
|
-
|
3535
|
-
|
3536
|
-
return (0,external_vue_namespaceObject.createVNode)("
|
3537
|
-
"ref": "contentRef",
|
3538
|
-
"class": _this.resolveClassName('select-content-wrapper')
|
3539
|
-
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3540
|
-
"class": _this.resolveClassName('select-search-wrapper')
|
3541
|
-
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3542
|
-
"width": 16,
|
3543
|
-
"height": 16,
|
3544
|
-
"class": "icon-search"
|
3545
|
-
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
3546
|
-
"ref": "searchRef",
|
3547
|
-
"class": _this.resolveClassName('select-search-input'),
|
3548
|
-
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3549
|
-
return _this.searchValue = $event;
|
3550
|
-
},
|
3551
|
-
"placeholder": _this.localSearchPlaceholder
|
3552
|
-
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3553
|
-
"class": _this.resolveClassName('select-empty')
|
3554
|
-
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3555
|
-
"class": "mr5",
|
3556
|
-
"loading": true,
|
3557
|
-
"mode": "spin",
|
3558
|
-
"size": "mini",
|
3559
|
-
"theme": "primary"
|
3560
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3561
|
-
"class": _this.resolveClassName('select-content')
|
3562
|
-
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3563
|
-
"style": {
|
3564
|
-
maxHeight: "".concat(_this.scrollHeight, "px")
|
3565
|
-
},
|
3566
|
-
"class": _this.enableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
3567
|
-
"onScroll": _this.handleScroll
|
3568
|
-
}, [(0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("ul", {
|
3569
|
-
"class": _this.resolveClassName('select-options')
|
3570
|
-
}, [renderSelectAll(), _this.enableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
3571
|
-
"ref": "virtualRenderRef",
|
3541
|
+
// 渲染列表模式
|
3542
|
+
var renderList = function renderList() {
|
3543
|
+
return _this.isEnableVirtualRender ? (0,external_vue_namespaceObject.createVNode)(virtual_render_namespaceObject["default"], {
|
3572
3544
|
"height": _this.virtualHeight,
|
3573
|
-
"lineHeight":
|
3574
|
-
"list": _this.virtualList
|
3545
|
+
"lineHeight": _this.virtualLineHeight,
|
3546
|
+
"list": _this.virtualList,
|
3547
|
+
"preloadItemCount": _this.preloadItemCount
|
3575
3548
|
}, {
|
3576
3549
|
"default": function _default(_ref3) {
|
3577
3550
|
var _this$$slots8, _this$$slots9;
|
@@ -3605,7 +3578,47 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3605
3578
|
});
|
3606
3579
|
}
|
3607
3580
|
} : null);
|
3608
|
-
})
|
3581
|
+
});
|
3582
|
+
};
|
3583
|
+
// 渲染内容
|
3584
|
+
var renderSelectContent = function renderSelectContent() {
|
3585
|
+
var _this$$slots12, _this$$slots12$defaul, _this$$slots13, _this$$slots14;
|
3586
|
+
return (0,external_vue_namespaceObject.createVNode)("div", {
|
3587
|
+
"ref": "contentRef",
|
3588
|
+
"class": _this.resolveClassName('select-content-wrapper')
|
3589
|
+
}, [renderAll(), _this.filterable && !_this.inputSearch && (0,external_vue_namespaceObject.createVNode)("div", {
|
3590
|
+
"class": _this.resolveClassName('select-search-wrapper')
|
3591
|
+
}, [(0,external_vue_namespaceObject.createVNode)(icon_namespaceObject.Search, {
|
3592
|
+
"width": 16,
|
3593
|
+
"height": 16,
|
3594
|
+
"class": "icon-search"
|
3595
|
+
}, null), (0,external_vue_namespaceObject.withDirectives)((0,external_vue_namespaceObject.createVNode)("input", {
|
3596
|
+
"ref": "searchRef",
|
3597
|
+
"class": _this.resolveClassName('select-search-input'),
|
3598
|
+
"onUpdate:modelValue": function onUpdateModelValue($event) {
|
3599
|
+
return _this.searchValue = $event;
|
3600
|
+
},
|
3601
|
+
"placeholder": _this.localSearchPlaceholder
|
3602
|
+
}, null), [[external_vue_namespaceObject.vModelText, _this.searchValue]])]), !_this.isShowSelectContent && (0,external_vue_namespaceObject.createVNode)("div", {
|
3603
|
+
"class": _this.resolveClassName('select-empty')
|
3604
|
+
}, [_this.searchLoading && (0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3605
|
+
"class": "mr5",
|
3606
|
+
"loading": true,
|
3607
|
+
"mode": "spin",
|
3608
|
+
"size": "mini",
|
3609
|
+
"theme": "primary"
|
3610
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.curContentText])]), (0,external_vue_namespaceObject.createVNode)("div", {
|
3611
|
+
"class": _this.resolveClassName('select-content')
|
3612
|
+
}, [(0,external_vue_namespaceObject.createVNode)("div", {
|
3613
|
+
"style": {
|
3614
|
+
maxHeight: "".concat(_this.scrollHeight, "px"),
|
3615
|
+
minHeight: "".concat(_this.minHeight, "px")
|
3616
|
+
},
|
3617
|
+
"class": _this.isEnableVirtualRender ? '' : _this.resolveClassName('select-dropdown'),
|
3618
|
+
"onScroll": _this.handleScroll
|
3619
|
+
}, [(0,external_vue_namespaceObject.createVNode)("ul", {
|
3620
|
+
"class": _this.resolveClassName('select-options')
|
3621
|
+
}, [renderSelectAll(), renderList(), (_this$$slots12 = _this.$slots) === null || _this$$slots12 === void 0 || (_this$$slots12$defaul = _this$$slots12["default"]) === null || _this$$slots12$defaul === void 0 ? void 0 : _this$$slots12$defaul.call(_this$$slots12), _this.scrollLoading && (0,external_vue_namespaceObject.createVNode)("li", {
|
3609
3622
|
"class": _this.resolveClassName('select-options-loading')
|
3610
3623
|
}, [(0,external_vue_namespaceObject.createVNode)(loading_namespaceObject["default"], {
|
3611
3624
|
"class": "spinner mr5",
|
@@ -3613,7 +3626,7 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3613
3626
|
"mode": "spin",
|
3614
3627
|
"size": "mini",
|
3615
3628
|
"theme": "primary"
|
3616
|
-
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])
|
3629
|
+
}, null), (0,external_vue_namespaceObject.createVNode)("span", null, [_this.localLoadingText])])])]), ((_this$$slots13 = _this.$slots) === null || _this$$slots13 === void 0 ? void 0 : _this$$slots13.extension) && (0,external_vue_namespaceObject.createVNode)("div", {
|
3617
3630
|
"class": _this.resolveClassName('select-extension')
|
3618
3631
|
}, [(_this$$slots14 = _this.$slots) === null || _this$$slots14 === void 0 ? void 0 : _this$$slots14.extension()])])]);
|
3619
3632
|
};
|
@@ -3621,7 +3634,6 @@ function select_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { v
|
|
3621
3634
|
"class": selectClass
|
3622
3635
|
}, [(0,external_vue_namespaceObject.createVNode)(popover_namespaceObject["default"], (0,external_vue_namespaceObject.mergeProps)(this.popoverConfig, {
|
3623
3636
|
"ref": "popoverRef",
|
3624
|
-
"onAfterShow": this.handlePopoverShow,
|
3625
3637
|
"onClickoutside": this.handleClickOutside
|
3626
3638
|
}), {
|
3627
3639
|
"default": function _default() {
|
package/lib/select/select.d.ts
CHANGED
@@ -38,6 +38,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
38
38
|
} & {
|
39
39
|
default: number;
|
40
40
|
};
|
41
|
+
minHeight: import("vue-types").VueTypeValidableDef<number> & {
|
42
|
+
default: number;
|
43
|
+
};
|
41
44
|
showAll: import("vue-types").VueTypeValidableDef<boolean> & {
|
42
45
|
default: boolean;
|
43
46
|
} & {
|
@@ -518,7 +521,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
518
521
|
allowCreate: boolean;
|
519
522
|
collapseTags: boolean;
|
520
523
|
}>>;
|
521
|
-
virtualRenderRef: import("vue").Ref<any>;
|
522
524
|
popoverRef: import("vue").Ref<any>;
|
523
525
|
searchLoading: import("vue").Ref<boolean>;
|
524
526
|
isOptionsEmpty: import("vue").ComputedRef<boolean>;
|
@@ -684,13 +686,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
684
686
|
handleDeleteTag: (val: string) => void;
|
685
687
|
handleInputChange: (value: any) => void;
|
686
688
|
handleSelectedAllOptionMouseEnter: () => void;
|
687
|
-
handlePopoverShow: () => void;
|
688
689
|
localLoadingText: import("vue").ComputedRef<string>;
|
689
690
|
localPlaceholder: import("vue").ComputedRef<string>;
|
690
691
|
localSearchPlaceholder: import("vue").ComputedRef<string>;
|
691
692
|
localSelectAllText: import("vue").ComputedRef<string>;
|
692
693
|
resolveClassName: (cls: string) => string;
|
693
694
|
handleCreateCustomOption: (val: number | string, e: KeyboardEvent) => void;
|
695
|
+
virtualLineHeight: import("vue").Ref<number>;
|
696
|
+
isEnableVirtualRender: import("vue").ComputedRef<boolean>;
|
697
|
+
preloadItemCount: import("vue").ComputedRef<number>;
|
694
698
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect" | "search-change")[], "blur" | "change" | "focus" | "select" | "toggle" | "clear" | "update:modelValue" | "scroll-end" | "tag-remove" | "deselect" | "search-change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
695
699
|
modelValue: import("vue-types").VueTypeValidableDef<any>;
|
696
700
|
multiple: import("vue-types").VueTypeValidableDef<boolean> & {
|
@@ -729,6 +733,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
729
733
|
} & {
|
730
734
|
default: number;
|
731
735
|
};
|
736
|
+
minHeight: import("vue-types").VueTypeValidableDef<number> & {
|
737
|
+
default: number;
|
738
|
+
};
|
732
739
|
showAll: import("vue-types").VueTypeValidableDef<boolean> & {
|
733
740
|
default: boolean;
|
734
741
|
} & {
|
@@ -1029,6 +1036,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
1029
1036
|
scrollHeight: number;
|
1030
1037
|
clearable: boolean;
|
1031
1038
|
withValidate: boolean;
|
1039
|
+
minHeight: number;
|
1032
1040
|
noDataText: string;
|
1033
1041
|
showSelectedIcon: boolean;
|
1034
1042
|
highlightKeyword: boolean;
|
@@ -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 };
|
@@ -53,7 +53,9 @@ declare const BkSideslider: {
|
|
53
53
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
54
54
|
default: "show" | "if";
|
55
55
|
};
|
56
|
-
beforeClose: import("vue-types").
|
56
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
57
|
+
default: () => boolean;
|
58
|
+
};
|
57
59
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
58
60
|
default: string;
|
59
61
|
};
|
@@ -123,7 +125,9 @@ declare const BkSideslider: {
|
|
123
125
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
124
126
|
default: "show" | "if";
|
125
127
|
};
|
126
|
-
beforeClose: import("vue-types").
|
128
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
129
|
+
default: () => boolean;
|
130
|
+
};
|
127
131
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
128
132
|
default: string;
|
129
133
|
};
|
@@ -154,6 +158,7 @@ declare const BkSideslider: {
|
|
154
158
|
escClose: boolean;
|
155
159
|
quickClose: boolean;
|
156
160
|
animateType: string;
|
161
|
+
beforeClose: () => boolean;
|
157
162
|
}, true, {}, {}, {
|
158
163
|
P: {};
|
159
164
|
B: {};
|
@@ -215,7 +220,9 @@ declare const BkSideslider: {
|
|
215
220
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
216
221
|
default: "show" | "if";
|
217
222
|
};
|
218
|
-
beforeClose: import("vue-types").
|
223
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
224
|
+
default: () => boolean;
|
225
|
+
};
|
219
226
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
220
227
|
default: string;
|
221
228
|
};
|
@@ -246,6 +253,7 @@ declare const BkSideslider: {
|
|
246
253
|
escClose: boolean;
|
247
254
|
quickClose: boolean;
|
248
255
|
animateType: string;
|
256
|
+
beforeClose: () => boolean;
|
249
257
|
}>;
|
250
258
|
__isFragment?: never;
|
251
259
|
__isTeleport?: never;
|
@@ -304,7 +312,9 @@ declare const BkSideslider: {
|
|
304
312
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
305
313
|
default: "show" | "if";
|
306
314
|
};
|
307
|
-
beforeClose: import("vue-types").
|
315
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
316
|
+
default: () => boolean;
|
317
|
+
};
|
308
318
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
309
319
|
default: string;
|
310
320
|
};
|
@@ -335,5 +345,6 @@ declare const BkSideslider: {
|
|
335
345
|
escClose: boolean;
|
336
346
|
quickClose: boolean;
|
337
347
|
animateType: string;
|
348
|
+
beforeClose: () => boolean;
|
338
349
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & import("vue").Plugin<any[]>;
|
339
350
|
export default BkSideslider;
|
@@ -52,7 +52,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
52
52
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
53
53
|
default: "show" | "if";
|
54
54
|
};
|
55
|
-
beforeClose: import("vue-types").
|
55
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
56
|
+
default: () => boolean;
|
57
|
+
};
|
56
58
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
57
59
|
default: string;
|
58
60
|
};
|
@@ -116,7 +118,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
116
118
|
renderDirective: import("vue-types").VueTypeValidableDef<"show" | "if"> & {
|
117
119
|
default: "show" | "if";
|
118
120
|
};
|
119
|
-
beforeClose: import("vue-types").
|
121
|
+
beforeClose: import("vue-types").VueTypeValidableDef<() => boolean> & {
|
122
|
+
default: () => boolean;
|
123
|
+
};
|
120
124
|
left: import("vue-types").VueTypeValidableDef<string> & {
|
121
125
|
default: string;
|
122
126
|
};
|
@@ -147,5 +151,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
147
151
|
escClose: boolean;
|
148
152
|
quickClose: boolean;
|
149
153
|
animateType: string;
|
154
|
+
beforeClose: () => boolean;
|
150
155
|
}, {}>;
|
151
156
|
export default _default;
|
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;
|
@@ -0,0 +1,2 @@
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
2
|
+
export default _default;
|
@@ -79,50 +79,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
79
79
|
} & {
|
80
80
|
default: number;
|
81
81
|
};
|
82
|
-
}, {
|
83
|
-
|
84
|
-
|
85
|
-
resizable?: boolean;
|
86
|
-
minWidth?: string | number;
|
87
|
-
index?: number;
|
88
|
-
columnKey?: string;
|
89
|
-
colspan?: import("../props").SpanFunctionString;
|
90
|
-
rowspan?: import("../props").SpanFunctionString;
|
91
|
-
render?: import("../props").RenderFunctionString;
|
92
|
-
sort?: string | boolean | {
|
93
|
-
sortFn?: Function;
|
94
|
-
sortScope?: import("../props").SortScope;
|
95
|
-
value?: import("../const").SORT_OPTION;
|
96
|
-
};
|
97
|
-
filter?: string | boolean | {
|
98
|
-
list: any[];
|
99
|
-
filterFn?: Function;
|
100
|
-
match?: import("../props").FullEnum;
|
101
|
-
checked?: any[];
|
102
|
-
filterScope?: import("../props").SortScope;
|
103
|
-
btnSave?: string | boolean;
|
104
|
-
btnReset?: string | boolean;
|
105
|
-
height?: number;
|
106
|
-
maxHeight?: number;
|
107
|
-
};
|
108
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
109
|
-
label?: import("../props").LabelFunctionString;
|
110
|
-
width?: string | number;
|
111
|
-
className?: import("../props").RowClassFunctionString;
|
112
|
-
align?: "" | "left" | "right" | "center";
|
113
|
-
showOverflowTooltip?: boolean | {
|
114
|
-
content: string | ((col: import("../props").Column, row: any) => string);
|
115
|
-
disabled?: boolean | ((col: import("../props").Column, row: any) => boolean);
|
116
|
-
watchCellResize?: boolean;
|
117
|
-
mode?: "auto" | "static";
|
118
|
-
popoverOption?: any;
|
119
|
-
resizerWay?: import("../props").ResizerWay;
|
120
|
-
showHead?: boolean;
|
121
|
-
};
|
122
|
-
field: import("../props").LabelFunctionString;
|
123
|
-
prop?: import("../props").LabelFunctionString;
|
124
|
-
};
|
125
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
82
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
83
|
+
[key: string]: any;
|
84
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
126
85
|
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
127
86
|
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
128
87
|
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
@@ -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;
|