bkui-vue 2.0.1-beta.7 → 2.0.1-beta.70.search.1
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 +71 -71
- package/dist/index.esm.js +19703 -20587
- package/dist/index.umd.js +71 -71
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/cascader/cascader.css +3 -3
- package/lib/cascader/cascader.less +3 -3
- package/lib/cascader/cascader.variable.css +3 -3
- package/lib/cascader/index.js +4 -4
- package/lib/collapse/collapse.css +0 -11
- package/lib/collapse/collapse.d.ts +0 -11
- package/lib/collapse/collapse.less +1 -15
- package/lib/collapse/collapse.variable.css +0 -11
- package/lib/collapse/index.d.ts +0 -23
- package/lib/collapse/index.js +1 -9
- package/lib/collapse/props.d.ts +0 -8
- package/lib/color-picker/color-picker.css +3 -3
- package/lib/color-picker/color-picker.less +3 -3
- package/lib/color-picker/color-picker.variable.css +3 -3
- package/lib/color-picker/index.js +1 -1
- package/lib/components.d.ts +0 -1
- package/lib/components.js +0 -1
- package/lib/date-picker/base/year-table.d.ts +2 -2
- package/lib/date-picker/index.js +36 -111
- package/lib/date-picker/interface.d.ts +1 -1
- package/lib/date-picker/panel/date-range.d.ts +63 -1
- package/lib/date-picker/utils.d.ts +0 -4
- package/lib/dialog/dialog.css +84 -135
- package/lib/dialog/dialog.d.ts +132 -38
- package/lib/dialog/dialog.less +76 -9
- package/lib/dialog/dialog.variable.css +84 -135
- package/lib/dialog/index.d.ts +311 -96
- package/lib/dialog/index.js +221 -197
- package/lib/dialog/props.d.ts +47 -10
- package/lib/info-box/index.d.ts +2 -2
- package/lib/info-box/index.js +173 -328
- package/lib/info-box/info-box.css +7 -63
- package/lib/info-box/info-box.d.ts +16 -18
- package/lib/info-box/info-box.less +14 -76
- package/lib/info-box/info-box.variable.css +7 -63
- package/lib/input/index.js +1 -2
- package/lib/modal/hooks.d.ts +1 -1
- package/lib/modal/index.d.ts +345 -29
- package/lib/modal/index.js +703 -218
- package/lib/modal/modal.css +32 -131
- package/lib/modal/modal.d.ts +132 -11
- package/lib/modal/modal.less +29 -83
- package/lib/modal/modal.variable.css +32 -131
- package/lib/modal/props.mixin.d.ts +52 -4
- package/lib/overflow-title/index.js +52 -46
- package/lib/radio/index.d.ts +0 -29
- package/lib/radio/index.js +16 -34
- package/lib/radio/radio-button.d.ts +0 -10
- package/lib/radio/radio-group.d.ts +0 -10
- package/lib/radio/radio.d.ts +0 -10
- package/lib/rate/rate.css +0 -27
- package/lib/rate/rate.less +0 -33
- package/lib/rate/rate.variable.css +0 -27
- package/lib/rate/star.css +27 -0
- package/lib/rate/star.less +34 -0
- package/lib/{scrollbar/scrollbar.variable.css → rate/star.variable.css} +19 -67
- package/lib/search-select/index.d.ts +58 -78
- package/lib/search-select/index.js +311 -211
- package/lib/search-select/input.d.ts +6 -5
- package/lib/search-select/menu.d.ts +1 -1
- package/lib/search-select/search-select.d.ts +19 -43
- package/lib/search-select/selected.d.ts +12 -10
- package/lib/search-select/utils.d.ts +6 -6
- package/lib/select/index.d.ts +19 -0
- package/lib/select/index.js +21 -8
- package/lib/select/select.css +2 -1
- package/lib/select/select.d.ts +9 -0
- package/lib/select/select.less +2 -1
- package/lib/select/select.variable.css +2 -1
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +48 -4
- package/lib/shared/mask.d.ts +11 -0
- package/lib/sideslider/index.d.ts +218 -42
- package/lib/sideslider/index.js +40 -65
- package/lib/sideslider/sideslider.css +86 -17
- package/lib/sideslider/sideslider.d.ts +104 -20
- package/lib/sideslider/sideslider.less +107 -27
- package/lib/sideslider/sideslider.variable.css +86 -17
- package/lib/slider/index.d.ts +0 -19
- package/lib/slider/index.js +5 -45
- package/lib/slider/slider.css +0 -14
- package/lib/slider/slider.d.ts +0 -9
- package/lib/slider/slider.less +0 -15
- package/lib/slider/slider.variable.css +0 -14
- package/lib/styles/index.d.ts +1 -0
- package/lib/table/components/table-cell.d.ts +2 -3
- package/lib/table/components/table-column.d.ts +119 -3
- package/lib/table/const.d.ts +4 -4
- package/lib/table/index.d.ts +107 -26
- package/lib/table/index.js +578 -17818
- package/lib/table/plugins/head-filter.css +4 -8
- package/lib/table/plugins/head-filter.less +3 -6
- package/lib/table/plugins/head-filter.variable.css +4 -8
- package/lib/table/plugins/use-active-columns.d.ts +2 -2
- package/lib/table/plugins/use-fixed-column.d.ts +1 -1
- package/lib/table/plugins/use-pagination.d.ts +1 -3
- package/lib/table/props.d.ts +4 -12
- package/lib/table/table.css +46 -106
- package/lib/table/table.d.ts +0 -11
- package/lib/table/table.less +58 -43
- package/lib/table/table.variable.css +46 -106
- package/lib/table/use-attributes.d.ts +1 -2
- package/lib/table/use-column.d.ts +10 -9
- package/lib/table/use-common.d.ts +1 -1
- package/lib/table/use-render.d.ts +1 -1
- package/lib/table-column/index.d.ts +299 -9
- package/lib/table-column/index.js +283 -25
- package/lib/transfer/index.js +14 -16
- package/lib/transfer/transfer.css +9 -9
- package/lib/transfer/transfer.less +3 -3
- package/lib/transfer/transfer.variable.css +9 -9
- package/lib/tree/constant.d.ts +1 -3
- package/lib/tree/index.d.ts +0 -44
- package/lib/tree/index.js +35 -17554
- package/lib/tree/props.d.ts +0 -18
- package/lib/tree/tree.css +2 -76
- package/lib/tree/tree.d.ts +2 -28
- package/lib/tree/tree.less +1 -1
- package/lib/tree/tree.variable.css +2 -76
- package/lib/tree/use-node-attribute.d.ts +0 -9
- package/lib/tree/util.d.ts +1 -1
- package/lib/upload/index.js +9 -16
- package/lib/upload/upload.type.d.ts +1 -1
- package/lib/virtual-render/index.d.ts +0 -27
- package/lib/virtual-render/index.js +80 -295
- package/lib/virtual-render/props.d.ts +0 -16
- package/lib/virtual-render/use-fix-top.d.ts +7 -2
- package/lib/virtual-render/v-virtual-render.d.ts +1 -2
- package/lib/virtual-render/virtual-render.css +2 -76
- package/lib/virtual-render/virtual-render.d.ts +0 -13
- package/lib/virtual-render/virtual-render.less +3 -3
- package/lib/virtual-render/virtual-render.variable.css +2 -76
- package/package.json +1 -1
- package/lib/info-box/render-component.d.ts +0 -4
- package/lib/modal/mask.d.ts +0 -6
- package/lib/scrollbar/index.d.ts +0 -15
- package/lib/scrollbar/index.js +0 -18763
- package/lib/scrollbar/scrollbar-core/can-use-dom.d.ts +0 -2
- package/lib/scrollbar/scrollbar-core/helpers.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/index.d.ts +0 -241
- package/lib/scrollbar/scrollbar-core/mouse-wheel.d.ts +0 -5
- package/lib/scrollbar/scrollbar-core/scrollbar-width.d.ts +0 -1
- package/lib/scrollbar/scrollbar.css +0 -75
- package/lib/scrollbar/scrollbar.less +0 -94
- package/lib/table/plugins/use-column-template.d.ts +0 -7
- package/lib/table/plugins/use-shift-key.d.ts +0 -13
- package/lib/tree/use-intersection-observer.d.ts +0 -27
- package/lib/virtual-render/use-scrollbar.d.ts +0 -24
@@ -27,6 +27,10 @@
|
|
27
27
|
max-width: 300px;
|
28
28
|
min-width: 200px;
|
29
29
|
}
|
30
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
31
|
+
max-height: 200px;
|
32
|
+
min-height: 40px;
|
33
|
+
}
|
30
34
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
31
35
|
width: 100%;
|
32
36
|
height: 32px;
|
@@ -39,19 +43,11 @@
|
|
39
43
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
40
44
|
background: #f0f1f5;
|
41
45
|
}
|
42
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
43
|
-
text-overflow: ellipsis;
|
44
|
-
white-space: nowrap;
|
45
|
-
overflow: hidden;
|
46
|
-
width: 100%;
|
47
|
-
}
|
48
46
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
49
47
|
background: #f0f1f5;
|
50
48
|
}
|
51
49
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
52
50
|
white-space: nowrap;
|
53
|
-
text-overflow: ellipsis;
|
54
|
-
overflow: hidden;
|
55
51
|
}
|
56
52
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
57
53
|
margin-left: 0;
|
@@ -35,6 +35,9 @@
|
|
35
35
|
min-width: 200px;
|
36
36
|
|
37
37
|
.content-items {
|
38
|
+
max-height: 200px;
|
39
|
+
min-height: 40px;
|
40
|
+
|
38
41
|
.list-item {
|
39
42
|
width: 100%;
|
40
43
|
height: 32px;
|
@@ -49,10 +52,6 @@
|
|
49
52
|
}
|
50
53
|
|
51
54
|
label {
|
52
|
-
text-overflow: ellipsis;
|
53
|
-
white-space: nowrap;
|
54
|
-
overflow: hidden;
|
55
|
-
width: 100%;
|
56
55
|
&:hover {
|
57
56
|
background: #f0f1f5;
|
58
57
|
}
|
@@ -60,8 +59,6 @@
|
|
60
59
|
|
61
60
|
.@{bk-prefix}-checkbox-label {
|
62
61
|
white-space: nowrap;
|
63
|
-
text-overflow: ellipsis;
|
64
|
-
overflow: hidden;
|
65
62
|
}
|
66
63
|
|
67
64
|
.@{bk-prefix}-checkbox {
|
@@ -156,6 +156,10 @@
|
|
156
156
|
max-width: 300px;
|
157
157
|
min-width: 200px;
|
158
158
|
}
|
159
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
160
|
+
max-height: 200px;
|
161
|
+
min-height: 40px;
|
162
|
+
}
|
159
163
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
160
164
|
width: 100%;
|
161
165
|
height: 32px;
|
@@ -168,19 +172,11 @@
|
|
168
172
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
169
173
|
background: #f0f1f5;
|
170
174
|
}
|
171
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
172
|
-
text-overflow: ellipsis;
|
173
|
-
white-space: nowrap;
|
174
|
-
overflow: hidden;
|
175
|
-
width: 100%;
|
176
|
-
}
|
177
175
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
178
176
|
background: #f0f1f5;
|
179
177
|
}
|
180
178
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
181
179
|
white-space: nowrap;
|
182
|
-
text-overflow: ellipsis;
|
183
|
-
overflow: hidden;
|
184
180
|
}
|
185
181
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
186
182
|
margin-left: 0;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { TablePropTypes } from '../props';
|
1
|
+
import { Column, TablePropTypes } from '../props';
|
2
2
|
/**
|
3
3
|
* 处理Props中的ActiveColumn,解析为统一的数组格式
|
4
4
|
* @param props
|
@@ -10,7 +10,7 @@ export declare const resolveActiveColumns: (props: TablePropTypes) => number[];
|
|
10
10
|
* @param props
|
11
11
|
* @returns
|
12
12
|
*/
|
13
|
-
declare const _default: (props: TablePropTypes) => {
|
13
|
+
declare const _default: (props: TablePropTypes, targetColumns: Column[]) => {
|
14
14
|
activeColumns: any[];
|
15
15
|
};
|
16
16
|
export default _default;
|
@@ -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, hasScrollY?: boolean) => {
|
10
10
|
[x: string]: string;
|
11
11
|
};
|
12
12
|
resolveFixedColumns: (tableOffsetRight: any) => void;
|
@@ -14,10 +14,8 @@ declare const _default: (props: TablePropTypes) => {
|
|
14
14
|
resolvePageData: (filterFn?: any, sortFn?: any, column?: Column, type?: string, sortScope?: any, multiCol?: any) => void;
|
15
15
|
resolveIndexData: () => Promise<void>;
|
16
16
|
resolvePageDataBySortList: (multiCol?: any) => void;
|
17
|
-
handlePaginationChange: (filterFn?: any, sortFn?: any) => void;
|
18
17
|
resetStartEndIndex: () => void;
|
19
|
-
|
20
|
-
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[], origin?: any) => void;
|
18
|
+
multiFilter: (filterFnList: ((row: any, index: any, data: any) => void)[]) => void;
|
21
19
|
sort: (sourceData: any[], sortFn: any, column: Column, type: string, sortScope: SortScope) => void;
|
22
20
|
};
|
23
21
|
export default _default;
|
package/lib/table/props.d.ts
CHANGED
@@ -44,8 +44,8 @@ export declare enum FixedEnum {
|
|
44
44
|
}
|
45
45
|
export declare const fixedType: import("vue-types").VueTypeValidableDef<"right" | "left">;
|
46
46
|
export type IOverflowTooltipOption = {
|
47
|
-
content:
|
48
|
-
disabled?: (
|
47
|
+
content: string | Function;
|
48
|
+
disabled?: (col: Column, row: any) => boolean | boolean;
|
49
49
|
watchCellResize?: boolean;
|
50
50
|
mode?: `${OverflowModeEnum}`;
|
51
51
|
popoverOption?: any;
|
@@ -165,7 +165,7 @@ export type Column = {
|
|
165
165
|
width?: number | string;
|
166
166
|
minWidth?: number | string;
|
167
167
|
columnKey?: string;
|
168
|
-
showOverflowTooltip?: IOverflowTooltip;
|
168
|
+
showOverflowTooltip?: boolean | IOverflowTooltip;
|
169
169
|
type?: string;
|
170
170
|
fixed?: string | boolean;
|
171
171
|
resizable?: boolean;
|
@@ -459,7 +459,7 @@ export declare const tableProps: {
|
|
459
459
|
/**
|
460
460
|
* 提供自定义判定当前行是否选中
|
461
461
|
* 如果设置了此属性,其他判定均不生效
|
462
|
-
* ({ row }) => bool
|
462
|
+
* ({ row, cell, data }) => bool
|
463
463
|
*/
|
464
464
|
isSelectedFn: import("vue-types").VueTypeValidableDef<(...args: any[]) => any> & {
|
465
465
|
default: (...args: any[]) => any;
|
@@ -560,13 +560,5 @@ export declare const tableProps: {
|
|
560
560
|
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
561
561
|
default: any;
|
562
562
|
};
|
563
|
-
/**
|
564
|
-
* 是否支持shift键多行选择
|
565
|
-
*/
|
566
|
-
shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
|
567
|
-
default: boolean;
|
568
|
-
} & {
|
569
|
-
default: boolean;
|
570
|
-
};
|
571
563
|
};
|
572
564
|
export {};
|
package/lib/table/table.css
CHANGED
@@ -15,85 +15,11 @@
|
|
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-scrollbar-content-el {
|
23
|
-
display: inline-flex;
|
24
|
-
flex-direction: column;
|
25
|
-
width: 100%;
|
26
|
-
}
|
27
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track {
|
28
|
-
z-index: 1;
|
29
|
-
position: absolute;
|
30
|
-
right: 0;
|
31
|
-
bottom: 0;
|
32
|
-
pointer-events: none;
|
33
|
-
overflow: hidden;
|
34
|
-
}
|
35
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover {
|
36
|
-
background-color: #F0F1F5;
|
37
|
-
cursor: pointer;
|
38
|
-
}
|
39
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-hover .bk-scrollbar::before {
|
40
|
-
background-color: #979BA5;
|
41
|
-
}
|
42
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-vertical {
|
43
|
-
top: 0;
|
44
|
-
width: 8px;
|
45
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
46
|
-
}
|
47
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal {
|
48
|
-
left: 0;
|
49
|
-
height: 8px;
|
50
|
-
transform: translate(var(--scroll-offset-x), var(--scroll-offset-y));
|
51
|
-
}
|
52
|
-
.bk-scrollbar-wrapper .bk-scrollbar-track.bk-scrollbar-horizontal.bk-scrollbar {
|
53
|
-
right: auto;
|
54
|
-
left: 0;
|
55
|
-
top: 0;
|
56
|
-
bottom: 0;
|
57
|
-
min-height: 0;
|
58
|
-
min-width: 8px;
|
59
|
-
width: auto;
|
60
|
-
}
|
61
|
-
.bk-scrollbar-wrapper .bk-scrollbar-dragging {
|
62
|
-
pointer-events: none;
|
63
|
-
-webkit-touch-callout: none;
|
64
|
-
-webkit-user-select: none;
|
65
|
-
-khtml-user-select: none;
|
66
|
-
-moz-user-select: none;
|
67
|
-
-ms-user-select: none;
|
68
|
-
user-select: none;
|
69
|
-
}
|
70
|
-
.bk-scrollbar-wrapper .bk-scrollbar {
|
71
|
-
position: absolute;
|
72
|
-
left: 0;
|
73
|
-
right: 0;
|
74
|
-
min-height: 8px;
|
75
|
-
}
|
76
|
-
.bk-scrollbar-wrapper .bk-scrollbar::before {
|
77
|
-
position: absolute;
|
78
|
-
content: '';
|
79
|
-
background: #DCDEE5;
|
80
|
-
border-radius: 6px;
|
81
|
-
left: 1px;
|
82
|
-
right: 1px;
|
83
|
-
top: 1px;
|
84
|
-
bottom: 1px;
|
85
|
-
opacity: 0;
|
86
|
-
transition: opacity 0.2s 0.9s linear;
|
87
|
-
}
|
88
|
-
.bk-scrollbar-wrapper .bk-scrollbar.bk-scrollbar-visible::before {
|
89
|
-
opacity: 0.9;
|
90
|
-
transition-delay: 0s;
|
91
|
-
transition-duration: 0s;
|
92
|
-
}
|
93
18
|
.bk-virtual-render {
|
94
19
|
position: relative;
|
95
20
|
}
|
96
|
-
.bk-virtual-render .bk-virtual-content
|
21
|
+
.bk-virtual-render .bk-virtual-content,
|
22
|
+
.bk-virtual-render.bk-virtual-content {
|
97
23
|
position: absolute;
|
98
24
|
top: 0;
|
99
25
|
bottom: 0;
|
@@ -865,6 +791,10 @@
|
|
865
791
|
max-width: 300px;
|
866
792
|
min-width: 200px;
|
867
793
|
}
|
794
|
+
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items {
|
795
|
+
max-height: 200px;
|
796
|
+
min-height: 40px;
|
797
|
+
}
|
868
798
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item {
|
869
799
|
width: 100%;
|
870
800
|
height: 32px;
|
@@ -877,19 +807,11 @@
|
|
877
807
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item:hover {
|
878
808
|
background: #f0f1f5;
|
879
809
|
}
|
880
|
-
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label {
|
881
|
-
text-overflow: ellipsis;
|
882
|
-
white-space: nowrap;
|
883
|
-
overflow: hidden;
|
884
|
-
width: 100%;
|
885
|
-
}
|
886
810
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item label:hover {
|
887
811
|
background: #f0f1f5;
|
888
812
|
}
|
889
813
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox-label {
|
890
814
|
white-space: nowrap;
|
891
|
-
text-overflow: ellipsis;
|
892
|
-
overflow: hidden;
|
893
815
|
}
|
894
816
|
.bk-popover.bk-pop2-content.bk-table-head-filter .content-list .content-items .list-item .bk-checkbox {
|
895
817
|
margin-left: 0;
|
@@ -1075,9 +997,9 @@
|
|
1075
997
|
}
|
1076
998
|
.bk-table {
|
1077
999
|
position: relative;
|
1078
|
-
width: 100%;
|
1079
1000
|
height: auto;
|
1080
1001
|
overflow: hidden;
|
1002
|
+
width: 100%;
|
1081
1003
|
}
|
1082
1004
|
.bk-table-flex {
|
1083
1005
|
display: flex;
|
@@ -1093,9 +1015,19 @@
|
|
1093
1015
|
}
|
1094
1016
|
.bk-table .bk-table-body {
|
1095
1017
|
position: relative;
|
1096
|
-
overflow:
|
1018
|
+
overflow: auto;
|
1019
|
+
scrollbar-gutter: stable;
|
1097
1020
|
border-bottom: 1px solid #dcdee5;
|
1098
1021
|
}
|
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
|
+
}
|
1099
1031
|
.bk-table .bk-table-body .prepend-row {
|
1100
1032
|
transform: translateX(var(--prepend-left));
|
1101
1033
|
}
|
@@ -1122,6 +1054,17 @@
|
|
1122
1054
|
background: white;
|
1123
1055
|
transform: translateZ(0);
|
1124
1056
|
}
|
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
|
+
}
|
1125
1068
|
.bk-table .bk-table-head.__is-empty,
|
1126
1069
|
.bk-table .bk-table-body.__is-empty {
|
1127
1070
|
display: flex;
|
@@ -1174,8 +1117,8 @@
|
|
1174
1117
|
.bk-table .bk-table-body table th .cell .drag-cell,
|
1175
1118
|
.bk-table .bk-table-head table td .cell .drag-cell,
|
1176
1119
|
.bk-table .bk-table-body table td .cell .drag-cell {
|
1177
|
-
height: 100%;
|
1178
1120
|
font-size: 14px;
|
1121
|
+
height: 100%;
|
1179
1122
|
}
|
1180
1123
|
.bk-table .bk-table-head table th .cell.has-sort,
|
1181
1124
|
.bk-table .bk-table-body table th .cell.has-sort,
|
@@ -1300,7 +1243,7 @@
|
|
1300
1243
|
.bk-table .bk-table-body table thead th .cell {
|
1301
1244
|
display: flex;
|
1302
1245
|
align-items: center;
|
1303
|
-
height: calc(var(--row-height) -
|
1246
|
+
height: calc(var(--row-height) - 1px);
|
1304
1247
|
color: #313238;
|
1305
1248
|
}
|
1306
1249
|
.bk-table .bk-table-head table thead th.active,
|
@@ -1317,27 +1260,28 @@
|
|
1317
1260
|
.bk-table .bk-table-head table tbody tr td,
|
1318
1261
|
.bk-table .bk-table-body table tbody tr td {
|
1319
1262
|
background-color: #fff;
|
1320
|
-
border-top: 1px solid transparent;
|
1321
|
-
border-bottom: 1px solid transparent;
|
1322
|
-
border-right: 1px solid transparent;
|
1323
|
-
box-sizing: border-box;
|
1324
1263
|
}
|
1325
1264
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
1326
1265
|
.bk-table .bk-table-body table tbody tr td.empty-cell {
|
1327
1266
|
padding-bottom: 30px;
|
1328
1267
|
}
|
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
|
+
}
|
1329
1272
|
.bk-table .bk-table-head table tbody tr td .cell,
|
1330
1273
|
.bk-table .bk-table-body table tbody tr td .cell {
|
1331
1274
|
display: block;
|
1332
1275
|
width: 100%;
|
1333
|
-
|
1276
|
+
height: 100%;
|
1277
|
+
line-height: calc(var(--row-height) - 1px);
|
1334
1278
|
box-sizing: border-box;
|
1335
1279
|
align-items: center;
|
1336
1280
|
}
|
1337
1281
|
.bk-table .bk-table-head table tbody tr td .cell.drag,
|
1338
1282
|
.bk-table .bk-table-body table tbody tr td .cell.drag {
|
1339
|
-
text-align: center;
|
1340
1283
|
cursor: move;
|
1284
|
+
text-align: center;
|
1341
1285
|
}
|
1342
1286
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1343
1287
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
@@ -1350,6 +1294,7 @@
|
|
1350
1294
|
.bk-table .bk-table-head {
|
1351
1295
|
position: relative;
|
1352
1296
|
z-index: 2;
|
1297
|
+
scrollbar-gutter: stable;
|
1353
1298
|
overflow: hidden;
|
1354
1299
|
background-color: var(--background-color);
|
1355
1300
|
}
|
@@ -1392,7 +1337,6 @@
|
|
1392
1337
|
width: 100%;
|
1393
1338
|
height: var(--footer-height);
|
1394
1339
|
align-items: center;
|
1395
|
-
padding: 0 16px 0 22px;
|
1396
1340
|
}
|
1397
1341
|
.bk-table .bk-table-footer.is-hidden {
|
1398
1342
|
display: none;
|
@@ -1400,10 +1344,10 @@
|
|
1400
1344
|
.bk-table.bordered-row .bk-table-head {
|
1401
1345
|
border-bottom: 1px solid #dcdee5;
|
1402
1346
|
}
|
1403
|
-
.bk-table.bordered-row
|
1404
|
-
border-bottom
|
1347
|
+
.bk-table.bordered-row td {
|
1348
|
+
border-bottom: 1px solid #dcdee5;
|
1405
1349
|
}
|
1406
|
-
.bk-table.bordered-row
|
1350
|
+
.bk-table.bordered-row tr:last-child td {
|
1407
1351
|
border-bottom: none;
|
1408
1352
|
}
|
1409
1353
|
.bk-table.bordered-outer {
|
@@ -1424,18 +1368,14 @@
|
|
1424
1368
|
.bk-table.bordered-horizontal .__is-empty .bk-table-body-content {
|
1425
1369
|
border-bottom: 1px solid #dcdee5;
|
1426
1370
|
}
|
1427
|
-
.bk-table.bordered-col th
|
1371
|
+
.bk-table.bordered-col th,
|
1372
|
+
.bk-table.bordered-col td {
|
1428
1373
|
border-right: 1px solid #dcdee5;
|
1429
1374
|
}
|
1430
|
-
.bk-table.bordered-col th:last-child
|
1375
|
+
.bk-table.bordered-col th:last-child,
|
1376
|
+
.bk-table.bordered-col td:last-child {
|
1431
1377
|
border-right: none;
|
1432
1378
|
}
|
1433
|
-
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1434
|
-
border-right-color: #dcdee5;
|
1435
|
-
}
|
1436
|
-
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1437
|
-
border-right-color: transparent;
|
1438
|
-
}
|
1439
1379
|
.bk-table th,
|
1440
1380
|
.bk-table td {
|
1441
1381
|
border-right: 1px solid transparent;
|
package/lib/table/table.d.ts
CHANGED
@@ -157,11 +157,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
157
|
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
158
158
|
default: any;
|
159
159
|
};
|
160
|
-
shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
|
161
|
-
default: boolean;
|
162
|
-
} & {
|
163
|
-
default: boolean;
|
164
|
-
};
|
165
160
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
166
161
|
columnPick: (_cols: import("./props").IColumnActive[]) => boolean;
|
167
162
|
columnFilter: (_args: {
|
@@ -403,11 +398,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
403
398
|
rowDraggable: import("vue-types").VueTypeDef<any> & {
|
404
399
|
default: any;
|
405
400
|
};
|
406
|
-
shiftMultiChecked: import("vue-types").VueTypeValidableDef<boolean> & {
|
407
|
-
default: boolean;
|
408
|
-
} & {
|
409
|
-
default: boolean;
|
410
|
-
};
|
411
401
|
}>> & {
|
412
402
|
onDragend?: (_args: {
|
413
403
|
sourceEvent: DragEvent;
|
@@ -534,6 +524,5 @@ declare const _default: import("vue").DefineComponent<{
|
|
534
524
|
prependStyle: import("vue").CSSProperties;
|
535
525
|
isFlex: boolean;
|
536
526
|
rowDraggable: any;
|
537
|
-
shiftMultiChecked: boolean;
|
538
527
|
}, {}>;
|
539
528
|
export default _default;
|
package/lib/table/table.less
CHANGED
@@ -12,9 +12,9 @@
|
|
12
12
|
|
13
13
|
.@{bk-prefix}-table {
|
14
14
|
position: relative;
|
15
|
-
width: 100%;
|
16
15
|
height: auto;
|
17
16
|
overflow: hidden;
|
17
|
+
width: 100%;
|
18
18
|
|
19
19
|
&-flex {
|
20
20
|
display: flex;
|
@@ -34,9 +34,21 @@
|
|
34
34
|
|
35
35
|
.@{bk-prefix}-table-body {
|
36
36
|
position: relative;
|
37
|
-
overflow:
|
37
|
+
overflow: auto;
|
38
|
+
scrollbar-gutter: stable;
|
38
39
|
border-bottom: 1px solid @table-border-color;
|
39
40
|
|
41
|
+
&::-webkit-scrollbar {
|
42
|
+
width: 5px;
|
43
|
+
height: 6px;
|
44
|
+
}
|
45
|
+
|
46
|
+
&::-webkit-scrollbar-thumb {
|
47
|
+
background: #dcdee5;
|
48
|
+
border-radius: 10px;
|
49
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
50
|
+
}
|
51
|
+
|
40
52
|
.prepend-row {
|
41
53
|
transform: translateX(var(--prepend-left));
|
42
54
|
}
|
@@ -81,6 +93,17 @@
|
|
81
93
|
background: @table-bg-color;
|
82
94
|
transform: translateZ(0);
|
83
95
|
|
96
|
+
&::-webkit-scrollbar {
|
97
|
+
width: 5px;
|
98
|
+
height: 5px;
|
99
|
+
}
|
100
|
+
|
101
|
+
&::-webkit-scrollbar-thumb {
|
102
|
+
background: #ddd;
|
103
|
+
border-radius: 20px;
|
104
|
+
box-shadow: inset 0 0 6px rgba(204, 204, 204, .3);
|
105
|
+
}
|
106
|
+
|
84
107
|
&.__is-empty {
|
85
108
|
display: flex;
|
86
109
|
height: 100%;
|
@@ -125,8 +148,8 @@
|
|
125
148
|
white-space: nowrap;
|
126
149
|
|
127
150
|
.drag-cell {
|
128
|
-
height: 100%;
|
129
151
|
font-size: 14px;
|
152
|
+
height: 100%;
|
130
153
|
}
|
131
154
|
|
132
155
|
&.has-sort {
|
@@ -236,7 +259,7 @@
|
|
236
259
|
.cell {
|
237
260
|
display: flex;
|
238
261
|
align-items: center;
|
239
|
-
height: calc(var(--row-height) -
|
262
|
+
height: calc(var(--row-height) - 1px);
|
240
263
|
color: @table-head-font-color;
|
241
264
|
}
|
242
265
|
|
@@ -256,31 +279,26 @@
|
|
256
279
|
tr {
|
257
280
|
td {
|
258
281
|
background-color: #fff;
|
259
|
-
border-top: 1px solid transparent;
|
260
|
-
border-bottom: 1px solid transparent;
|
261
|
-
border-right: 1px solid transparent;
|
262
|
-
|
263
|
-
box-sizing: border-box;
|
264
282
|
|
265
283
|
&.empty-cell {
|
266
284
|
padding-bottom: 30px;
|
267
285
|
}
|
268
286
|
|
269
287
|
&.is-last {
|
270
|
-
|
288
|
+
border-bottom: none;
|
271
289
|
}
|
272
290
|
|
273
291
|
.cell {
|
274
292
|
display: block;
|
275
293
|
width: 100%;
|
276
|
-
|
277
|
-
line-height: calc(var(--row-height) -
|
294
|
+
height: 100%;
|
295
|
+
line-height: calc(var(--row-height) - 1px);
|
278
296
|
box-sizing: border-box;
|
279
297
|
align-items: center;
|
280
298
|
|
281
299
|
&.drag {
|
282
|
-
text-align: center;
|
283
300
|
cursor: move;
|
301
|
+
text-align: center;
|
284
302
|
}
|
285
303
|
}
|
286
304
|
}
|
@@ -295,7 +313,18 @@
|
|
295
313
|
}
|
296
314
|
}
|
297
315
|
|
316
|
+
// &.--drag-enter {
|
317
|
+
// &.--bottom {
|
318
|
+
// border-bottom: solid 1px #3785ff;
|
319
|
+
// }
|
320
|
+
|
321
|
+
// &.--top {
|
322
|
+
// border-top: solid 1px #3785ff;
|
323
|
+
// }
|
324
|
+
// }
|
325
|
+
|
298
326
|
&.--drag-start {
|
327
|
+
|
299
328
|
td {
|
300
329
|
background: #fff!important;
|
301
330
|
}
|
@@ -308,6 +337,7 @@
|
|
308
337
|
.@{bk-prefix}-table-head {
|
309
338
|
position: relative;
|
310
339
|
z-index: 2;
|
340
|
+
scrollbar-gutter: stable;
|
311
341
|
overflow: hidden;
|
312
342
|
background-color: var(--background-color);
|
313
343
|
|
@@ -338,8 +368,11 @@
|
|
338
368
|
cursor: pointer;
|
339
369
|
|
340
370
|
background: @table-head-bg-color;
|
371
|
+
//border-right: 1px solid @table-border-color;
|
372
|
+
// border-bottom: 1px solid @table-border-color;
|
341
373
|
border-left: 1px solid @table-border-color;
|
342
374
|
border-radius: 0 2px 0 0;
|
375
|
+
// transform: translateX(var(--scroll-left));
|
343
376
|
justify-content: center;
|
344
377
|
align-items: center;
|
345
378
|
|
@@ -356,7 +389,6 @@
|
|
356
389
|
width: 100%;
|
357
390
|
height: var(--footer-height);
|
358
391
|
align-items: center;
|
359
|
-
padding: 0 16px 0 22px;
|
360
392
|
|
361
393
|
&.is-hidden {
|
362
394
|
display: none;
|
@@ -368,18 +400,14 @@
|
|
368
400
|
border-bottom: 1px solid @table-border-color;
|
369
401
|
}
|
370
402
|
|
371
|
-
|
372
|
-
|
373
|
-
|
374
|
-
td {
|
375
|
-
border-bottom-color: @table-border-color;
|
376
|
-
}
|
403
|
+
td {
|
404
|
+
border-bottom: 1px solid @table-border-color;
|
405
|
+
}
|
377
406
|
|
378
|
-
|
379
|
-
|
380
|
-
|
381
|
-
|
382
|
-
}
|
407
|
+
tr {
|
408
|
+
&:last-child {
|
409
|
+
td {
|
410
|
+
border-bottom: none;
|
383
411
|
}
|
384
412
|
}
|
385
413
|
}
|
@@ -414,7 +442,8 @@
|
|
414
442
|
}
|
415
443
|
|
416
444
|
&.bordered-col {
|
417
|
-
th
|
445
|
+
th,
|
446
|
+
td {
|
418
447
|
border-right: 1px solid @table-border-color;
|
419
448
|
|
420
449
|
&:last-child {
|
@@ -422,24 +451,9 @@
|
|
422
451
|
}
|
423
452
|
}
|
424
453
|
|
425
|
-
.bk-table-body {
|
426
|
-
tbody {
|
427
|
-
tr {
|
428
|
-
td {
|
429
|
-
border-right-color: @table-border-color;
|
430
|
-
|
431
|
-
&:last-child {
|
432
|
-
border-right-color: transparent;
|
433
|
-
}
|
434
|
-
}
|
435
|
-
}
|
436
|
-
}
|
437
|
-
}
|
438
|
-
|
439
454
|
}
|
440
455
|
|
441
|
-
th,
|
442
|
-
td {
|
456
|
+
th, td {
|
443
457
|
border-right: 1px solid transparent;
|
444
458
|
}
|
445
459
|
|
@@ -459,6 +473,7 @@
|
|
459
473
|
right: 0;
|
460
474
|
bottom: var(--footer-height);
|
461
475
|
left: 0;
|
476
|
+
// height: var(--fix-height);
|
462
477
|
pointer-events: none;
|
463
478
|
|
464
479
|
.column_fixed {
|
@@ -517,4 +532,4 @@
|
|
517
532
|
.stripe-row {
|
518
533
|
background: #fafbfd;
|
519
534
|
}
|
520
|
-
}
|
535
|
+
}
|