bkui-vue 1.0.3-beta.59 → 1.0.3-beta.60.scrollbar.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +52 -50
- package/dist/index.esm.js +15711 -15010
- package/dist/index.umd.js +52 -50
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/affix/index.js +1 -1
- package/lib/alert/index.js +1 -1
- package/lib/animate-number/index.js +7 -8
- package/lib/badge/index.js +1 -1
- package/lib/breadcrumb/index.js +1 -1
- package/lib/button/index.js +1 -1
- package/lib/card/index.js +1 -1
- package/lib/cascader/index.js +38 -42
- package/lib/checkbox/index.js +6 -7
- package/lib/collapse/index.js +11 -12
- package/lib/collapse-transition/index.js +3 -4
- package/lib/color-picker/index.js +10 -13
- package/lib/components.d.ts +0 -1
- package/lib/components.js +1 -2
- package/lib/config-provider/index.js +1 -1
- package/lib/container/index.js +10 -12
- package/lib/date-picker/index.js +2 -2
- package/lib/dialog/dialog.css +9 -7
- package/lib/dialog/dialog.variable.css +9 -7
- package/lib/dialog/index.js +4 -4
- package/lib/directives/index.js +1 -1
- package/lib/divider/index.js +2 -3
- package/lib/dropdown/index.js +6 -8
- package/lib/exception/index.js +1 -1
- package/lib/fixed-navbar/index.js +2 -3
- package/lib/form/index.js +1 -1
- package/lib/icon/angle-double-down-line.js +1 -1
- package/lib/icon/angle-double-left-line.js +1 -1
- package/lib/icon/angle-double-left.js +1 -1
- package/lib/icon/angle-double-right-line.js +1 -1
- package/lib/icon/angle-double-right.js +1 -1
- package/lib/icon/angle-double-up-line.js +1 -1
- package/lib/icon/angle-down-fill.js +1 -1
- package/lib/icon/angle-down-line.js +1 -1
- package/lib/icon/angle-down.js +1 -1
- package/lib/icon/angle-left.js +1 -1
- package/lib/icon/angle-right.js +1 -1
- package/lib/icon/angle-up-fill.js +1 -1
- package/lib/icon/angle-up.js +1 -1
- package/lib/icon/archive-fill.js +1 -1
- package/lib/icon/arrows-left.js +1 -1
- package/lib/icon/arrows-right.js +1 -1
- package/lib/icon/assistant.js +1 -1
- package/lib/icon/audio-fill.js +1 -1
- package/lib/icon/bk.js +1 -1
- package/lib/icon/circle.js +1 -1
- package/lib/icon/close-line.js +1 -1
- package/lib/icon/close.js +1 -1
- package/lib/icon/code.js +1 -1
- package/lib/icon/cog-shape.js +1 -1
- package/lib/icon/collapse-left.js +1 -1
- package/lib/icon/copy-shape.js +1 -1
- package/lib/icon/copy.js +1 -1
- package/lib/icon/data-shape.js +1 -1
- package/lib/icon/del.js +1 -1
- package/lib/icon/doc-fill.js +1 -1
- package/lib/icon/done.js +1 -1
- package/lib/icon/down-shape.js +1 -1
- package/lib/icon/down-small.js +1 -1
- package/lib/icon/edit-line.js +1 -1
- package/lib/icon/ellipsis.js +1 -1
- package/lib/icon/enlarge-line.js +1 -1
- package/lib/icon/error.js +1 -1
- package/lib/icon/excel-fill.js +1 -1
- package/lib/icon/exclamation-circle-shape.js +1 -1
- package/lib/icon/eye.js +1 -1
- package/lib/icon/filliscreen-line.js +1 -1
- package/lib/icon/fix-line.js +1 -1
- package/lib/icon/fix-shape.js +1 -1
- package/lib/icon/folder-open.js +1 -1
- package/lib/icon/folder-shape-open.js +1 -1
- package/lib/icon/folder-shape.js +1 -1
- package/lib/icon/folder.js +1 -1
- package/lib/icon/funnel.js +1 -1
- package/lib/icon/grag-fill.js +1 -1
- package/lib/icon/help-document-fill.js +1 -1
- package/lib/icon/help-fill.js +1 -1
- package/lib/icon/help.js +1 -1
- package/lib/icon/image-fill.js +1 -1
- package/lib/icon/img-error.js +1 -1
- package/lib/icon/img-placehoulder.js +1 -1
- package/lib/icon/info-line.js +1 -1
- package/lib/icon/info.js +1 -1
- package/lib/icon/left-shape.js +1 -1
- package/lib/icon/left-turn-line.js +1 -1
- package/lib/icon/loading.js +1 -1
- package/lib/icon/narrow-line.js +1 -1
- package/lib/icon/original.js +1 -1
- package/lib/icon/pdf-fill.js +1 -1
- package/lib/icon/play-shape.js +1 -1
- package/lib/icon/plus.js +1 -1
- package/lib/icon/ppt-fill.js +1 -1
- package/lib/icon/qq.js +1 -1
- package/lib/icon/right-shape.js +1 -1
- package/lib/icon/right-turn-line.js +1 -1
- package/lib/icon/search.js +1 -1
- package/lib/icon/share.js +1 -1
- package/lib/icon/spinner.js +1 -1
- package/lib/icon/success.js +1 -1
- package/lib/icon/switcher-loading.js +1 -1
- package/lib/icon/text-all.js +1 -1
- package/lib/icon/text-file.js +1 -1
- package/lib/icon/text-fill.js +1 -1
- package/lib/icon/transfer.js +1 -1
- package/lib/icon/tree-application-shape.js +1 -1
- package/lib/icon/unfull-screen.js +1 -1
- package/lib/icon/unvisible.js +1 -1
- package/lib/icon/up-shape.js +1 -1
- package/lib/icon/upload.js +1 -1
- package/lib/icon/video-fill.js +1 -1
- package/lib/icon/warn.js +1 -1
- package/lib/icon/weixin-pro.js +1 -1
- package/lib/icon/weixin.js +1 -1
- package/lib/image/index.js +10 -11
- package/lib/info-box/index.js +4 -5
- package/lib/input/index.js +4 -4
- package/lib/link/index.js +2 -2
- package/lib/loading/index.js +11 -12
- package/lib/menu/index.js +2 -3
- package/lib/message/index.js +1 -1
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +0 -3
- package/lib/modal/index.js +26 -25
- package/lib/modal/modal.css +9 -7
- package/lib/modal/modal.d.ts +0 -1
- package/lib/modal/modal.less +18 -11
- package/lib/modal/modal.variable.css +9 -7
- package/lib/navigation/index.js +7 -9
- package/lib/notify/index.js +1 -1
- package/lib/overflow-title/index.js +9 -10
- package/lib/pagination/index.js +1 -1
- package/lib/plugin-popover/index.js +26 -30
- package/lib/pop-confirm/index.js +4 -5
- package/lib/popover/index.js +26 -30
- package/lib/popover2/index.js +2 -2
- package/lib/process/index.js +4 -4
- package/lib/progress/index.js +5 -6
- package/lib/radio/index.js +6 -7
- package/lib/rate/index.js +1 -1
- package/lib/resize-layout/index.js +1 -1
- package/lib/search-select/index.d.ts +12 -321
- package/lib/search-select/index.js +224 -424
- package/lib/search-select/input.d.ts +2 -6
- package/lib/search-select/search-select.css +6 -20
- package/lib/search-select/search-select.d.ts +4 -107
- package/lib/search-select/search-select.less +12 -16
- package/lib/search-select/search-select.variable.css +6 -20
- package/lib/search-select/selected.d.ts +5 -105
- package/lib/search-select/utils.d.ts +1 -7
- package/lib/select/index.d.ts +9 -32
- package/lib/select/index.js +5 -8
- package/lib/select/select.d.ts +3 -14
- package/lib/shared/index.js +5 -8
- package/lib/sideslider/index.js +4 -4
- package/lib/sideslider/sideslider.css +5 -0
- package/lib/sideslider/sideslider.less +14 -8
- package/lib/sideslider/sideslider.variable.css +5 -0
- package/lib/slider/index.d.ts +3 -3
- package/lib/slider/index.js +19 -20
- package/lib/slider/slider.d.ts +1 -1
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/index.js +4 -4
- package/lib/steps/steps.d.ts +1 -1
- package/lib/swiper/index.js +1 -1
- package/lib/switcher/index.js +1 -1
- package/lib/tab/index.d.ts +4 -4
- package/lib/tab/index.js +3 -4
- package/lib/tab/tab.d.ts +1 -1
- package/lib/table/const.d.ts +1 -1
- package/lib/table/index.d.ts +9 -9
- package/lib/table/index.js +24 -26
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/table.css +96 -42
- package/lib/table/table.d.ts +3 -3
- package/lib/table/table.less +41 -56
- package/lib/table/table.variable.css +96 -42
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.js +2 -2
- package/lib/tag/index.js +1 -1
- package/lib/tag-input/index.js +3 -4
- package/lib/timeline/index.js +0 -1
- package/lib/transfer/index.d.ts +3 -3
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/tree/index.js +10 -12
- package/lib/tree/tree.css +75 -2
- package/lib/tree/tree.variable.css +75 -2
- package/lib/upload/index.d.ts +4 -4
- package/lib/upload/index.js +4 -4
- package/lib/upload/upload.d.ts +1 -1
- package/lib/virtual-render/bk-scrollbar.css +74 -0
- package/lib/virtual-render/bk-scrollbar.d.ts +10 -0
- package/lib/virtual-render/bk-scrollbar.less +93 -0
- package/lib/virtual-render/bk-scrollbar.variable.css +203 -0
- package/lib/virtual-render/index.d.ts +4 -0
- package/lib/virtual-render/index.js +2542 -235
- package/lib/virtual-render/props.d.ts +7 -0
- package/lib/virtual-render/scrollbar-core/can-use-dom.d.ts +2 -0
- package/lib/virtual-render/scrollbar-core/helpers.d.ts +5 -0
- package/lib/virtual-render/scrollbar-core/index.d.ts +213 -0
- package/lib/virtual-render/scrollbar-core/mouse-wheel.d.ts +5 -0
- package/lib/virtual-render/scrollbar-core/scrollbar-width.d.ts +1 -0
- package/lib/virtual-render/use-fix-top.d.ts +2 -7
- package/lib/virtual-render/use-scrollbar.d.ts +23 -0
- package/lib/virtual-render/v-virtual-render.d.ts +2 -1
- package/lib/virtual-render/virtual-render.css +75 -2
- package/lib/virtual-render/virtual-render.d.ts +2 -0
- package/lib/virtual-render/virtual-render.less +2 -2
- package/lib/virtual-render/virtual-render.variable.css +75 -2
- package/package.json +5 -1
package/lib/tab/index.d.ts
CHANGED
@@ -69,8 +69,8 @@ declare const BkTab: {
|
|
69
69
|
onDrag?: (...args: any[]) => any;
|
70
70
|
onChange?: (...args: any[]) => any;
|
71
71
|
onRemove?: (...args: any[]) => any;
|
72
|
-
onAdd?: (...args: any[]) => any;
|
73
72
|
onSort?: (...args: any[]) => any;
|
73
|
+
onAdd?: (...args: any[]) => any;
|
74
74
|
"onAdd-panel"?: (...args: any[]) => any;
|
75
75
|
"onTab-change"?: (...args: any[]) => any;
|
76
76
|
"onRemove-panel"?: (...args: any[]) => any;
|
@@ -151,8 +151,8 @@ declare const BkTab: {
|
|
151
151
|
onDrag?: (...args: any[]) => any;
|
152
152
|
onChange?: (...args: any[]) => any;
|
153
153
|
onRemove?: (...args: any[]) => any;
|
154
|
-
onAdd?: (...args: any[]) => any;
|
155
154
|
onSort?: (...args: any[]) => any;
|
155
|
+
onAdd?: (...args: any[]) => any;
|
156
156
|
"onAdd-panel"?: (...args: any[]) => any;
|
157
157
|
"onTab-change"?: (...args: any[]) => any;
|
158
158
|
"onRemove-panel"?: (...args: any[]) => any;
|
@@ -248,8 +248,8 @@ declare const BkTab: {
|
|
248
248
|
onDrag?: (...args: any[]) => any;
|
249
249
|
onChange?: (...args: any[]) => any;
|
250
250
|
onRemove?: (...args: any[]) => any;
|
251
|
-
onAdd?: (...args: any[]) => any;
|
252
251
|
onSort?: (...args: any[]) => any;
|
252
|
+
onAdd?: (...args: any[]) => any;
|
253
253
|
"onAdd-panel"?: (...args: any[]) => any;
|
254
254
|
"onTab-change"?: (...args: any[]) => any;
|
255
255
|
"onRemove-panel"?: (...args: any[]) => any;
|
@@ -351,8 +351,8 @@ declare const BkTab: {
|
|
351
351
|
onDrag?: (...args: any[]) => any;
|
352
352
|
onChange?: (...args: any[]) => any;
|
353
353
|
onRemove?: (...args: any[]) => any;
|
354
|
-
onAdd?: (...args: any[]) => any;
|
355
354
|
onSort?: (...args: any[]) => any;
|
355
|
+
onAdd?: (...args: any[]) => any;
|
356
356
|
"onAdd-panel"?: (...args: any[]) => any;
|
357
357
|
"onTab-change"?: (...args: any[]) => any;
|
358
358
|
"onRemove-panel"?: (...args: any[]) => any;
|
package/lib/tab/index.js
CHANGED
@@ -70,7 +70,7 @@ function toPrimitive(t, r) {
|
|
70
70
|
|
71
71
|
function toPropertyKey(t) {
|
72
72
|
var i = toPrimitive(t, "string");
|
73
|
-
return "symbol" == _typeof(i) ? i :
|
73
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
74
74
|
}
|
75
75
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
76
76
|
|
@@ -865,8 +865,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
865
865
|
*/
|
866
866
|
|
867
867
|
|
868
|
-
|
869
|
-
/* harmony default export */ const tab_panel = ((0,external_vue_namespaceObject.defineComponent)({
|
868
|
+
/* harmony default export */ const tab_panel = (defineComponent({
|
870
869
|
name: 'TabPanel',
|
871
870
|
props: tabPanelProps,
|
872
871
|
render: function render() {
|
@@ -878,7 +877,7 @@ function tab_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var
|
|
878
877
|
return null;
|
879
878
|
}
|
880
879
|
if (typeof _this.panel === 'function') {
|
881
|
-
return _this.panel(
|
880
|
+
return _this.panel(h);
|
882
881
|
}
|
883
882
|
if (typeof _this.$slots["default"] === 'function') {
|
884
883
|
return _this.$slots["default"](null);
|
package/lib/tab/tab.d.ts
CHANGED
@@ -133,8 +133,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
133
133
|
onDrag?: (...args: any[]) => any;
|
134
134
|
onChange?: (...args: any[]) => any;
|
135
135
|
onRemove?: (...args: any[]) => any;
|
136
|
-
onAdd?: (...args: any[]) => any;
|
137
136
|
onSort?: (...args: any[]) => any;
|
137
|
+
onAdd?: (...args: any[]) => any;
|
138
138
|
"onAdd-panel"?: (...args: any[]) => any;
|
139
139
|
"onTab-change"?: (...args: any[]) => any;
|
140
140
|
"onRemove-panel"?: (...args: any[]) => any;
|
package/lib/table/const.d.ts
CHANGED
package/lib/table/index.d.ts
CHANGED
@@ -584,9 +584,6 @@ declare const BkTable: {
|
|
584
584
|
cellClass: any;
|
585
585
|
headHeight: number;
|
586
586
|
rowKey: any;
|
587
|
-
scrollLoading: boolean | {
|
588
|
-
[key: string]: any;
|
589
|
-
};
|
590
587
|
columnPick: "disabled" | "single" | "multi";
|
591
588
|
columns: import("./props").Column[];
|
592
589
|
stripe: boolean;
|
@@ -601,6 +598,9 @@ declare const BkTable: {
|
|
601
598
|
rowClass: any;
|
602
599
|
rowStyle: any;
|
603
600
|
cellStyle: any;
|
601
|
+
scrollLoading: boolean | {
|
602
|
+
[key: string]: any;
|
603
|
+
};
|
604
604
|
reserveExpand: boolean;
|
605
605
|
selectionKey: string;
|
606
606
|
isSelectedFn: (...args: any[]) => any;
|
@@ -875,9 +875,6 @@ declare const BkTable: {
|
|
875
875
|
cellClass: any;
|
876
876
|
headHeight: number;
|
877
877
|
rowKey: any;
|
878
|
-
scrollLoading: boolean | {
|
879
|
-
[key: string]: any;
|
880
|
-
};
|
881
878
|
columnPick: "disabled" | "single" | "multi";
|
882
879
|
columns: import("./props").Column[];
|
883
880
|
stripe: boolean;
|
@@ -892,6 +889,9 @@ declare const BkTable: {
|
|
892
889
|
rowClass: any;
|
893
890
|
rowStyle: any;
|
894
891
|
cellStyle: any;
|
892
|
+
scrollLoading: boolean | {
|
893
|
+
[key: string]: any;
|
894
|
+
};
|
895
895
|
reserveExpand: boolean;
|
896
896
|
selectionKey: string;
|
897
897
|
isSelectedFn: (...args: any[]) => any;
|
@@ -1246,9 +1246,6 @@ declare const BkTable: {
|
|
1246
1246
|
cellClass: any;
|
1247
1247
|
headHeight: number;
|
1248
1248
|
rowKey: any;
|
1249
|
-
scrollLoading: boolean | {
|
1250
|
-
[key: string]: any;
|
1251
|
-
};
|
1252
1249
|
columnPick: "disabled" | "single" | "multi";
|
1253
1250
|
columns: import("./props").Column[];
|
1254
1251
|
stripe: boolean;
|
@@ -1263,6 +1260,9 @@ declare const BkTable: {
|
|
1263
1260
|
rowClass: any;
|
1264
1261
|
rowStyle: any;
|
1265
1262
|
cellStyle: any;
|
1263
|
+
scrollLoading: boolean | {
|
1264
|
+
[key: string]: any;
|
1265
|
+
};
|
1266
1266
|
reserveExpand: boolean;
|
1267
1267
|
selectionKey: string;
|
1268
1268
|
isSelectedFn: (...args: any[]) => any;
|
package/lib/table/index.js
CHANGED
@@ -101,7 +101,7 @@ function toPrimitive(t, r) {
|
|
101
101
|
|
102
102
|
function toPropertyKey(t) {
|
103
103
|
var i = toPrimitive(t, "string");
|
104
|
-
return "symbol" == typeof_typeof(i) ? i :
|
104
|
+
return "symbol" == typeof_typeof(i) ? i : i + "";
|
105
105
|
}
|
106
106
|
;// CONCATENATED MODULE: ../../node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
107
107
|
|
@@ -295,7 +295,7 @@ var COLUMN_ATTRIBUTE = {
|
|
295
295
|
/**
|
296
296
|
* Y 轴滚动条宽度
|
297
297
|
*/
|
298
|
-
var SCROLLY_WIDTH =
|
298
|
+
var SCROLLY_WIDTH = 0;
|
299
299
|
/**
|
300
300
|
* 默认行高
|
301
301
|
*/
|
@@ -1051,7 +1051,7 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
1051
1051
|
defineProperty_defineProperty(this, "defKey", Symbol('bk-table-cache-def-key'));
|
1052
1052
|
this.storage = new WeakMap();
|
1053
1053
|
}
|
1054
|
-
_createClass(BkTableCache, [{
|
1054
|
+
return _createClass(BkTableCache, [{
|
1055
1055
|
key: "queueStack",
|
1056
1056
|
value: function queueStack(methodName) {
|
1057
1057
|
var _target$methodName;
|
@@ -1085,7 +1085,6 @@ var BkTableCache = /*#__PURE__*/function () {
|
|
1085
1085
|
}
|
1086
1086
|
}
|
1087
1087
|
}]);
|
1088
|
-
return BkTableCache;
|
1089
1088
|
}();
|
1090
1089
|
|
1091
1090
|
;// CONCATENATED MODULE: ../../packages/table/src/events.ts
|
@@ -1496,7 +1495,6 @@ function _toConsumableArray(arr) {
|
|
1496
1495
|
*/
|
1497
1496
|
|
1498
1497
|
|
1499
|
-
|
1500
1498
|
/**
|
1501
1499
|
* 固定列Hooks
|
1502
1500
|
*/
|
@@ -1583,13 +1581,12 @@ function _toConsumableArray(arr) {
|
|
1583
1581
|
* @returns
|
1584
1582
|
*/
|
1585
1583
|
var resolveFixedColumnStyle = function resolveFixedColumnStyle(column) {
|
1586
|
-
var hasScrollY = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
1587
1584
|
if (!column.fixed || isHiddenColumn(column)) {
|
1588
1585
|
return {};
|
1589
1586
|
}
|
1590
1587
|
var fixedOffset = {
|
1591
1588
|
left: 0,
|
1592
|
-
right:
|
1589
|
+
right: -1
|
1593
1590
|
};
|
1594
1591
|
var fixedPos = resolveFixColPos(column);
|
1595
1592
|
fixedOffset[fixedPos] = getPreColumnOffset(fixedPos, column, fixedOffset[fixedPos]);
|
@@ -4808,7 +4805,7 @@ const directives_namespaceObject = directives_x({ ["bkEllipsisInstance"]: () =>
|
|
4808
4805
|
* IN THE SOFTWARE.
|
4809
4806
|
*/
|
4810
4807
|
|
4811
|
-
/* harmony default export */ const table_row = (
|
4808
|
+
/* harmony default export */ const table_row = (defineComponent({
|
4812
4809
|
name: 'TableRow',
|
4813
4810
|
render: function render() {
|
4814
4811
|
var _this$$slots$default, _this$$slots;
|
@@ -4854,8 +4851,7 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4854
4851
|
|
4855
4852
|
|
4856
4853
|
|
4857
|
-
|
4858
|
-
/* harmony default export */ const body_empty = ((0,external_vue_namespaceObject.defineComponent)({
|
4854
|
+
/* harmony default export */ const body_empty = (defineComponent({
|
4859
4855
|
name: 'BodyEmpty',
|
4860
4856
|
props: {
|
4861
4857
|
list: shared_namespaceObject.PropTypes.array.def([]),
|
@@ -4865,13 +4861,13 @@ const exception_less_namespaceObject = exception_less_x({ });
|
|
4865
4861
|
emits: ['change'],
|
4866
4862
|
setup: function setup(props) {
|
4867
4863
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
4868
|
-
var localEmptyText =
|
4864
|
+
var localEmptyText = computed(function () {
|
4869
4865
|
if (props.emptyText === undefined) {
|
4870
4866
|
return t.value.emptyText;
|
4871
4867
|
}
|
4872
4868
|
return props.emptyText;
|
4873
4869
|
});
|
4874
|
-
var type =
|
4870
|
+
var type = computed(function () {
|
4875
4871
|
return props.list.length === 0 ? 'empty' : 'search-empty';
|
4876
4872
|
});
|
4877
4873
|
return function () {
|
@@ -6166,7 +6162,7 @@ function use_render_objectSpread(e) { for (var r = 1; r < arguments.length; r++)
|
|
6166
6162
|
function use_render_isSlot(s) {
|
6167
6163
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0,external_vue_namespaceObject.isVNode)(s);
|
6168
6164
|
}
|
6169
|
-
/* harmony default export */ const use_render = (function (props, context, tableResp,
|
6165
|
+
/* harmony default export */ const use_render = (function (props, context, tableResp, head, root, resetTableHeight) {
|
6170
6166
|
var t = (0,config_provider_namespaceObject.useLocale)('table');
|
6171
6167
|
var uuid = esm_browser_v4();
|
6172
6168
|
var formatData = (0,external_vue_namespaceObject.computed)(function () {
|
@@ -6304,8 +6300,7 @@ function use_render_isSlot(s) {
|
|
6304
6300
|
'--row-height': "".concat(resolvePropVal(config, 'height', ['thead']), "px"),
|
6305
6301
|
backgroundColor: props.thead.color
|
6306
6302
|
};
|
6307
|
-
|
6308
|
-
resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
|
6303
|
+
// const { resolveFixedColumnStyle } = useFixedColumn(props, tableResp, head);
|
6309
6304
|
return (0,external_vue_namespaceObject.createVNode)(external_vue_namespaceObject.Fragment, null, [(0,external_vue_namespaceObject.createVNode)("thead", {
|
6310
6305
|
"style": rowStyle
|
6311
6306
|
}, [(0,external_vue_namespaceObject.createVNode)(table_row, null, {
|
@@ -6314,7 +6309,7 @@ function use_render_isSlot(s) {
|
|
6314
6309
|
var _props$thead$color, _props$thead;
|
6315
6310
|
var _useHeadCell = use_head_cell(props, context, column, tableResp),
|
6316
6311
|
getTH = _useHeadCell.getTH;
|
6317
|
-
var headStyle = Object.assign({}, resolveFixedColumnStyle(column
|
6312
|
+
var headStyle = Object.assign({}, resolveFixedColumnStyle(column), {
|
6318
6313
|
'--background-color': DEF_COLOR[(_props$thead$color = (_props$thead = props.thead) === null || _props$thead === void 0 ? void 0 : _props$thead.color) !== null && _props$thead$color !== void 0 ? _props$thead$color : IHeadColor.DEF1]
|
6319
6314
|
});
|
6320
6315
|
var classList = [getHeadColumnClass(column, index), getColumnCustomClass(column), column.align || props.headerAlign || props.align];
|
@@ -6390,13 +6385,14 @@ function use_render_isSlot(s) {
|
|
6390
6385
|
return result;
|
6391
6386
|
})]);
|
6392
6387
|
};
|
6393
|
-
var
|
6394
|
-
resolveFixedColumnStyle =
|
6388
|
+
var _useFixedColumn = use_fixed_column(props, tableResp, head),
|
6389
|
+
resolveFixedColumnStyle = _useFixedColumn.resolveFixedColumnStyle;
|
6395
6390
|
var getRowRender = function getRowRender(row, rowIndex, preRow, rows, rowSpanMap, needRowSpan) {
|
6396
6391
|
var isChild = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : false;
|
6397
6392
|
var rowLength = rows.length;
|
6398
6393
|
var rowStyle = [].concat(_toConsumableArray(formatPropAsArray(props.rowStyle, [row, rowIndex])), [{
|
6399
|
-
'--row-height': "".concat(getRowHeight(row, rowIndex), "px")
|
6394
|
+
'--row-height': "".concat(getRowHeight(row, rowIndex), "px"),
|
6395
|
+
'--scroll-x': "".concat(tableResp.formatData.layout.translateX, "px")
|
6400
6396
|
}]);
|
6401
6397
|
var rowClass = [].concat(_toConsumableArray(formatPropAsArray(props.rowClass, [row, rowIndex])), ["hover-".concat(props.rowHover), rowIndex % 2 === 1 && props.stripe ? 'stripe-row' : '']);
|
6402
6398
|
var rowId = tableResp.getRowAttribute(row, TABLE_ROW_ATTRIBUTE.ROW_UID);
|
@@ -6811,7 +6807,6 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6811
6807
|
wrapperStyle = _useClass.wrapperStyle,
|
6812
6808
|
contentStyle = _useClass.contentStyle,
|
6813
6809
|
headStyle = _useClass.headStyle,
|
6814
|
-
hasScrollYRef = _useClass.hasScrollYRef,
|
6815
6810
|
hasFooter = _useClass.hasFooter,
|
6816
6811
|
footerStyle = _useClass.footerStyle,
|
6817
6812
|
tableBodyClass = _useClass.tableBodyClass,
|
@@ -6832,17 +6827,17 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6832
6827
|
updateFixClass = _useFixedColumn.updateFixClass;
|
6833
6828
|
var _usePrefix = (0,config_provider_namespaceObject.usePrefix)(),
|
6834
6829
|
resolveClassName = _usePrefix.resolveClassName;
|
6835
|
-
|
6836
|
-
|
6837
|
-
|
6838
|
-
};
|
6839
|
-
});
|
6830
|
+
// const styleRef = computed(() => ({
|
6831
|
+
// hasScrollY: hasScrollYRef.value,
|
6832
|
+
// }));
|
6840
6833
|
use_observer_resize(root, function () {
|
6841
6834
|
(0,external_vue_namespaceObject.nextTick)(function () {
|
6842
6835
|
resolveFixedColumns(tableOffsetRight.value);
|
6843
6836
|
});
|
6844
6837
|
});
|
6845
|
-
var _useRender = use_render(props, ctx, tableSchema,
|
6838
|
+
var _useRender = use_render(props, ctx, tableSchema,
|
6839
|
+
// styleRef,
|
6840
|
+
head, root, resetTableHeight),
|
6846
6841
|
renderTableBodySchema = _useRender.renderTableBodySchema,
|
6847
6842
|
renderTableFooter = _useRender.renderTableFooter,
|
6848
6843
|
renderTableHeadSchema = _useRender.renderTableHeadSchema;
|
@@ -6984,6 +6979,9 @@ function table_objectSpread(e) { for (var r = 1; r < arguments.length; r++) { va
|
|
6984
6979
|
"throttleDelay": 120,
|
6985
6980
|
"scrollEvent": true,
|
6986
6981
|
"rowKey": props.rowKey,
|
6982
|
+
"scrollbar": {
|
6983
|
+
enabled: true
|
6984
|
+
},
|
6987
6985
|
"enabled": props.virtualEnabled,
|
6988
6986
|
"keepAlive": true
|
6989
6987
|
}), {
|
@@ -6,7 +6,7 @@ import { ITableResponse } from '../use-attributes';
|
|
6
6
|
*/
|
7
7
|
declare const _default: (props: TablePropTypes, tableResp: ITableResponse, head?: Ref<HTMLElement>) => {
|
8
8
|
fixedWrapperClass: string;
|
9
|
-
resolveFixedColumnStyle: (column: Column
|
9
|
+
resolveFixedColumnStyle: (column: Column) => {
|
10
10
|
[x: string]: string;
|
11
11
|
};
|
12
12
|
resolveFixedColumns: (tableOffsetRight: any) => void;
|
package/lib/table/table.css
CHANGED
@@ -15,11 +15,84 @@
|
|
15
15
|
.bk-F-scroll-y::-webkit-scrollbar-thumb {
|
16
16
|
border-radius: 4px;
|
17
17
|
}
|
18
|
+
.bk-scrollbar-wrapper {
|
19
|
+
position: relative;
|
20
|
+
overflow: hidden;
|
21
|
+
}
|
22
|
+
.bk-scrollbar-wrapper .bk-scroll-content-el {
|
23
|
+
display: inline-flex;
|
24
|
+
flex-direction: column;
|
25
|
+
}
|
26
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
27
|
+
z-index: 1;
|
28
|
+
position: absolute;
|
29
|
+
right: 0;
|
30
|
+
bottom: 0;
|
31
|
+
pointer-events: none;
|
32
|
+
overflow: hidden;
|
33
|
+
}
|
34
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
35
|
+
background-color: #F0F1F5;
|
36
|
+
cursor: pointer;
|
37
|
+
}
|
38
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
39
|
+
background-color: #979BA5;
|
40
|
+
}
|
41
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
42
|
+
top: 0;
|
43
|
+
width: 11px;
|
44
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
45
|
+
}
|
46
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
47
|
+
left: 0;
|
48
|
+
height: 11px;
|
49
|
+
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
50
|
+
}
|
51
|
+
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
52
|
+
right: auto;
|
53
|
+
left: 0;
|
54
|
+
top: 0;
|
55
|
+
bottom: 0;
|
56
|
+
min-height: 0;
|
57
|
+
min-width: 10px;
|
58
|
+
width: auto;
|
59
|
+
}
|
60
|
+
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
61
|
+
pointer-events: none;
|
62
|
+
-webkit-touch-callout: none;
|
63
|
+
-webkit-user-select: none;
|
64
|
+
-khtml-user-select: none;
|
65
|
+
-moz-user-select: none;
|
66
|
+
-ms-user-select: none;
|
67
|
+
user-select: none;
|
68
|
+
}
|
69
|
+
.bk-scrollbar-wrapper .bk-scrollbar {
|
70
|
+
position: absolute;
|
71
|
+
left: 0;
|
72
|
+
right: 0;
|
73
|
+
min-height: 10px;
|
74
|
+
}
|
75
|
+
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
76
|
+
position: absolute;
|
77
|
+
content: '';
|
78
|
+
background: #DcDEE5;
|
79
|
+
border-radius: 7px;
|
80
|
+
left: 2px;
|
81
|
+
right: 2px;
|
82
|
+
top: 2px;
|
83
|
+
bottom: 2px;
|
84
|
+
opacity: 0;
|
85
|
+
transition: opacity 0.2s 0.5s linear;
|
86
|
+
}
|
87
|
+
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
88
|
+
opacity: 0.5;
|
89
|
+
transition-delay: 0s;
|
90
|
+
transition-duration: 0s;
|
91
|
+
}
|
18
92
|
.bk-virtual-render {
|
19
93
|
position: relative;
|
20
94
|
}
|
21
|
-
.bk-virtual-render .bk-virtual-content
|
22
|
-
.bk-virtual-render.bk-virtual-content {
|
95
|
+
.bk-virtual-render .bk-virtual-content {
|
23
96
|
position: absolute;
|
24
97
|
top: 0;
|
25
98
|
bottom: 0;
|
@@ -997,9 +1070,9 @@
|
|
997
1070
|
}
|
998
1071
|
.bk-table {
|
999
1072
|
position: relative;
|
1073
|
+
width: 100%;
|
1000
1074
|
height: auto;
|
1001
1075
|
overflow: hidden;
|
1002
|
-
width: 100%;
|
1003
1076
|
}
|
1004
1077
|
.bk-table-flex {
|
1005
1078
|
display: flex;
|
@@ -1015,19 +1088,9 @@
|
|
1015
1088
|
}
|
1016
1089
|
.bk-table .bk-table-body {
|
1017
1090
|
position: relative;
|
1018
|
-
overflow:
|
1019
|
-
scrollbar-gutter: stable;
|
1091
|
+
overflow: hidden;
|
1020
1092
|
border-bottom: 1px solid #dcdee5;
|
1021
1093
|
}
|
1022
|
-
.bk-table .bk-table-body::-webkit-scrollbar {
|
1023
|
-
width: 5px;
|
1024
|
-
height: 6px;
|
1025
|
-
}
|
1026
|
-
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1027
|
-
background: #dcdee5;
|
1028
|
-
border-radius: 10px;
|
1029
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1030
|
-
}
|
1031
1094
|
.bk-table .bk-table-body .prepend-row {
|
1032
1095
|
transform: translateX(var(--prepend-left));
|
1033
1096
|
}
|
@@ -1054,17 +1117,6 @@
|
|
1054
1117
|
background: white;
|
1055
1118
|
transform: translateZ(0);
|
1056
1119
|
}
|
1057
|
-
.bk-table .bk-table-head::-webkit-scrollbar,
|
1058
|
-
.bk-table .bk-table-body::-webkit-scrollbar {
|
1059
|
-
width: 5px;
|
1060
|
-
height: 5px;
|
1061
|
-
}
|
1062
|
-
.bk-table .bk-table-head::-webkit-scrollbar-thumb,
|
1063
|
-
.bk-table .bk-table-body::-webkit-scrollbar-thumb {
|
1064
|
-
background: #ddd;
|
1065
|
-
border-radius: 20px;
|
1066
|
-
box-shadow: inset 0 0 6px rgba(204, 204, 204, 0.3);
|
1067
|
-
}
|
1068
1120
|
.bk-table .bk-table-head.__is-empty,
|
1069
1121
|
.bk-table .bk-table-body.__is-empty {
|
1070
1122
|
display: flex;
|
@@ -1117,8 +1169,8 @@
|
|
1117
1169
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1118
1170
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1119
1171
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1120
|
-
font-size: 14px;
|
1121
1172
|
height: 100%;
|
1173
|
+
font-size: 14px;
|
1122
1174
|
}
|
1123
1175
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1124
1176
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1243,7 +1295,7 @@
|
|
1243
1295
|
.bk-table .bk-table-body table thead th .cell {
|
1244
1296
|
display: flex;
|
1245
1297
|
align-items: center;
|
1246
|
-
height: calc(var(--row-height) -
|
1298
|
+
height: calc(var(--row-height) - 2px);
|
1247
1299
|
color: #313238;
|
1248
1300
|
}
|
1249
1301
|
.bk-table .bk-table-head table thead th.active,
|
@@ -1260,28 +1312,27 @@
|
|
1260
1312
|
.bk-table .bk-table-head table tbody tr td,
|
1261
1313
|
.bk-table .bk-table-body table tbody tr td {
|
1262
1314
|
background-color: #fff;
|
1315
|
+
border-top: 1px solid transparent;
|
1316
|
+
border-bottom: 1px solid transparent;
|
1317
|
+
border-right: 1px solid transparent;
|
1318
|
+
box-sizing: border-box;
|
1263
1319
|
}
|
1264
1320
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1265
1321
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1266
1322
|
padding-bottom: 30px;
|
1267
1323
|
}
|
1268
|
-
.bk-table .bk-table-head table tbody tr td.is-last,
|
1269
|
-
.bk-table .bk-table-body table tbody tr td.is-last {
|
1270
|
-
border-bottom: none;
|
1271
|
-
}
|
1272
1324
|
.bk-table .bk-table-head table tbody tr td .cell,
|
1273
1325
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1274
1326
|
display: block;
|
1275
1327
|
width: 100%;
|
1276
|
-
height:
|
1277
|
-
line-height: calc(var(--row-height) - 1px);
|
1328
|
+
line-height: calc(var(--row-height) - 2px);
|
1278
1329
|
box-sizing: border-box;
|
1279
1330
|
align-items: center;
|
1280
1331
|
}
|
1281
1332
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1282
1333
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1283
|
-
cursor: move;
|
1284
1334
|
text-align: center;
|
1335
|
+
cursor: move;
|
1285
1336
|
}
|
1286
1337
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1287
1338
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1294,7 +1345,6 @@
|
|
1294
1345
|
.bk-table .bk-table-head {
|
1295
1346
|
position: relative;
|
1296
1347
|
z-index: 2;
|
1297
|
-
scrollbar-gutter: stable;
|
1298
1348
|
overflow: hidden;
|
1299
1349
|
background-color: var(--background-color);
|
1300
1350
|
}
|
@@ -1344,10 +1394,10 @@
|
|
1344
1394
|
.bk-table.bordered-row .bk-table-head {
|
1345
1395
|
border-bottom: 1px solid #dcdee5;
|
1346
1396
|
}
|
1347
|
-
.bk-table.bordered-row td {
|
1348
|
-
border-bottom:
|
1397
|
+
.bk-table.bordered-row .bk-table-body tbody tr td {
|
1398
|
+
border-bottom-color: #dcdee5;
|
1349
1399
|
}
|
1350
|
-
.bk-table.bordered-row tr:last-child td {
|
1400
|
+
.bk-table.bordered-row .bk-table-body tbody tr:last-child td {
|
1351
1401
|
border-bottom: none;
|
1352
1402
|
}
|
1353
1403
|
.bk-table.bordered-outer {
|
@@ -1368,14 +1418,18 @@
|
|
1368
1418
|
.bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
|
1369
1419
|
border-bottom: 1px solid #dcdee5;
|
1370
1420
|
}
|
1371
|
-
.bk-table.bordered-col th
|
1372
|
-
.bk-table.bordered-col td {
|
1421
|
+
.bk-table.bordered-col th {
|
1373
1422
|
border-right: 1px solid #dcdee5;
|
1374
1423
|
}
|
1375
|
-
.bk-table.bordered-col th:last-child
|
1376
|
-
.bk-table.bordered-col td:last-child {
|
1424
|
+
.bk-table.bordered-col th:last-child {
|
1377
1425
|
border-right: none;
|
1378
1426
|
}
|
1427
|
+
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1428
|
+
border-right-color: #dcdee5;
|
1429
|
+
}
|
1430
|
+
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1431
|
+
border-right-color: transparent;
|
1432
|
+
}
|
1379
1433
|
.bk-table th,
|
1380
1434
|
.bk-table td {
|
1381
1435
|
border-right: 1px solid transparent;
|
package/lib/table/table.d.ts
CHANGED
@@ -496,9 +496,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
496
496
|
cellClass: any;
|
497
497
|
headHeight: number;
|
498
498
|
rowKey: any;
|
499
|
-
scrollLoading: boolean | {
|
500
|
-
[key: string]: any;
|
501
|
-
};
|
502
499
|
columnPick: "disabled" | "single" | "multi";
|
503
500
|
columns: Column[];
|
504
501
|
stripe: boolean;
|
@@ -513,6 +510,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
513
510
|
rowClass: any;
|
514
511
|
rowStyle: any;
|
515
512
|
cellStyle: any;
|
513
|
+
scrollLoading: boolean | {
|
514
|
+
[key: string]: any;
|
515
|
+
};
|
516
516
|
reserveExpand: boolean;
|
517
517
|
selectionKey: string;
|
518
518
|
isSelectedFn: (...args: any[]) => any;
|