bkui-vue 2.0.1-beta.15.table.1 → 2.0.1-beta.15.table.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +40 -40
- package/dist/index.esm.js +13786 -13670
- package/dist/index.umd.js +54 -54
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/checkbox/checkbox.d.ts +7 -7
- package/lib/checkbox/index.d.ts +11 -11
- package/lib/checkbox/index.js +9 -1
- package/lib/date-picker/date-picker.d.ts +0 -1
- package/lib/date-picker/index.d.ts +0 -3
- package/lib/date-picker/index.js +34 -13
- package/lib/dialog/dialog.d.ts +7 -2
- package/lib/dialog/index.d.ts +15 -4
- package/lib/dialog/props.d.ts +3 -1
- package/lib/index.js +1 -1
- package/lib/modal/index.d.ts +18 -5
- package/lib/modal/index.js +7 -1
- package/lib/modal/modal.d.ts +7 -2
- package/lib/modal/props.mixin.d.ts +3 -1
- package/lib/radio/index.d.ts +21 -21
- package/lib/radio/index.js +18 -7
- package/lib/radio/radio-button.d.ts +7 -7
- package/lib/radio/radio-group.d.ts +7 -7
- package/lib/radio/radio.d.ts +7 -7
- package/lib/scrollbar/index.js +36 -13
- package/lib/scrollbar/scrollbar-core/index.d.ts +2 -1
- package/lib/select/index.d.ts +24 -6
- package/lib/select/index.js +68 -56
- package/lib/select/select.d.ts +10 -2
- package/lib/shared/frame-throttle.d.ts +15 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/shared/index.js +72 -1
- package/lib/sideslider/index.d.ts +15 -4
- package/lib/sideslider/sideslider.d.ts +7 -2
- package/lib/steps/index.d.ts +3 -3
- package/lib/steps/steps.d.ts +1 -1
- package/lib/table/components/ghost-body.d.ts +2 -0
- package/lib/table/components/table-column.d.ts +3 -44
- package/lib/table/hooks/use-cell.d.ts +20 -0
- package/lib/table/hooks/use-column-resize.d.ts +3 -1
- package/lib/table/hooks/use-column-template.d.ts +2 -3
- package/lib/table/hooks/use-columns.d.ts +3 -2
- package/lib/table/hooks/use-layout.d.ts +7 -5
- package/lib/table/hooks/use-settings.d.ts +1 -1
- package/lib/table/hooks/use-shift-key.d.ts +4 -2
- package/lib/table/index.d.ts +18 -44
- package/lib/table/index.js +844 -595
- package/lib/table/props.d.ts +13 -1
- package/lib/table/table.css +35 -47
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +40 -60
- package/lib/table/table.variable.css +35 -47
- package/lib/table/utils.d.ts +7 -5
- package/lib/table-column/index.d.ts +9 -132
- package/lib/table-column/index.js +17298 -25
- package/lib/virtual-render/index.d.ts +4 -15
- package/lib/virtual-render/index.js +3 -4
- package/lib/virtual-render/props.d.ts +1 -3
- package/lib/virtual-render/virtual-render.d.ts +2 -7
- package/package.json +1 -1
package/lib/table/props.d.ts
CHANGED
@@ -46,6 +46,7 @@ export declare const fixedType: import("vue-types").VueTypeValidableDef<"left" |
|
|
46
46
|
export type IOverflowTooltipOption = {
|
47
47
|
content: ((col: Column, row: any) => string) | string;
|
48
48
|
disabled?: ((col: Column, row: any) => boolean) | boolean;
|
49
|
+
allowHtml?: boolean;
|
49
50
|
watchCellResize?: boolean;
|
50
51
|
mode?: `${OverflowModeEnum}`;
|
51
52
|
popoverOption?: any;
|
@@ -228,6 +229,11 @@ export declare enum IColSortBehavior {
|
|
228
229
|
*/
|
229
230
|
interdependent = "interdependent"
|
230
231
|
}
|
232
|
+
export type FixedBottomOption = {
|
233
|
+
position: 'absolute' | 'relative';
|
234
|
+
height: number;
|
235
|
+
loading?: boolean;
|
236
|
+
};
|
231
237
|
export declare const tableProps: {
|
232
238
|
/**
|
233
239
|
* 渲染列表
|
@@ -272,7 +278,7 @@ export declare const tableProps: {
|
|
272
278
|
};
|
273
279
|
/**
|
274
280
|
* 设置表格最小高度
|
275
|
-
* 默认:
|
281
|
+
* 默认:LINE_HEIGHT * 4
|
276
282
|
*/
|
277
283
|
minHeight: import("vue-types").VueTypeDef<StringNumber> & {
|
278
284
|
default: StringNumber;
|
@@ -577,5 +583,11 @@ export declare const tableProps: {
|
|
577
583
|
} & {
|
578
584
|
default: boolean;
|
579
585
|
};
|
586
|
+
/**
|
587
|
+
* 固定在底部的配置项
|
588
|
+
*/
|
589
|
+
fixedBottom: import("vue-types").VueTypeDef<FixedBottomOption> & {
|
590
|
+
default: () => FixedBottomOption;
|
591
|
+
};
|
580
592
|
};
|
581
593
|
export {};
|
package/lib/table/table.css
CHANGED
@@ -1208,6 +1208,7 @@
|
|
1208
1208
|
width: 100%;
|
1209
1209
|
height: 100%;
|
1210
1210
|
overflow: hidden;
|
1211
|
+
border-spacing: 0;
|
1211
1212
|
}
|
1212
1213
|
.bk-table-flex {
|
1213
1214
|
display: flex;
|
@@ -1218,15 +1219,21 @@
|
|
1218
1219
|
flex: 1;
|
1219
1220
|
overflow: auto;
|
1220
1221
|
}
|
1221
|
-
.bk-table.has-scroll-y .bk-table-head {
|
1222
|
-
padding-right: 4px;
|
1223
|
-
}
|
1224
1222
|
.bk-table .bk-table-body {
|
1225
1223
|
position: relative;
|
1226
1224
|
overflow: hidden;
|
1227
1225
|
}
|
1228
1226
|
.bk-table .bk-table-body .prepend-row {
|
1229
|
-
transform:
|
1227
|
+
transform: translate3d(var(--translate-x), 0, 0);
|
1228
|
+
}
|
1229
|
+
.bk-table .bk-table-body .resize-column {
|
1230
|
+
position: absolute;
|
1231
|
+
top: 0;
|
1232
|
+
bottom: 0;
|
1233
|
+
left: 0;
|
1234
|
+
width: 1px;
|
1235
|
+
background-color: #3785ff;
|
1236
|
+
transform: translate3d(var(--drag-offset-x), var(--translate-y), 0);
|
1230
1237
|
}
|
1231
1238
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
|
1232
1239
|
background-color: #fafbfd;
|
@@ -1234,18 +1241,6 @@
|
|
1234
1241
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr td {
|
1235
1242
|
border-bottom: none;
|
1236
1243
|
}
|
1237
|
-
.bk-table .bk-fixed-bottom-border {
|
1238
|
-
position: sticky;
|
1239
|
-
bottom: 0;
|
1240
|
-
left: 0;
|
1241
|
-
z-index: 1;
|
1242
|
-
width: 100%;
|
1243
|
-
border-top: 1px solid var(--table-border-color);
|
1244
|
-
transform: translateX(var(--scroll-head-left));
|
1245
|
-
}
|
1246
|
-
.bk-table .bk-fixed-bottom-border._is-empty {
|
1247
|
-
display: none;
|
1248
|
-
}
|
1249
1244
|
.bk-table .bk-table-head,
|
1250
1245
|
.bk-table .bk-table-body {
|
1251
1246
|
background: var(--table-bg-color);
|
@@ -1269,7 +1264,7 @@
|
|
1269
1264
|
.bk-table .bk-table-head table,
|
1270
1265
|
.bk-table .bk-table-body table {
|
1271
1266
|
width: 100%;
|
1272
|
-
border-collapse:
|
1267
|
+
border-collapse: separate;
|
1273
1268
|
transform: translateZ(0);
|
1274
1269
|
table-layout: fixed;
|
1275
1270
|
align-self: flex-start;
|
@@ -1360,18 +1355,6 @@
|
|
1360
1355
|
position: sticky;
|
1361
1356
|
z-index: 1;
|
1362
1357
|
}
|
1363
|
-
.bk-table .bk-table-head table th.column_fixed.column_fixed_left,
|
1364
|
-
.bk-table .bk-table-body table th.column_fixed.column_fixed_left,
|
1365
|
-
.bk-table .bk-table-head table td.column_fixed.column_fixed_left,
|
1366
|
-
.bk-table .bk-table-body table td.column_fixed.column_fixed_left {
|
1367
|
-
left: 0;
|
1368
|
-
}
|
1369
|
-
.bk-table .bk-table-head table th.column_fixed.column_fixed_right,
|
1370
|
-
.bk-table .bk-table-body table th.column_fixed.column_fixed_right,
|
1371
|
-
.bk-table .bk-table-head table td.column_fixed.column_fixed_right,
|
1372
|
-
.bk-table .bk-table-body table td.column_fixed.column_fixed_right {
|
1373
|
-
right: 0;
|
1374
|
-
}
|
1375
1358
|
.bk-table .bk-table-head table th.row_expend .expand-cell-ctx,
|
1376
1359
|
.bk-table .bk-table-body table th.row_expend .expand-cell-ctx,
|
1377
1360
|
.bk-table .bk-table-head table td.row_expend .expand-cell-ctx,
|
@@ -1444,14 +1427,14 @@
|
|
1444
1427
|
}
|
1445
1428
|
.bk-table .bk-table-head table thead th.column_fixed,
|
1446
1429
|
.bk-table .bk-table-body table thead th.column_fixed {
|
1447
|
-
transform: translateX(var(--
|
1430
|
+
transform: translateX(var(--translate-x));
|
1448
1431
|
}
|
1449
1432
|
.bk-table .bk-table-head table tbody tr td,
|
1450
1433
|
.bk-table .bk-table-body table tbody tr td {
|
1451
1434
|
background-color: #fff;
|
1452
|
-
border-top: 1px solid
|
1453
|
-
border-bottom: 1px solid
|
1454
|
-
border-right: 1px solid
|
1435
|
+
border-top: 1px solid var(--table-bg-color);
|
1436
|
+
border-bottom: 1px solid var(--table-bg-color);
|
1437
|
+
border-right: 1px solid var(--table-bg-color);
|
1455
1438
|
box-sizing: border-box;
|
1456
1439
|
}
|
1457
1440
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
@@ -1473,7 +1456,7 @@
|
|
1473
1456
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1474
1457
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
1475
1458
|
background: var(--table-row-hover-bg-color);
|
1476
|
-
border-right: var(--table-row-hover-bg-color);
|
1459
|
+
border-right-color: var(--table-row-hover-bg-color);
|
1477
1460
|
}
|
1478
1461
|
.bk-table .bk-table-head table tbody tr.--drag-start td,
|
1479
1462
|
.bk-table .bk-table-body table tbody tr.--drag-start td {
|
@@ -1488,15 +1471,21 @@
|
|
1488
1471
|
.bk-table .bk-table-head .col-resize-drag {
|
1489
1472
|
position: absolute;
|
1490
1473
|
top: 0;
|
1491
|
-
|
1474
|
+
left: 0;
|
1492
1475
|
bottom: 0;
|
1493
1476
|
z-index: 1;
|
1494
1477
|
width: 6px;
|
1495
1478
|
background-color: #3785ff;
|
1496
|
-
transform:
|
1479
|
+
transform: translate3d(var(--drag-offset-h-x), 0, 0);
|
1480
|
+
}
|
1481
|
+
.bk-table .bk-table-head .col-resize-drag:hover {
|
1482
|
+
cursor: ew-resize !important;
|
1483
|
+
}
|
1484
|
+
.bk-table .bk-table-head .bk-table-fixed {
|
1485
|
+
transform: translate3d(0, 0, 0);
|
1497
1486
|
}
|
1498
1487
|
.bk-table .bk-table-head thead {
|
1499
|
-
transform:
|
1488
|
+
transform: translate3d(var(--translate-x-1), 0, 0);
|
1500
1489
|
}
|
1501
1490
|
.bk-table .bk-table-head .table-head-settings {
|
1502
1491
|
position: absolute;
|
@@ -1554,7 +1543,7 @@
|
|
1554
1543
|
border-bottom: 1px solid var(--table-border-color);
|
1555
1544
|
}
|
1556
1545
|
.bk-table.bordered-col th {
|
1557
|
-
border-right: 1px solid var(--
|
1546
|
+
border-right: 1px solid var(--background-color);
|
1558
1547
|
}
|
1559
1548
|
.bk-table.bordered-col th:last-child {
|
1560
1549
|
border-right: none;
|
@@ -1562,17 +1551,14 @@
|
|
1562
1551
|
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1563
1552
|
border-right-color: var(--table-border-color);
|
1564
1553
|
}
|
1565
|
-
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1566
|
-
border-right-color: transparent;
|
1567
|
-
}
|
1568
1554
|
.bk-table th,
|
1569
1555
|
.bk-table td {
|
1570
|
-
border-right: 1px solid
|
1556
|
+
border-right: 1px solid var(--table-bg-color);
|
1571
1557
|
}
|
1572
1558
|
.bk-table.bordered-none th,
|
1573
1559
|
.bk-table.bordered-none td {
|
1574
1560
|
border-top: none;
|
1575
|
-
border-right: 1px solid
|
1561
|
+
border-right: 1px solid var(--table-bg-color);
|
1576
1562
|
border-bottom: none;
|
1577
1563
|
border-left: none;
|
1578
1564
|
}
|
@@ -1583,12 +1569,13 @@
|
|
1583
1569
|
bottom: 0;
|
1584
1570
|
left: 0;
|
1585
1571
|
pointer-events: none;
|
1572
|
+
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
1586
1573
|
}
|
1587
|
-
.bk-table .bk-table-fixed
|
1588
|
-
box-shadow:
|
1574
|
+
.bk-table .bk-table-fixed .column_fixed_right {
|
1575
|
+
box-shadow: var(--shadow-right);
|
1589
1576
|
}
|
1590
|
-
.bk-table .bk-table-fixed
|
1591
|
-
box-shadow:
|
1577
|
+
.bk-table .bk-table-fixed .column_fixed_left {
|
1578
|
+
box-shadow: var(--shadow-left);
|
1592
1579
|
}
|
1593
1580
|
.bk-table .bk-table-fixed .column_fixed {
|
1594
1581
|
position: absolute;
|
@@ -1609,6 +1596,7 @@
|
|
1609
1596
|
right: 0;
|
1610
1597
|
bottom: 0;
|
1611
1598
|
left: 0;
|
1599
|
+
text-align: center;
|
1612
1600
|
}
|
1613
1601
|
.bk-table colgroup col {
|
1614
1602
|
background: var(--table-bg-color);
|
package/lib/table/table.d.ts
CHANGED
@@ -166,6 +166,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
166
166
|
} & {
|
167
167
|
default: boolean;
|
168
168
|
};
|
169
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
170
|
+
default: () => import("./props").FixedBottomOption;
|
171
|
+
};
|
169
172
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, (...args: any[]) => boolean>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
170
173
|
data: import("vue-types").VueTypeDef<any[]> & {
|
171
174
|
default: () => any[];
|
@@ -334,6 +337,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
334
337
|
} & {
|
335
338
|
default: boolean;
|
336
339
|
};
|
340
|
+
fixedBottom: import("vue-types").VueTypeDef<import("./props").FixedBottomOption> & {
|
341
|
+
default: () => import("./props").FixedBottomOption;
|
342
|
+
};
|
337
343
|
}>>, {
|
338
344
|
data: any[];
|
339
345
|
thead: import("./props").Thead;
|
@@ -379,5 +385,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
379
385
|
isFlex: boolean;
|
380
386
|
rowDraggable: any;
|
381
387
|
shiftMultiChecked: boolean;
|
388
|
+
fixedBottom: import("./props").FixedBottomOption;
|
382
389
|
}, {}>;
|
383
390
|
export default _default;
|
package/lib/table/table.less
CHANGED
@@ -15,6 +15,7 @@
|
|
15
15
|
width: 100%;
|
16
16
|
height: 100%;
|
17
17
|
overflow: hidden;
|
18
|
+
border-spacing: 0;
|
18
19
|
|
19
20
|
&-flex {
|
20
21
|
display: flex;
|
@@ -26,19 +27,22 @@
|
|
26
27
|
}
|
27
28
|
}
|
28
29
|
|
29
|
-
&.has-scroll-y {
|
30
|
-
.@{bk-prefix}-table-head {
|
31
|
-
padding-right: 4px;
|
32
|
-
}
|
33
|
-
}
|
34
|
-
|
35
30
|
.@{bk-prefix}-table-body {
|
36
31
|
position: relative;
|
37
32
|
overflow: hidden;
|
38
|
-
// border-bottom: 1px solid @table-border-color;
|
39
33
|
|
40
34
|
.prepend-row {
|
41
|
-
transform:
|
35
|
+
transform: translate3d(var(--translate-x), 0, 0);
|
36
|
+
}
|
37
|
+
|
38
|
+
.resize-column {
|
39
|
+
position: absolute;
|
40
|
+
top: 0;
|
41
|
+
bottom: 0;
|
42
|
+
left: 0;
|
43
|
+
width: 1px;
|
44
|
+
background-color: #3785ff;
|
45
|
+
transform: translate3d(var(--drag-offset-x), var(--translate-y), 0);
|
42
46
|
}
|
43
47
|
}
|
44
48
|
|
@@ -62,20 +66,6 @@
|
|
62
66
|
}
|
63
67
|
}
|
64
68
|
|
65
|
-
.@{bk-prefix}-fixed-bottom-border {
|
66
|
-
position: sticky;
|
67
|
-
bottom: 0;
|
68
|
-
left: 0;
|
69
|
-
z-index: 1;
|
70
|
-
width: 100%;
|
71
|
-
border-top: 1px solid @table-border-color;
|
72
|
-
transform: translateX(var(--scroll-head-left));
|
73
|
-
|
74
|
-
&._is-empty {
|
75
|
-
display: none;
|
76
|
-
}
|
77
|
-
}
|
78
|
-
|
79
69
|
.@{bk-prefix}-table-head,
|
80
70
|
.@{bk-prefix}-table-body {
|
81
71
|
background: @table-bg-color;
|
@@ -94,12 +84,12 @@
|
|
94
84
|
height: 100%;
|
95
85
|
padding-bottom: 20px;
|
96
86
|
}
|
97
|
-
|
98
87
|
}
|
99
88
|
|
100
89
|
table {
|
101
90
|
width: 100%;
|
102
|
-
border-collapse:
|
91
|
+
border-collapse: separate;
|
92
|
+
|
103
93
|
transform: translateZ(0);
|
104
94
|
table-layout: fixed;
|
105
95
|
align-self: flex-start;
|
@@ -158,7 +148,6 @@
|
|
158
148
|
}
|
159
149
|
}
|
160
150
|
|
161
|
-
|
162
151
|
.expand-btn-action {
|
163
152
|
display: flex;
|
164
153
|
padding: 0 16px;
|
@@ -169,14 +158,6 @@
|
|
169
158
|
&.column_fixed {
|
170
159
|
position: sticky;
|
171
160
|
z-index: 1;
|
172
|
-
|
173
|
-
&.column_fixed_left {
|
174
|
-
left: 0;
|
175
|
-
}
|
176
|
-
|
177
|
-
&.column_fixed_right {
|
178
|
-
right: 0;
|
179
|
-
}
|
180
161
|
}
|
181
162
|
|
182
163
|
&.row_expend {
|
@@ -250,7 +231,7 @@
|
|
250
231
|
}
|
251
232
|
|
252
233
|
&.column_fixed {
|
253
|
-
transform: translateX(var(--
|
234
|
+
transform: translateX(var(--translate-x));
|
254
235
|
}
|
255
236
|
}
|
256
237
|
}
|
@@ -259,9 +240,9 @@
|
|
259
240
|
tr {
|
260
241
|
td {
|
261
242
|
background-color: #fff;
|
262
|
-
border-top: 1px solid
|
263
|
-
border-bottom: 1px solid
|
264
|
-
border-right: 1px solid
|
243
|
+
border-top: 1px solid @table-bg-color;
|
244
|
+
border-bottom: 1px solid @table-bg-color;
|
245
|
+
border-right: 1px solid @table-bg-color;
|
265
246
|
|
266
247
|
box-sizing: border-box;
|
267
248
|
|
@@ -287,7 +268,7 @@
|
|
287
268
|
td {
|
288
269
|
&:not(.empty-cell) {
|
289
270
|
background: @table-row-hover-bg-color;
|
290
|
-
border-right: @table-row-hover-bg-color;
|
271
|
+
border-right-color: @table-row-hover-bg-color;
|
291
272
|
}
|
292
273
|
}
|
293
274
|
}
|
@@ -295,7 +276,7 @@
|
|
295
276
|
|
296
277
|
&.--drag-start {
|
297
278
|
td {
|
298
|
-
background: #fff!important;
|
279
|
+
background: #fff !important;
|
299
280
|
}
|
300
281
|
}
|
301
282
|
}
|
@@ -312,16 +293,23 @@
|
|
312
293
|
.col-resize-drag {
|
313
294
|
position: absolute;
|
314
295
|
top: 0;
|
315
|
-
|
296
|
+
left: 0;
|
316
297
|
bottom: 0;
|
317
298
|
z-index: 1;
|
318
299
|
width: 6px;
|
319
300
|
background-color: #3785ff;
|
320
|
-
transform:
|
301
|
+
transform: translate3d(var(--drag-offset-h-x), 0, 0);
|
302
|
+
&:hover {
|
303
|
+
cursor: ew-resize !important;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
|
307
|
+
.@{bk-prefix}-table-fixed {
|
308
|
+
transform: translate3d(0, 0, 0);
|
321
309
|
}
|
322
310
|
|
323
311
|
thead {
|
324
|
-
transform:
|
312
|
+
transform: translate3d(var(--translate-x-1), 0, 0);
|
325
313
|
}
|
326
314
|
|
327
315
|
.table-head-settings {
|
@@ -385,7 +373,6 @@
|
|
385
373
|
.@{bk-prefix}-table-footer {
|
386
374
|
border-bottom: 1px solid @table-border-color;
|
387
375
|
}
|
388
|
-
|
389
376
|
}
|
390
377
|
|
391
378
|
&.bordered-horizontal {
|
@@ -407,7 +394,7 @@
|
|
407
394
|
|
408
395
|
&.bordered-col {
|
409
396
|
th {
|
410
|
-
border-right: 1px solid
|
397
|
+
border-right: 1px solid var(--background-color);
|
411
398
|
|
412
399
|
&:last-child {
|
413
400
|
border-right: none;
|
@@ -419,27 +406,22 @@
|
|
419
406
|
tr {
|
420
407
|
td {
|
421
408
|
border-right-color: @table-border-color;
|
422
|
-
|
423
|
-
&:last-child {
|
424
|
-
border-right-color: transparent;
|
425
|
-
}
|
426
409
|
}
|
427
410
|
}
|
428
411
|
}
|
429
412
|
}
|
430
|
-
|
431
413
|
}
|
432
414
|
|
433
415
|
th,
|
434
416
|
td {
|
435
|
-
border-right: 1px solid
|
417
|
+
border-right: 1px solid @table-bg-color;
|
436
418
|
}
|
437
419
|
|
438
420
|
&.bordered-none {
|
439
421
|
th,
|
440
422
|
td {
|
441
423
|
border-top: none;
|
442
|
-
border-right: 1px solid
|
424
|
+
border-right: 1px solid @table-bg-color;
|
443
425
|
border-bottom: none;
|
444
426
|
border-left: none;
|
445
427
|
}
|
@@ -452,17 +434,14 @@
|
|
452
434
|
bottom: 0;
|
453
435
|
left: 0;
|
454
436
|
pointer-events: none;
|
437
|
+
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
455
438
|
|
456
|
-
|
457
|
-
|
458
|
-
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
459
|
-
}
|
439
|
+
.column_fixed_right {
|
440
|
+
box-shadow: var(--shadow-right);
|
460
441
|
}
|
461
442
|
|
462
|
-
|
463
|
-
|
464
|
-
box-shadow: 0 0 10px rgb(0 0 0 / 12%);
|
465
|
-
}
|
443
|
+
.column_fixed_left {
|
444
|
+
box-shadow: var(--shadow-left);
|
466
445
|
}
|
467
446
|
|
468
447
|
.column_fixed {
|
@@ -490,6 +469,7 @@
|
|
490
469
|
right: 0;
|
491
470
|
bottom: 0;
|
492
471
|
left: 0;
|
472
|
+
text-align: center;
|
493
473
|
}
|
494
474
|
colgroup {
|
495
475
|
col {
|
@@ -511,4 +491,4 @@
|
|
511
491
|
.stripe-row {
|
512
492
|
background: #fafbfd;
|
513
493
|
}
|
514
|
-
}
|
494
|
+
}
|
@@ -1595,6 +1595,7 @@
|
|
1595
1595
|
width: 100%;
|
1596
1596
|
height: 100%;
|
1597
1597
|
overflow: hidden;
|
1598
|
+
border-spacing: 0;
|
1598
1599
|
}
|
1599
1600
|
.bk-table-flex {
|
1600
1601
|
display: flex;
|
@@ -1605,15 +1606,21 @@
|
|
1605
1606
|
flex: 1;
|
1606
1607
|
overflow: auto;
|
1607
1608
|
}
|
1608
|
-
.bk-table.has-scroll-y .bk-table-head {
|
1609
|
-
padding-right: 4px;
|
1610
|
-
}
|
1611
1609
|
.bk-table .bk-table-body {
|
1612
1610
|
position: relative;
|
1613
1611
|
overflow: hidden;
|
1614
1612
|
}
|
1615
1613
|
.bk-table .bk-table-body .prepend-row {
|
1616
|
-
transform:
|
1614
|
+
transform: translate3d(var(--translate-x), 0, 0);
|
1615
|
+
}
|
1616
|
+
.bk-table .bk-table-body .resize-column {
|
1617
|
+
position: absolute;
|
1618
|
+
top: 0;
|
1619
|
+
bottom: 0;
|
1620
|
+
left: 0;
|
1621
|
+
width: 1px;
|
1622
|
+
background-color: #3785ff;
|
1623
|
+
transform: translate3d(var(--drag-offset-x), var(--translate-y), 0);
|
1617
1624
|
}
|
1618
1625
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
|
1619
1626
|
background-color: #fafbfd;
|
@@ -1621,18 +1628,6 @@
|
|
1621
1628
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr td {
|
1622
1629
|
border-bottom: none;
|
1623
1630
|
}
|
1624
|
-
.bk-table .bk-fixed-bottom-border {
|
1625
|
-
position: sticky;
|
1626
|
-
bottom: 0;
|
1627
|
-
left: 0;
|
1628
|
-
z-index: 1;
|
1629
|
-
width: 100%;
|
1630
|
-
border-top: 1px solid var(--table-border-color);
|
1631
|
-
transform: translateX(var(--scroll-head-left));
|
1632
|
-
}
|
1633
|
-
.bk-table .bk-fixed-bottom-border._is-empty {
|
1634
|
-
display: none;
|
1635
|
-
}
|
1636
1631
|
.bk-table .bk-table-head,
|
1637
1632
|
.bk-table .bk-table-body {
|
1638
1633
|
background: var(--table-bg-color);
|
@@ -1656,7 +1651,7 @@
|
|
1656
1651
|
.bk-table .bk-table-head table,
|
1657
1652
|
.bk-table .bk-table-body table {
|
1658
1653
|
width: 100%;
|
1659
|
-
border-collapse:
|
1654
|
+
border-collapse: separate;
|
1660
1655
|
transform: translateZ(0);
|
1661
1656
|
table-layout: fixed;
|
1662
1657
|
align-self: flex-start;
|
@@ -1747,18 +1742,6 @@
|
|
1747
1742
|
position: sticky;
|
1748
1743
|
z-index: 1;
|
1749
1744
|
}
|
1750
|
-
.bk-table .bk-table-head table th.column_fixed.column_fixed_left,
|
1751
|
-
.bk-table .bk-table-body table th.column_fixed.column_fixed_left,
|
1752
|
-
.bk-table .bk-table-head table td.column_fixed.column_fixed_left,
|
1753
|
-
.bk-table .bk-table-body table td.column_fixed.column_fixed_left {
|
1754
|
-
left: 0;
|
1755
|
-
}
|
1756
|
-
.bk-table .bk-table-head table th.column_fixed.column_fixed_right,
|
1757
|
-
.bk-table .bk-table-body table th.column_fixed.column_fixed_right,
|
1758
|
-
.bk-table .bk-table-head table td.column_fixed.column_fixed_right,
|
1759
|
-
.bk-table .bk-table-body table td.column_fixed.column_fixed_right {
|
1760
|
-
right: 0;
|
1761
|
-
}
|
1762
1745
|
.bk-table .bk-table-head table th.row_expend .expand-cell-ctx,
|
1763
1746
|
.bk-table .bk-table-body table th.row_expend .expand-cell-ctx,
|
1764
1747
|
.bk-table .bk-table-head table td.row_expend .expand-cell-ctx,
|
@@ -1831,14 +1814,14 @@
|
|
1831
1814
|
}
|
1832
1815
|
.bk-table .bk-table-head table thead th.column_fixed,
|
1833
1816
|
.bk-table .bk-table-body table thead th.column_fixed {
|
1834
|
-
transform: translateX(var(--
|
1817
|
+
transform: translateX(var(--translate-x));
|
1835
1818
|
}
|
1836
1819
|
.bk-table .bk-table-head table tbody tr td,
|
1837
1820
|
.bk-table .bk-table-body table tbody tr td {
|
1838
1821
|
background-color: #fff;
|
1839
|
-
border-top: 1px solid
|
1840
|
-
border-bottom: 1px solid
|
1841
|
-
border-right: 1px solid
|
1822
|
+
border-top: 1px solid var(--table-bg-color);
|
1823
|
+
border-bottom: 1px solid var(--table-bg-color);
|
1824
|
+
border-right: 1px solid var(--table-bg-color);
|
1842
1825
|
box-sizing: border-box;
|
1843
1826
|
}
|
1844
1827
|
.bk-table .bk-table-head table tbody tr td.empty-cell,
|
@@ -1860,7 +1843,7 @@
|
|
1860
1843
|
.bk-table .bk-table-head table tbody tr:hover.hover-highlight td:not(.empty-cell),
|
1861
1844
|
.bk-table .bk-table-body table tbody tr:hover.hover-highlight td:not(.empty-cell) {
|
1862
1845
|
background: var(--table-row-hover-bg-color);
|
1863
|
-
border-right: var(--table-row-hover-bg-color);
|
1846
|
+
border-right-color: var(--table-row-hover-bg-color);
|
1864
1847
|
}
|
1865
1848
|
.bk-table .bk-table-head table tbody tr.--drag-start td,
|
1866
1849
|
.bk-table .bk-table-body table tbody tr.--drag-start td {
|
@@ -1875,15 +1858,21 @@
|
|
1875
1858
|
.bk-table .bk-table-head .col-resize-drag {
|
1876
1859
|
position: absolute;
|
1877
1860
|
top: 0;
|
1878
|
-
|
1861
|
+
left: 0;
|
1879
1862
|
bottom: 0;
|
1880
1863
|
z-index: 1;
|
1881
1864
|
width: 6px;
|
1882
1865
|
background-color: #3785ff;
|
1883
|
-
transform:
|
1866
|
+
transform: translate3d(var(--drag-offset-h-x), 0, 0);
|
1867
|
+
}
|
1868
|
+
.bk-table .bk-table-head .col-resize-drag:hover {
|
1869
|
+
cursor: ew-resize !important;
|
1870
|
+
}
|
1871
|
+
.bk-table .bk-table-head .bk-table-fixed {
|
1872
|
+
transform: translate3d(0, 0, 0);
|
1884
1873
|
}
|
1885
1874
|
.bk-table .bk-table-head thead {
|
1886
|
-
transform:
|
1875
|
+
transform: translate3d(var(--translate-x-1), 0, 0);
|
1887
1876
|
}
|
1888
1877
|
.bk-table .bk-table-head .table-head-settings {
|
1889
1878
|
position: absolute;
|
@@ -1941,7 +1930,7 @@
|
|
1941
1930
|
border-bottom: 1px solid var(--table-border-color);
|
1942
1931
|
}
|
1943
1932
|
.bk-table.bordered-col th {
|
1944
|
-
border-right: 1px solid var(--
|
1933
|
+
border-right: 1px solid var(--background-color);
|
1945
1934
|
}
|
1946
1935
|
.bk-table.bordered-col th:last-child {
|
1947
1936
|
border-right: none;
|
@@ -1949,17 +1938,14 @@
|
|
1949
1938
|
.bk-table.bordered-col .bk-table-body tbody tr td {
|
1950
1939
|
border-right-color: var(--table-border-color);
|
1951
1940
|
}
|
1952
|
-
.bk-table.bordered-col .bk-table-body tbody tr td:last-child {
|
1953
|
-
border-right-color: transparent;
|
1954
|
-
}
|
1955
1941
|
.bk-table th,
|
1956
1942
|
.bk-table td {
|
1957
|
-
border-right: 1px solid
|
1943
|
+
border-right: 1px solid var(--table-bg-color);
|
1958
1944
|
}
|
1959
1945
|
.bk-table.bordered-none th,
|
1960
1946
|
.bk-table.bordered-none td {
|
1961
1947
|
border-top: none;
|
1962
|
-
border-right: 1px solid
|
1948
|
+
border-right: 1px solid var(--table-bg-color);
|
1963
1949
|
border-bottom: none;
|
1964
1950
|
border-left: none;
|
1965
1951
|
}
|
@@ -1970,12 +1956,13 @@
|
|
1970
1956
|
bottom: 0;
|
1971
1957
|
left: 0;
|
1972
1958
|
pointer-events: none;
|
1959
|
+
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
1973
1960
|
}
|
1974
|
-
.bk-table .bk-table-fixed
|
1975
|
-
box-shadow:
|
1961
|
+
.bk-table .bk-table-fixed .column_fixed_right {
|
1962
|
+
box-shadow: var(--shadow-right);
|
1976
1963
|
}
|
1977
|
-
.bk-table .bk-table-fixed
|
1978
|
-
box-shadow:
|
1964
|
+
.bk-table .bk-table-fixed .column_fixed_left {
|
1965
|
+
box-shadow: var(--shadow-left);
|
1979
1966
|
}
|
1980
1967
|
.bk-table .bk-table-fixed .column_fixed {
|
1981
1968
|
position: absolute;
|
@@ -1996,6 +1983,7 @@
|
|
1996
1983
|
right: 0;
|
1997
1984
|
bottom: 0;
|
1998
1985
|
left: 0;
|
1986
|
+
text-align: center;
|
1999
1987
|
}
|
2000
1988
|
.bk-table colgroup col {
|
2001
1989
|
background: var(--table-bg-color);
|
package/lib/table/utils.d.ts
CHANGED
@@ -136,11 +136,6 @@ export declare const resolveColumnSortProp: (col: Column, props: TablePropTypes)
|
|
136
136
|
};
|
137
137
|
export declare const resolveColumnFilterProp: (col: Column) => {
|
138
138
|
enabled: boolean;
|
139
|
-
/**
|
140
|
-
* 格式化Border配置为标准Class
|
141
|
-
* @param val
|
142
|
-
* @returns
|
143
|
-
*/
|
144
139
|
list: any[];
|
145
140
|
filterFn?: Function;
|
146
141
|
match?: import("./props").FullEnum;
|
@@ -155,3 +150,10 @@ export declare const resolveColumnFilterProp: (col: Column) => {
|
|
155
150
|
checked: any[];
|
156
151
|
};
|
157
152
|
export declare const getRawData: (data: any) => any;
|
153
|
+
/**
|
154
|
+
* 转换 px | % 为实际数值
|
155
|
+
* @param val
|
156
|
+
* @param parentVal
|
157
|
+
* @returns
|
158
|
+
*/
|
159
|
+
export declare const getNumberOrPercentValue: (val: string | number, parentVal?: number) => number;
|