bkui-vue 2.0.1-beta.15.table.10 → 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 +50 -50
- package/dist/index.esm.js +8021 -8009
- package/dist/index.umd.js +49 -49
- 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/select/index.d.ts +24 -6
- package/lib/select/index.js +68 -56
- package/lib/select/select.d.ts +10 -2
- package/lib/sideslider/index.d.ts +15 -4
- package/lib/sideslider/sideslider.d.ts +7 -2
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -45
- package/lib/table/hooks/use-column-template.d.ts +0 -1
- package/lib/table/index.d.ts +3 -45
- package/lib/table/index.js +88 -40
- package/lib/table-column/index.d.ts +9 -135
- package/lib/table-column/index.js +17280 -18
- package/lib/virtual-render/index.js +2 -3
- 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;
|
@@ -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;
|
@@ -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,51 +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
|
-
allowHtml?: boolean;
|
117
|
-
watchCellResize?: boolean;
|
118
|
-
mode?: "auto" | "static";
|
119
|
-
popoverOption?: any;
|
120
|
-
resizerWay?: import("../props").ResizerWay;
|
121
|
-
showHead?: boolean;
|
122
|
-
};
|
123
|
-
field: import("../props").LabelFunctionString;
|
124
|
-
prop?: import("../props").LabelFunctionString;
|
125
|
-
};
|
126
|
-
}, 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<{
|
127
85
|
label: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
128
86
|
field: import("vue-types").VueTypeDef<import("../props").LabelFunctionString>;
|
129
87
|
render: import("vue-types").VueTypeDef<import("../props").RenderFunctionString>;
|
package/lib/table/index.d.ts
CHANGED
@@ -877,51 +877,9 @@ declare const BkTable: {
|
|
877
877
|
} & {
|
878
878
|
default: number;
|
879
879
|
};
|
880
|
-
}, {
|
881
|
-
|
882
|
-
|
883
|
-
resizable?: boolean;
|
884
|
-
minWidth?: string | number;
|
885
|
-
index?: number;
|
886
|
-
columnKey?: string;
|
887
|
-
colspan?: import("./props").SpanFunctionString;
|
888
|
-
rowspan?: import("./props").SpanFunctionString;
|
889
|
-
render?: import("./props").RenderFunctionString;
|
890
|
-
sort?: string | boolean | {
|
891
|
-
sortFn?: Function;
|
892
|
-
sortScope?: import("./props").SortScope;
|
893
|
-
value?: import("./const").SORT_OPTION;
|
894
|
-
};
|
895
|
-
filter?: string | boolean | {
|
896
|
-
list: any[];
|
897
|
-
filterFn?: Function;
|
898
|
-
match?: import("./props").FullEnum;
|
899
|
-
checked?: any[];
|
900
|
-
filterScope?: import("./props").SortScope;
|
901
|
-
btnSave?: string | boolean;
|
902
|
-
btnReset?: string | boolean;
|
903
|
-
height?: number;
|
904
|
-
maxHeight?: number;
|
905
|
-
};
|
906
|
-
type?: "index" | "expand" | "__COL_TYPE_NONE" | "selection";
|
907
|
-
label?: import("./props").LabelFunctionString;
|
908
|
-
width?: string | number;
|
909
|
-
className?: import("./props").RowClassFunctionString;
|
910
|
-
align?: "" | "left" | "right" | "center";
|
911
|
-
showOverflowTooltip?: boolean | {
|
912
|
-
content: string | ((col: import("./props").Column, row: any) => string);
|
913
|
-
disabled?: boolean | ((col: import("./props").Column, row: any) => boolean);
|
914
|
-
allowHtml?: boolean;
|
915
|
-
watchCellResize?: boolean;
|
916
|
-
mode?: "auto" | "static";
|
917
|
-
popoverOption?: any;
|
918
|
-
resizerWay?: import("./props").ResizerWay;
|
919
|
-
showHead?: boolean;
|
920
|
-
};
|
921
|
-
field: import("./props").LabelFunctionString;
|
922
|
-
prop?: import("./props").LabelFunctionString;
|
923
|
-
};
|
924
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
880
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
881
|
+
[key: string]: any;
|
882
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
|
925
883
|
label: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
926
884
|
field: import("vue-types").VueTypeDef<import("./props").LabelFunctionString>;
|
927
885
|
render: import("vue-types").VueTypeDef<import("./props").RenderFunctionString>;
|