bkui-vue 0.0.2-beta.111 → 0.0.2-beta.113
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 +25 -25
- package/dist/index.esm.js +3843 -3838
- package/dist/index.umd.js +26 -26
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/input/input.css +16 -0
- package/lib/input/input.less +19 -0
- package/lib/input/input.variable.css +16 -0
- package/lib/plugin-popover/index.js +17 -101
- package/lib/popover/index.js +17 -101
- package/lib/table/components/table-column.d.ts +4 -4
- package/lib/table/index.d.ts +22 -4
- package/lib/table/index.js +6 -2
- package/lib/table/props.d.ts +9 -1
- package/lib/table/table.d.ts +11 -0
- package/lib/table-column/index.d.ts +10 -10
- package/lib/table-column/index.js +5 -1
- package/lib/tree/index.js +46 -1
- package/lib/tree/tree.d.ts +4 -0
- package/lib/virtual-render/index.js +71 -30
- package/lib/virtual-render/use-fix-top.d.ts +18 -0
- package/lib/virtual-render/v-virtual-render.d.ts +5 -0
- package/package.json +1 -1
package/lib/input/input.css
CHANGED
@@ -502,3 +502,19 @@
|
|
502
502
|
.bk-input--number-control span:not(.is-disabled):hover {
|
503
503
|
background-color: var(--input-block-hover-color);
|
504
504
|
}
|
505
|
+
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
506
|
+
input:-webkit-autofill,
|
507
|
+
input:-webkit-autofill:hover,
|
508
|
+
input:-webkit-autofill:focus,
|
509
|
+
input:-webkit-autofill:active {
|
510
|
+
-webkit-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
511
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
512
|
+
}
|
513
|
+
/* 针对 Firefox 的样式 */
|
514
|
+
input:-moz-autofill,
|
515
|
+
input:-moz-autofill:hover,
|
516
|
+
input:-moz-autofill:focus,
|
517
|
+
input:-moz-autofill:active {
|
518
|
+
-moz-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
519
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
520
|
+
}
|
package/lib/input/input.less
CHANGED
@@ -344,4 +344,23 @@
|
|
344
344
|
background-color: @input-block-hover-color;
|
345
345
|
}
|
346
346
|
}
|
347
|
+
}
|
348
|
+
|
349
|
+
// 去掉自动填充时的背景颜色
|
350
|
+
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
351
|
+
input:-webkit-autofill,
|
352
|
+
input:-webkit-autofill:hover,
|
353
|
+
input:-webkit-autofill:focus,
|
354
|
+
input:-webkit-autofill:active {
|
355
|
+
-webkit-box-shadow: 0 0 0 100px @input-bg inset !important;
|
356
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
357
|
+
}
|
358
|
+
|
359
|
+
/* 针对 Firefox 的样式 */
|
360
|
+
input:-moz-autofill,
|
361
|
+
input:-moz-autofill:hover,
|
362
|
+
input:-moz-autofill:focus,
|
363
|
+
input:-moz-autofill:active {
|
364
|
+
-moz-box-shadow: 0 0 0 100px @input-bg inset !important;
|
365
|
+
box-shadow: 0 0 0 100px @input-bg inset !important;
|
347
366
|
}
|
@@ -868,3 +868,19 @@
|
|
868
868
|
.bk-input--number-control span:not(.is-disabled):hover {
|
869
869
|
background-color: var(--input-block-hover-color);
|
870
870
|
}
|
871
|
+
/* 针对 Chrome、Safari 和新版 Edge 的样式 */
|
872
|
+
input:-webkit-autofill,
|
873
|
+
input:-webkit-autofill:hover,
|
874
|
+
input:-webkit-autofill:focus,
|
875
|
+
input:-webkit-autofill:active {
|
876
|
+
-webkit-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
877
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
878
|
+
}
|
879
|
+
/* 针对 Firefox 的样式 */
|
880
|
+
input:-moz-autofill,
|
881
|
+
input:-moz-autofill:hover,
|
882
|
+
input:-moz-autofill:focus,
|
883
|
+
input:-moz-autofill:active {
|
884
|
+
-moz-box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
885
|
+
box-shadow: 0 0 0 100px var(--input-bg) inset !important;
|
886
|
+
}
|
@@ -2507,88 +2507,6 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
2507
2507
|
|
2508
2508
|
|
2509
2509
|
|
2510
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
|
2511
|
-
function _objectDestructuringEmpty(obj) {
|
2512
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
2513
|
-
}
|
2514
|
-
;// CONCATENATED MODULE: ../../packages/popover/src/use-platform.tsx
|
2515
|
-
|
2516
|
-
/*
|
2517
|
-
* Tencent is pleased to support the open source community by making
|
2518
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2519
|
-
*
|
2520
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2521
|
-
*
|
2522
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2523
|
-
*
|
2524
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2525
|
-
*
|
2526
|
-
* ---------------------------------------------------
|
2527
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2528
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2529
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2530
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2531
|
-
*
|
2532
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2533
|
-
* the Software.
|
2534
|
-
*
|
2535
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2536
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2537
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2538
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2539
|
-
* IN THE SOFTWARE.
|
2540
|
-
*/
|
2541
|
-
/* harmony default export */ const use_platform = (function (fullscreenTarget) {
|
2542
|
-
var getElementRects = function getElementRects(_ref) {
|
2543
|
-
var reference = _ref.reference,
|
2544
|
-
floating = _ref.floating;
|
2545
|
-
var refRect = reference.getBoundingClientRect();
|
2546
|
-
var floatRect = floating.getBoundingClientRect();
|
2547
|
-
return {
|
2548
|
-
reference: {
|
2549
|
-
width: refRect.width,
|
2550
|
-
height: refRect.height,
|
2551
|
-
x: refRect.x,
|
2552
|
-
y: refRect.y
|
2553
|
-
},
|
2554
|
-
floating: {
|
2555
|
-
width: floatRect.width,
|
2556
|
-
height: floatRect.height,
|
2557
|
-
x: floatRect.x,
|
2558
|
-
y: floatRect.y
|
2559
|
-
}
|
2560
|
-
};
|
2561
|
-
};
|
2562
|
-
var getDimensions = function getDimensions(element) {
|
2563
|
-
var _element$getBoundingC = element.getBoundingClientRect(),
|
2564
|
-
width = _element$getBoundingC.width,
|
2565
|
-
height = _element$getBoundingC.height;
|
2566
|
-
return {
|
2567
|
-
width: width,
|
2568
|
-
height: height
|
2569
|
-
};
|
2570
|
-
};
|
2571
|
-
var getClippingRect = function getClippingRect(_ref2) {
|
2572
|
-
var _fullscreenTarget$get;
|
2573
|
-
_objectDestructuringEmpty(_ref2);
|
2574
|
-
var _ref3 = (_fullscreenTarget$get = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _fullscreenTarget$get !== void 0 ? _fullscreenTarget$get : {},
|
2575
|
-
_ref3$width = _ref3.width,
|
2576
|
-
width = _ref3$width === void 0 ? 0 : _ref3$width,
|
2577
|
-
_ref3$height = _ref3.height,
|
2578
|
-
height = _ref3$height === void 0 ? 0 : _ref3$height;
|
2579
|
-
return {
|
2580
|
-
width: width,
|
2581
|
-
height: height,
|
2582
|
-
x: 0,
|
2583
|
-
y: 0
|
2584
|
-
};
|
2585
|
-
};
|
2586
|
-
return {
|
2587
|
-
getElementRects: getElementRects,
|
2588
|
-
getDimensions: getDimensions,
|
2589
|
-
getClippingRect: getClippingRect
|
2590
|
-
};
|
2591
|
-
});
|
2592
2510
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2593
2511
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2594
2512
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -2776,7 +2694,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2776
2694
|
|
2777
2695
|
|
2778
2696
|
|
2779
|
-
|
2697
|
+
// import usePlatform from './use-platform';
|
2780
2698
|
|
2781
2699
|
/**
|
2782
2700
|
* 解析popover相关配置
|
@@ -2912,10 +2830,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2912
2830
|
}
|
2913
2831
|
if (isAutoPlacementAvailable()) {
|
2914
2832
|
middleware.push(autoPlacement());
|
2915
|
-
} else {
|
2916
|
-
middleware.unshift(inline());
|
2917
|
-
middleware.push(flip());
|
2918
2833
|
}
|
2834
|
+
middleware.unshift(inline());
|
2835
|
+
middleware.push(flip());
|
2919
2836
|
if (isHideMiddlewareAvailable()) {
|
2920
2837
|
options.middleware.push(hide());
|
2921
2838
|
}
|
@@ -2925,20 +2842,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2925
2842
|
* 在弹出的全屏元素中,元素相对位置有别于document下面元素
|
2926
2843
|
* 全屏模式下面,需要自定义当前元素的一个platform
|
2927
2844
|
*/
|
2928
|
-
if (isElementFullScreen() || props.isVirtualEl) {
|
2929
|
-
|
2930
|
-
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
})
|
2940
|
-
});
|
2941
|
-
}
|
2845
|
+
// if (isElementFullScreen() || props.isVirtualEl) {
|
2846
|
+
// const { getElementRects, getDimensions, getClippingRect } = usePlatform(fullScreenTarget.value);
|
2847
|
+
// Object.assign(options, {
|
2848
|
+
// platform: {
|
2849
|
+
// ...(props?.platform ?? {}),
|
2850
|
+
// getElementRects,
|
2851
|
+
// getDimensions,
|
2852
|
+
// getClippingRect,
|
2853
|
+
// },
|
2854
|
+
// });
|
2855
|
+
// }
|
2942
2856
|
return options;
|
2943
2857
|
};
|
2944
2858
|
var resolveTargetElement = function resolveTargetElement(target) {
|
@@ -3420,7 +3334,9 @@ var parentNodeReferId = null;
|
|
3420
3334
|
elReference = _resolvePopElements3.elReference,
|
3421
3335
|
root = _resolvePopElements3.root;
|
3422
3336
|
if (isFullscreen.value) {
|
3423
|
-
|
3337
|
+
var _ref6 = elReference || root || {},
|
3338
|
+
parentNode = _ref6.parentNode;
|
3339
|
+
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
|
3424
3340
|
return;
|
3425
3341
|
}
|
3426
3342
|
boundary.value = getPrefixId(root || elReference);
|
package/lib/popover/index.js
CHANGED
@@ -2509,88 +2509,6 @@ const floating_ui_dom_computePosition = (reference, floating, options) => {
|
|
2509
2509
|
|
2510
2510
|
|
2511
2511
|
|
2512
|
-
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/objectDestructuringEmpty.js
|
2513
|
-
function _objectDestructuringEmpty(obj) {
|
2514
|
-
if (obj == null) throw new TypeError("Cannot destructure " + obj);
|
2515
|
-
}
|
2516
|
-
;// CONCATENATED MODULE: ../../packages/popover/src/use-platform.tsx
|
2517
|
-
|
2518
|
-
/*
|
2519
|
-
* Tencent is pleased to support the open source community by making
|
2520
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) available.
|
2521
|
-
*
|
2522
|
-
* Copyright (C) 2021 THL A29 Limited, a Tencent company. All rights reserved.
|
2523
|
-
*
|
2524
|
-
* 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition) is licensed under the MIT License.
|
2525
|
-
*
|
2526
|
-
* License for 蓝鲸智云PaaS平台社区版 (BlueKing PaaS Community Edition):
|
2527
|
-
*
|
2528
|
-
* ---------------------------------------------------
|
2529
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated
|
2530
|
-
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation
|
2531
|
-
* the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and
|
2532
|
-
* to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
2533
|
-
*
|
2534
|
-
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of
|
2535
|
-
* the Software.
|
2536
|
-
*
|
2537
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO
|
2538
|
-
* THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
2539
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF
|
2540
|
-
* CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
|
2541
|
-
* IN THE SOFTWARE.
|
2542
|
-
*/
|
2543
|
-
/* harmony default export */ const use_platform = (function (fullscreenTarget) {
|
2544
|
-
var getElementRects = function getElementRects(_ref) {
|
2545
|
-
var reference = _ref.reference,
|
2546
|
-
floating = _ref.floating;
|
2547
|
-
var refRect = reference.getBoundingClientRect();
|
2548
|
-
var floatRect = floating.getBoundingClientRect();
|
2549
|
-
return {
|
2550
|
-
reference: {
|
2551
|
-
width: refRect.width,
|
2552
|
-
height: refRect.height,
|
2553
|
-
x: refRect.x,
|
2554
|
-
y: refRect.y
|
2555
|
-
},
|
2556
|
-
floating: {
|
2557
|
-
width: floatRect.width,
|
2558
|
-
height: floatRect.height,
|
2559
|
-
x: floatRect.x,
|
2560
|
-
y: floatRect.y
|
2561
|
-
}
|
2562
|
-
};
|
2563
|
-
};
|
2564
|
-
var getDimensions = function getDimensions(element) {
|
2565
|
-
var _element$getBoundingC = element.getBoundingClientRect(),
|
2566
|
-
width = _element$getBoundingC.width,
|
2567
|
-
height = _element$getBoundingC.height;
|
2568
|
-
return {
|
2569
|
-
width: width,
|
2570
|
-
height: height
|
2571
|
-
};
|
2572
|
-
};
|
2573
|
-
var getClippingRect = function getClippingRect(_ref2) {
|
2574
|
-
var _fullscreenTarget$get;
|
2575
|
-
_objectDestructuringEmpty(_ref2);
|
2576
|
-
var _ref3 = (_fullscreenTarget$get = fullscreenTarget === null || fullscreenTarget === void 0 ? void 0 : fullscreenTarget.getBoundingClientRect()) !== null && _fullscreenTarget$get !== void 0 ? _fullscreenTarget$get : {},
|
2577
|
-
_ref3$width = _ref3.width,
|
2578
|
-
width = _ref3$width === void 0 ? 0 : _ref3$width,
|
2579
|
-
_ref3$height = _ref3.height,
|
2580
|
-
height = _ref3$height === void 0 ? 0 : _ref3$height;
|
2581
|
-
return {
|
2582
|
-
width: width,
|
2583
|
-
height: height,
|
2584
|
-
x: 0,
|
2585
|
-
y: 0
|
2586
|
-
};
|
2587
|
-
};
|
2588
|
-
return {
|
2589
|
-
getElementRects: getElementRects,
|
2590
|
-
getDimensions: getDimensions,
|
2591
|
-
getClippingRect: getClippingRect
|
2592
|
-
};
|
2593
|
-
});
|
2594
2512
|
;// CONCATENATED MODULE: ../../node_modules/uuid/dist/esm-browser/native.js
|
2595
2513
|
const randomUUID = typeof crypto !== 'undefined' && crypto.randomUUID && crypto.randomUUID.bind(crypto);
|
2596
2514
|
/* harmony default export */ const esm_browser_native = ({
|
@@ -2778,7 +2696,7 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2778
2696
|
|
2779
2697
|
|
2780
2698
|
|
2781
|
-
|
2699
|
+
// import usePlatform from './use-platform';
|
2782
2700
|
|
2783
2701
|
/**
|
2784
2702
|
* 解析popover相关配置
|
@@ -2914,10 +2832,9 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2914
2832
|
}
|
2915
2833
|
if (isAutoPlacementAvailable()) {
|
2916
2834
|
middleware.push(autoPlacement());
|
2917
|
-
} else {
|
2918
|
-
middleware.unshift(inline());
|
2919
|
-
middleware.push(flip());
|
2920
2835
|
}
|
2836
|
+
middleware.unshift(inline());
|
2837
|
+
middleware.push(flip());
|
2921
2838
|
if (isHideMiddlewareAvailable()) {
|
2922
2839
|
options.middleware.push(hide());
|
2923
2840
|
}
|
@@ -2927,20 +2844,17 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
2927
2844
|
* 在弹出的全屏元素中,元素相对位置有别于document下面元素
|
2928
2845
|
* 全屏模式下面,需要自定义当前元素的一个platform
|
2929
2846
|
*/
|
2930
|
-
if (isElementFullScreen() || props.isVirtualEl) {
|
2931
|
-
|
2932
|
-
|
2933
|
-
|
2934
|
-
|
2935
|
-
|
2936
|
-
|
2937
|
-
|
2938
|
-
|
2939
|
-
|
2940
|
-
|
2941
|
-
})
|
2942
|
-
});
|
2943
|
-
}
|
2847
|
+
// if (isElementFullScreen() || props.isVirtualEl) {
|
2848
|
+
// const { getElementRects, getDimensions, getClippingRect } = usePlatform(fullScreenTarget.value);
|
2849
|
+
// Object.assign(options, {
|
2850
|
+
// platform: {
|
2851
|
+
// ...(props?.platform ?? {}),
|
2852
|
+
// getElementRects,
|
2853
|
+
// getDimensions,
|
2854
|
+
// getClippingRect,
|
2855
|
+
// },
|
2856
|
+
// });
|
2857
|
+
// }
|
2944
2858
|
return options;
|
2945
2859
|
};
|
2946
2860
|
var resolveTargetElement = function resolveTargetElement(target) {
|
@@ -3422,7 +3336,9 @@ var parentNodeReferId = null;
|
|
3422
3336
|
elReference = _resolvePopElements3.elReference,
|
3423
3337
|
root = _resolvePopElements3.root;
|
3424
3338
|
if (isFullscreen.value) {
|
3425
|
-
|
3339
|
+
var _ref6 = elReference || root || {},
|
3340
|
+
parentNode = _ref6.parentNode;
|
3341
|
+
boundary.value = (fullScreenTarget === null || fullScreenTarget === void 0 ? void 0 : fullScreenTarget.value) || parentNode;
|
3426
3342
|
return;
|
3427
3343
|
}
|
3428
3344
|
boundary.value = getPrefixId(root || elReference);
|
@@ -14,7 +14,7 @@ declare const TableColumnProp: {
|
|
14
14
|
default: string;
|
15
15
|
};
|
16
16
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
17
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
17
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
18
18
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
19
19
|
default: boolean;
|
20
20
|
} & {
|
@@ -65,7 +65,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
65
65
|
default: string;
|
66
66
|
};
|
67
67
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
68
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
68
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
69
69
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
70
70
|
default: boolean;
|
71
71
|
} & {
|
@@ -160,7 +160,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
160
160
|
height?: number;
|
161
161
|
maxHeight?: number;
|
162
162
|
};
|
163
|
-
type?: "none" | "
|
163
|
+
type?: "none" | "index" | "selection" | "expand";
|
164
164
|
label?: import("../props").LabelFunctionString;
|
165
165
|
width?: string | number;
|
166
166
|
className?: import("../props").RowClassFunctionString;
|
@@ -195,7 +195,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
195
195
|
default: string;
|
196
196
|
};
|
197
197
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../props").IOverflowTooltipProp>;
|
198
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
198
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
199
199
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
200
200
|
default: boolean;
|
201
201
|
} & {
|
package/lib/table/index.d.ts
CHANGED
@@ -21,6 +21,7 @@ declare const BkTable: {
|
|
21
21
|
checked?: unknown[];
|
22
22
|
cellClass?: any;
|
23
23
|
headHeight?: number;
|
24
|
+
throttleDelay?: number;
|
24
25
|
rowKey?: any;
|
25
26
|
scrollLoading?: boolean | {
|
26
27
|
[key: string]: any;
|
@@ -403,6 +404,11 @@ declare const BkTable: {
|
|
403
404
|
} & {
|
404
405
|
default: boolean;
|
405
406
|
};
|
407
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
408
|
+
default: number;
|
409
|
+
} & {
|
410
|
+
default: number;
|
411
|
+
};
|
406
412
|
}>> & {
|
407
413
|
onSelect?: (_args: {
|
408
414
|
row: any;
|
@@ -575,6 +581,7 @@ declare const BkTable: {
|
|
575
581
|
checked: unknown[];
|
576
582
|
cellClass: any;
|
577
583
|
headHeight: number;
|
584
|
+
throttleDelay: number;
|
578
585
|
rowKey: any;
|
579
586
|
scrollLoading: boolean | {
|
580
587
|
[key: string]: any;
|
@@ -774,6 +781,11 @@ declare const BkTable: {
|
|
774
781
|
} & {
|
775
782
|
default: boolean;
|
776
783
|
};
|
784
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
785
|
+
default: number;
|
786
|
+
} & {
|
787
|
+
default: number;
|
788
|
+
};
|
777
789
|
}>> & {
|
778
790
|
onSelect?: (_args: {
|
779
791
|
row: any;
|
@@ -1009,6 +1021,11 @@ declare const BkTable: {
|
|
1009
1021
|
} & {
|
1010
1022
|
default: boolean;
|
1011
1023
|
};
|
1024
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
1025
|
+
default: number;
|
1026
|
+
} & {
|
1027
|
+
default: number;
|
1028
|
+
};
|
1012
1029
|
}>> & {
|
1013
1030
|
onSelect?: (_args: {
|
1014
1031
|
row: any;
|
@@ -1181,6 +1198,7 @@ declare const BkTable: {
|
|
1181
1198
|
checked: unknown[];
|
1182
1199
|
cellClass: any;
|
1183
1200
|
headHeight: number;
|
1201
|
+
throttleDelay: number;
|
1184
1202
|
rowKey: any;
|
1185
1203
|
scrollLoading: boolean | {
|
1186
1204
|
[key: string]: any;
|
@@ -1223,7 +1241,7 @@ declare const BkTable: {
|
|
1223
1241
|
default: string;
|
1224
1242
|
};
|
1225
1243
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
1226
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
1244
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
1227
1245
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
1228
1246
|
default: boolean;
|
1229
1247
|
} & {
|
@@ -1318,7 +1336,7 @@ declare const BkTable: {
|
|
1318
1336
|
height?: number;
|
1319
1337
|
maxHeight?: number;
|
1320
1338
|
};
|
1321
|
-
type?: "none" | "
|
1339
|
+
type?: "none" | "index" | "selection" | "expand";
|
1322
1340
|
label?: import("./props").LabelFunctionString;
|
1323
1341
|
width?: string | number;
|
1324
1342
|
className?: import("./props").RowClassFunctionString;
|
@@ -1350,7 +1368,7 @@ declare const BkTable: {
|
|
1350
1368
|
default: string;
|
1351
1369
|
};
|
1352
1370
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
1353
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
1371
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
1354
1372
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
1355
1373
|
default: boolean;
|
1356
1374
|
} & {
|
@@ -1402,7 +1420,7 @@ declare const BkTable: {
|
|
1402
1420
|
default: string;
|
1403
1421
|
};
|
1404
1422
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("./props").IOverflowTooltipProp>;
|
1405
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
1423
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
1406
1424
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
1407
1425
|
default: boolean;
|
1408
1426
|
} & {
|
package/lib/table/index.js
CHANGED
@@ -614,7 +614,11 @@ var tableProps = {
|
|
614
614
|
/**
|
615
615
|
* 是否采用flex布局表格
|
616
616
|
*/
|
617
|
-
isFlex: external_shared_namespaceObject.PropTypes.bool.def(true)
|
617
|
+
isFlex: external_shared_namespaceObject.PropTypes.bool.def(true),
|
618
|
+
/**
|
619
|
+
* VirtualRender throttleDelay
|
620
|
+
*/
|
621
|
+
throttleDelay: external_shared_namespaceObject.PropTypes.number.def(120)
|
618
622
|
};
|
619
623
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
620
624
|
|
@@ -6226,7 +6230,7 @@ function table_objectSpread(target) { for (var i = 1; i < arguments.length; i++)
|
|
6226
6230
|
}, scrollClass.value, {
|
6227
6231
|
"contentClassName": tableBodyContentClass.value,
|
6228
6232
|
"onContentScroll": handleScrollChanged,
|
6229
|
-
"throttleDelay":
|
6233
|
+
"throttleDelay": props.throttleDelay,
|
6230
6234
|
"scrollEvent": true,
|
6231
6235
|
"rowKey": props.rowKey,
|
6232
6236
|
"enabled": props.virtualEnabled,
|
package/lib/table/props.d.ts
CHANGED
@@ -25,7 +25,7 @@ export declare enum TableAlignEnum {
|
|
25
25
|
CENTER = "center",
|
26
26
|
NONE = ""
|
27
27
|
}
|
28
|
-
export declare const columnType: import("vue-types").VueTypeDef<"none" | "
|
28
|
+
export declare const columnType: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
29
29
|
export declare const TableAlign: import("vue-types").VueTypeDef<"" | "right" | "left" | "center">;
|
30
30
|
export declare enum FullEnum {
|
31
31
|
FULL = "full",
|
@@ -534,5 +534,13 @@ export declare const tableProps: {
|
|
534
534
|
} & {
|
535
535
|
default: boolean;
|
536
536
|
};
|
537
|
+
/**
|
538
|
+
* VirtualRender throttleDelay
|
539
|
+
*/
|
540
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
541
|
+
default: number;
|
542
|
+
} & {
|
543
|
+
default: number;
|
544
|
+
};
|
537
545
|
};
|
538
546
|
export {};
|
package/lib/table/table.d.ts
CHANGED
@@ -151,6 +151,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
151
151
|
} & {
|
152
152
|
default: boolean;
|
153
153
|
};
|
154
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
155
|
+
default: number;
|
156
|
+
} & {
|
157
|
+
default: number;
|
158
|
+
};
|
154
159
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
155
160
|
columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
|
156
161
|
columnFilter: (_args: {
|
@@ -382,6 +387,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
382
387
|
} & {
|
383
388
|
default: boolean;
|
384
389
|
};
|
390
|
+
throttleDelay: import("vue-types").VueTypeValidableDef<number> & {
|
391
|
+
default: number;
|
392
|
+
} & {
|
393
|
+
default: number;
|
394
|
+
};
|
385
395
|
}>> & {
|
386
396
|
onSelect?: (_args: {
|
387
397
|
row: any;
|
@@ -475,6 +485,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
475
485
|
checked: unknown[];
|
476
486
|
cellClass: any;
|
477
487
|
headHeight: number;
|
488
|
+
throttleDelay: number;
|
478
489
|
rowKey: any;
|
479
490
|
scrollLoading: boolean | {
|
480
491
|
[key: string]: any;
|
@@ -13,7 +13,7 @@ declare const BkTableColumn: {
|
|
13
13
|
readonly render?: import("../../table/src/props").RenderFunctionString;
|
14
14
|
readonly sort?: import("../../table/src/props").ISortPropShape;
|
15
15
|
readonly filter?: import("../../table/src/props").IFilterPropShape;
|
16
|
-
readonly type?: "none" | "
|
16
|
+
readonly type?: "none" | "index" | "selection" | "expand";
|
17
17
|
class?: unknown;
|
18
18
|
readonly label?: import("../../table/src/props").LabelFunctionString;
|
19
19
|
style?: unknown;
|
@@ -93,7 +93,7 @@ declare const BkTableColumn: {
|
|
93
93
|
default: string;
|
94
94
|
};
|
95
95
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
96
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
96
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
97
97
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
98
98
|
default: boolean;
|
99
99
|
} & {
|
@@ -188,7 +188,7 @@ declare const BkTableColumn: {
|
|
188
188
|
height?: number;
|
189
189
|
maxHeight?: number;
|
190
190
|
};
|
191
|
-
type?: "none" | "
|
191
|
+
type?: "none" | "index" | "selection" | "expand";
|
192
192
|
label?: import("../../table/src/props").LabelFunctionString;
|
193
193
|
width?: string | number;
|
194
194
|
className?: import("../../table/src/props").RowClassFunctionString;
|
@@ -220,7 +220,7 @@ declare const BkTableColumn: {
|
|
220
220
|
default: string;
|
221
221
|
};
|
222
222
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
223
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
223
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
224
224
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
225
225
|
default: boolean;
|
226
226
|
} & {
|
@@ -300,7 +300,7 @@ declare const BkTableColumn: {
|
|
300
300
|
default: string;
|
301
301
|
};
|
302
302
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
303
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
303
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
304
304
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
305
305
|
default: boolean;
|
306
306
|
} & {
|
@@ -395,7 +395,7 @@ declare const BkTableColumn: {
|
|
395
395
|
height?: number;
|
396
396
|
maxHeight?: number;
|
397
397
|
};
|
398
|
-
type?: "none" | "
|
398
|
+
type?: "none" | "index" | "selection" | "expand";
|
399
399
|
label?: import("../../table/src/props").LabelFunctionString;
|
400
400
|
width?: string | number;
|
401
401
|
className?: import("../../table/src/props").RowClassFunctionString;
|
@@ -427,7 +427,7 @@ declare const BkTableColumn: {
|
|
427
427
|
default: string;
|
428
428
|
};
|
429
429
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
430
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
430
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
431
431
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
432
432
|
default: boolean;
|
433
433
|
} & {
|
@@ -483,7 +483,7 @@ declare const BkTableColumn: {
|
|
483
483
|
default: string;
|
484
484
|
};
|
485
485
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
486
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
486
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
487
487
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
488
488
|
default: boolean;
|
489
489
|
} & {
|
@@ -578,7 +578,7 @@ declare const BkTableColumn: {
|
|
578
578
|
height?: number;
|
579
579
|
maxHeight?: number;
|
580
580
|
};
|
581
|
-
type?: "none" | "
|
581
|
+
type?: "none" | "index" | "selection" | "expand";
|
582
582
|
label?: import("../../table/src/props").LabelFunctionString;
|
583
583
|
width?: string | number;
|
584
584
|
className?: import("../../table/src/props").RowClassFunctionString;
|
@@ -610,7 +610,7 @@ declare const BkTableColumn: {
|
|
610
610
|
default: string;
|
611
611
|
};
|
612
612
|
showOverflowTooltip: import("vue-types").VueTypeDef<import("../../table/src/props").IOverflowTooltipProp>;
|
613
|
-
type: import("vue-types").VueTypeDef<"none" | "
|
613
|
+
type: import("vue-types").VueTypeDef<"none" | "index" | "selection" | "expand">;
|
614
614
|
resizable: import("vue-types").VueTypeValidableDef<boolean> & {
|
615
615
|
default: boolean;
|
616
616
|
} & {
|