bkui-vue 2.0.1-beta.15.table.7 → 2.0.1-beta.15.table.8
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 +32 -32
- package/dist/index.esm.js +4958 -4952
- package/dist/index.umd.js +34 -34
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/index.js +1 -1
- package/lib/table/hooks/use-cell.d.ts +3 -3
- package/lib/table/hooks/use-column-template.d.ts +2 -2
- package/lib/table/hooks/use-layout.d.ts +3 -2
- package/lib/table/index.d.ts +15 -0
- package/lib/table/index.js +530 -514
- package/lib/table/props.d.ts +11 -0
- package/lib/table/table.css +10 -2
- package/lib/table/table.d.ts +7 -0
- package/lib/table/table.less +11 -16
- package/lib/table/table.variable.css +10 -2
- package/lib/table-column/index.js +10 -1
- package/package.json +1 -1
package/lib/table/props.d.ts
CHANGED
@@ -229,6 +229,11 @@ export declare enum IColSortBehavior {
|
|
229
229
|
*/
|
230
230
|
interdependent = "interdependent"
|
231
231
|
}
|
232
|
+
export type FixedBottomOption = {
|
233
|
+
position: 'absolute' | 'relative';
|
234
|
+
height: number;
|
235
|
+
loading?: boolean;
|
236
|
+
};
|
232
237
|
export declare const tableProps: {
|
233
238
|
/**
|
234
239
|
* 渲染列表
|
@@ -578,5 +583,11 @@ export declare const tableProps: {
|
|
578
583
|
} & {
|
579
584
|
default: boolean;
|
580
585
|
};
|
586
|
+
/**
|
587
|
+
* 固定在底部的配置项
|
588
|
+
*/
|
589
|
+
fixedBottom: import("vue-types").VueTypeDef<FixedBottomOption> & {
|
590
|
+
default: () => FixedBottomOption;
|
591
|
+
};
|
581
592
|
};
|
582
593
|
export {};
|
package/lib/table/table.css
CHANGED
@@ -1224,7 +1224,16 @@
|
|
1224
1224
|
overflow: hidden;
|
1225
1225
|
}
|
1226
1226
|
.bk-table .bk-table-body .prepend-row {
|
1227
|
-
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);
|
1228
1237
|
}
|
1229
1238
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
|
1230
1239
|
background-color: #fafbfd;
|
@@ -1588,7 +1597,6 @@
|
|
1588
1597
|
bottom: 0;
|
1589
1598
|
left: 0;
|
1590
1599
|
text-align: center;
|
1591
|
-
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
1592
1600
|
}
|
1593
1601
|
.bk-table colgroup col {
|
1594
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
@@ -32,7 +32,17 @@
|
|
32
32
|
overflow: hidden;
|
33
33
|
|
34
34
|
.prepend-row {
|
35
|
-
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);
|
36
46
|
}
|
37
47
|
}
|
38
48
|
|
@@ -56,20 +66,6 @@
|
|
56
66
|
}
|
57
67
|
}
|
58
68
|
|
59
|
-
// .@{bk-prefix}-fixed-bottom-border {
|
60
|
-
// position: sticky;
|
61
|
-
// bottom: 0;
|
62
|
-
// left: 0;
|
63
|
-
// z-index: 1;
|
64
|
-
// width: 100%;
|
65
|
-
// border-top: 1px solid @table-border-color;
|
66
|
-
// transform: translateX(var(--scroll-head-left));
|
67
|
-
|
68
|
-
// &._is-empty {
|
69
|
-
// display: none;
|
70
|
-
// }
|
71
|
-
// }
|
72
|
-
|
73
69
|
.@{bk-prefix}-table-head,
|
74
70
|
.@{bk-prefix}-table-body {
|
75
71
|
background: @table-bg-color;
|
@@ -474,7 +470,6 @@
|
|
474
470
|
bottom: 0;
|
475
471
|
left: 0;
|
476
472
|
text-align: center;
|
477
|
-
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
478
473
|
}
|
479
474
|
colgroup {
|
480
475
|
col {
|
@@ -1611,7 +1611,16 @@
|
|
1611
1611
|
overflow: hidden;
|
1612
1612
|
}
|
1613
1613
|
.bk-table .bk-table-body .prepend-row {
|
1614
|
-
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);
|
1615
1624
|
}
|
1616
1625
|
.bk-table .bk-table-body-content.bk-stripe table tbody tr:nth-child(even) td {
|
1617
1626
|
background-color: #fafbfd;
|
@@ -1975,7 +1984,6 @@
|
|
1975
1984
|
bottom: 0;
|
1976
1985
|
left: 0;
|
1977
1986
|
text-align: center;
|
1978
|
-
transform: translate3d(var(--translate-x), var(--translate-y), 0);
|
1979
1987
|
}
|
1980
1988
|
.bk-table colgroup col {
|
1981
1989
|
background: var(--table-bg-color);
|
@@ -616,7 +616,16 @@ var tableProps = {
|
|
616
616
|
/**
|
617
617
|
* 启用Scrollbar
|
618
618
|
*/
|
619
|
-
scrollbar: shared_namespaceObject.PropTypes.bool.def(true)
|
619
|
+
scrollbar: shared_namespaceObject.PropTypes.bool.def(true),
|
620
|
+
/**
|
621
|
+
* 固定在底部的配置项
|
622
|
+
*/
|
623
|
+
fixedBottom: (0,external_vue_types_namespaceObject.toType)('FixedBottomOption', {
|
624
|
+
"default": {
|
625
|
+
position: 'relative',
|
626
|
+
height: LINE_HEIGHT
|
627
|
+
}
|
628
|
+
}).def(null)
|
620
629
|
};
|
621
630
|
;// CONCATENATED MODULE: ../../packages/table/src/components/table-column.tsx
|
622
631
|
|