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.
@@ -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 {};
@@ -1224,7 +1224,16 @@
1224
1224
  overflow: hidden;
1225
1225
  }
1226
1226
  .bk-table .bk-table-body .prepend-row {
1227
- transform: translateX(var(--prepend-left));
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);
@@ -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;
@@ -32,7 +32,17 @@
32
32
  overflow: hidden;
33
33
 
34
34
  .prepend-row {
35
- transform: translateX(var(--prepend-left));
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: translateX(var(--prepend-left));
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
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkui-vue",
3
- "version": "2.0.1-beta.15.table.7",
3
+ "version": "2.0.1-beta.15.table.8",
4
4
  "workspaces": [
5
5
  "packages/**",
6
6
  "scripts/cli",