tntd 3.0.0-beta.14 → 3.0.0-beta.16

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.
@@ -276,12 +276,11 @@
276
276
  }
277
277
 
278
278
  &-footer {
279
- position: relative;
279
+ // position: relative;
280
280
  padding: @table-padding-vertical @table-padding-horizontal;
281
281
  color: @table-footer-color;
282
282
  background: @table-footer-bg;
283
283
  border-top: @border-width-base @border-style-base @border-color-split;
284
- border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
285
284
  &::before {
286
285
  position: absolute;
287
286
  top: -1px;
@@ -293,26 +292,25 @@
293
292
  }
294
293
  }
295
294
 
296
- &.@{table-prefix-cls}-bordered &-footer {
297
- border: @border-width-base @border-style-base @border-color-split;
298
- }
295
+ // &.@{table-prefix-cls}-bordered &-footer {
296
+ // border: @border-width-base @border-style-base @border-color-split;
297
+ // }
299
298
 
300
299
  &-title {
301
- position: relative;
302
- top: 1px;
300
+ // position: relative;
301
+ // top: 1px;
303
302
  padding: @table-padding-vertical 0;
304
- border-radius: @table-border-radius-base @table-border-radius-base 0 0;
305
303
  }
306
304
 
307
305
  &.@{table-prefix-cls}-bordered &-title {
308
306
  padding-right: @table-padding-horizontal;
309
307
  padding-left: @table-padding-horizontal;
310
- border: @border-width-base @border-style-base @border-color-split;
308
+ border-bottom: @border-width-base @border-style-base @border-color-split;
311
309
  }
312
310
 
313
311
  &-title + &-content {
314
- position: relative;
315
- border-radius: @table-border-radius-base @table-border-radius-base 0 0;
312
+ // position: relative;
313
+ // border-radius: @table-border-radius-base @table-border-radius-base 0 0;
316
314
 
317
315
  .@{table-prefix-cls}-bordered & {
318
316
  &,
@@ -397,41 +395,26 @@
397
395
  }
398
396
 
399
397
  &-bordered {
400
- .@{table-prefix-cls}-header > table,
401
- .@{table-prefix-cls}-body > table,
402
- .@{table-prefix-cls}-fixed-left table,
403
- .@{table-prefix-cls}-fixed-right table {
404
- border: @border-width-base @border-style-base @border-color-split;
405
- }
406
-
407
- .@{table-prefix-cls}-fixed-left table {
408
- .@{table-prefix-cls}-hide-cell-borders & {
409
- border-right: 0;
410
- }
411
- }
412
-
413
- .@{table-prefix-cls}-fixed-right table {
414
- .@{table-prefix-cls}-hide-cell-borders & {
415
- border-left: 0;
416
- }
417
- }
418
-
419
- .@{table-prefix-cls}-body > table {
420
- border-radius: @border-radius-base;
421
- }
398
+ border: @border-width-base @border-style-base @border-color-split;
399
+ border-radius: @border-radius-base;
400
+ overflow: hidden;
401
+ // .@{table-prefix-cls}-header > table,
402
+ // .@{table-prefix-cls}-body > table,
403
+ // .@{table-prefix-cls}-fixed-left table,
404
+ // .@{table-prefix-cls}-fixed-right table {
405
+ // border: @border-width-base @border-style-base @border-color-split;
406
+ // border-right: 0;
407
+ // border-bottom: 0;
408
+ // }
422
409
 
423
410
  &.@{table-prefix-cls}-empty {
424
411
  .@{table-prefix-cls}-body > table {
425
412
  border-radius: @border-radius-base @border-radius-base 0 0;
426
413
  }
427
414
  .@{table-prefix-cls}-placeholder {
428
- border: @border-width-base @border-style-base @border-color-split;
429
- border-top: none;
430
- border-radius: 0 0 @border-radius-base @border-radius-base;
431
- .@{table-prefix-cls}-has-footer & {
432
- border-bottom: none;
433
- border-radius: 0;
434
- }
415
+ // border-right: @border-width-base @border-style-base @border-color-split;
416
+ // border-left: @border-width-base @border-style-base @border-color-split;
417
+ border-bottom: 0;
435
418
  }
436
419
  }
437
420
 
@@ -459,24 +442,27 @@
459
442
  .@{table-prefix-cls}-tbody > tr > td {
460
443
  border-right: @border-width-base @border-style-base @border-color-split;
461
444
  &:last-child {
462
- border-right: none;
445
+ border-right: 0;
463
446
  }
464
447
  }
465
- .@{table-prefix-cls}-tbody > tr:last-child {
466
- & > td {
467
- border-bottom: none;
468
- &:first-child {
469
- border-bottom-left-radius: @border-radius-base;
448
+ .@{table-prefix-cls}-fixed-left {
449
+ .@{table-prefix-cls}-thead > tr > th,
450
+ .@{table-prefix-cls}-tbody > tr > td {
451
+ &:last-child {
452
+ border-right: @border-width-base @border-style-base @border-color-split;
470
453
  }
471
454
  }
472
455
  }
473
-
474
- .@{table-prefix-cls}-tbody > tr:last-child > td:last-child {
475
- border-bottom-right-radius: @border-radius-base;
476
- .@{table-prefix-cls}-has-footer & {
477
- border-bottom-right-radius: 0;
456
+ .@{table-prefix-cls}-content:has(.@{table-prefix-cls}-fixed-right) .@{table-prefix-cls}-scroll {
457
+ .@{table-prefix-cls}-thead > tr > th {
458
+ &:last-child {
459
+ border-right: @border-width-base @border-style-base @border-color-split;
460
+ }
478
461
  }
479
462
  }
463
+ .@{table-prefix-cls}-tbody > tr:last-child > td {
464
+ border-bottom: 0;
465
+ }
480
466
  }
481
467
 
482
468
  &-placeholder {
@@ -488,12 +474,9 @@
488
474
  font-size: @font-size-base;
489
475
  text-align: center;
490
476
  background: @component-background;
491
- // border-top: @border-width-base @border-style-base @border-color-split;
492
- // border-bottom: @border-width-base @border-style-base @border-color-split;
493
- border-radius: @border-radius-base;
494
- .@{table-prefix-cls}-has-footer & {
495
- border-radius: 0;
496
- }
477
+ border-top: @border-width-base @border-style-base @border-color-split;
478
+ border-bottom: @border-width-base @border-style-base @border-color-split;
479
+ // border-radius: 0 0 @border-radius-base @border-radius-base;
497
480
  }
498
481
 
499
482
  &-pagination.@{ant-prefix}-pagination {
@@ -24,9 +24,9 @@
24
24
  .@{table-prefix-cls}-small {
25
25
  border: none;
26
26
 
27
- > .ant-table-content .ant-table-row:last-child td {
27
+ // > .ant-table-content .ant-table-row:last-child td {
28
28
  // border-bottom: @border-width-base @border-style-base @border-color-split;
29
- }
29
+ // }
30
30
  }
31
31
  }
32
32
 
@@ -52,9 +52,9 @@
52
52
  }
53
53
 
54
54
  &.@{table-prefix-cls}-hide-cell-borders {
55
- .@{table-prefix-cls}-thead > tr > th:not(:last-child),
56
- .@{table-prefix-cls}-tbody > tr > td:not(:last-child) {
57
- border-right: none;
55
+ .@{table-prefix-cls}-thead > tr > th,
56
+ .@{table-prefix-cls}-tbody > tr > td {
57
+ border-right: none !important;
58
58
  }
59
59
  }
60
60
  &.@{table-prefix-cls}-hide-cell-borders {
@@ -97,6 +97,7 @@
97
97
  .@{table-prefix-cls}-placeholder {
98
98
  padding-top: @table-padding-horizontal;
99
99
  padding-bottom: @table-padding-horizontal;
100
+ border-bottom: 0;
100
101
  }
101
102
 
102
103
  // customize the loading of table
@@ -1,32 +1,109 @@
1
- import type { Meta, Story } from '@tntd/storybook-react-storykit';
2
- import { TableProps } from './';
3
- declare const _default: Meta<import("@tntd/storybook-react-storykit").Args>;
1
+ declare namespace _default {
2
+ export { Table as component };
3
+ export const title: string;
4
+ export namespace parameters {
5
+ namespace backgrounds {
6
+ const _default: string;
7
+ export { _default as default };
8
+ export const values: {
9
+ name: string;
10
+ value: string;
11
+ }[];
12
+ }
13
+ }
14
+ }
4
15
  export default _default;
5
- export declare const Empty: Story<TableProps<{
6
- key: string;
7
- name: string;
8
- age: number;
9
- address: string;
10
- }>>;
11
- export declare const Loading: Story<TableProps<{
12
- key: string;
13
- name: string;
14
- age: number;
15
- address: string;
16
- }>>;
17
- export declare const Default: Story<TableProps<{
18
- key: string;
19
- name: string;
20
- age: number;
21
- address: string;
22
- }>>;
23
- interface MockData {
24
- key: string;
25
- age: number;
26
- address: string;
27
- firstName: string;
28
- lastName: string;
29
- tags: string[];
16
+ export function Empty(args: any): React.JSX.Element;
17
+ export namespace Empty {
18
+ namespace args {
19
+ const columns: {
20
+ title: string;
21
+ dataIndex: string;
22
+ key: string;
23
+ }[];
24
+ }
25
+ }
26
+ export function Loading(args: any): React.JSX.Element;
27
+ export namespace Loading {
28
+ export namespace args_1 {
29
+ const columns_1: {
30
+ title: string;
31
+ dataIndex: string;
32
+ key: string;
33
+ }[];
34
+ export { columns_1 as columns };
35
+ export const loading: boolean;
36
+ }
37
+ export { args_1 as args };
38
+ }
39
+ export function Default(args: any): React.JSX.Element;
40
+ export namespace Default {
41
+ export namespace args_2 {
42
+ const columns_2: ({
43
+ title: string;
44
+ dataIndex: string;
45
+ key: string;
46
+ render?: undefined;
47
+ } | {
48
+ title: string;
49
+ dataIndex: string;
50
+ key: string;
51
+ render: (cellData: any) => React.JSX.Element;
52
+ })[];
53
+ export { columns_2 as columns };
54
+ export const dataSource: {
55
+ key: string;
56
+ name: string;
57
+ age: number;
58
+ address: string;
59
+ }[];
60
+ export namespace pagination {
61
+ const total: number;
62
+ const position: string;
63
+ const showSizeChanger: boolean;
64
+ const showQuickJumper: boolean;
65
+ function showTotal(total: any, range: any): string;
66
+ }
67
+ const loading_1: boolean;
68
+ export { loading_1 as loading };
69
+ }
70
+ export { args_2 as args };
71
+ }
72
+ export function ColumnFilter(args: any): React.JSX.Element;
73
+ export namespace ColumnFilter {
74
+ export namespace args_3 {
75
+ const dataSource_1: {
76
+ key: string;
77
+ firstName: string;
78
+ lastName: string;
79
+ age: number;
80
+ address: string;
81
+ tags: string[];
82
+ }[];
83
+ export { dataSource_1 as dataSource };
84
+ export namespace pagination_1 {
85
+ const total_1: number;
86
+ export { total_1 as total };
87
+ const position_1: string;
88
+ export { position_1 as position };
89
+ const showSizeChanger_1: boolean;
90
+ export { showSizeChanger_1 as showSizeChanger };
91
+ const showQuickJumper_1: boolean;
92
+ export { showQuickJumper_1 as showQuickJumper };
93
+ export function showTotal_1(total: any, range: any): string;
94
+ export { showTotal_1 as showTotal };
95
+ }
96
+ export { pagination_1 as pagination };
97
+ const loading_2: boolean;
98
+ export { loading_2 as loading };
99
+ }
100
+ export { args_3 as args };
101
+ }
102
+ export function All(): React.JSX.Element;
103
+ export namespace All {
104
+ const args_4: {};
105
+ export { args_4 as args };
30
106
  }
31
- export declare const ColumnFilter: Story<TableProps<MockData>>;
107
+ import { Table } from "./table";
108
+ import React from "react";
32
109
  //# sourceMappingURL=table.stories.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../src/table/table.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,gCAAgC,CAAA;AAIjE,OAAO,EAAS,UAAU,EAAE,MAAM,IAAI,CAAA;;AAItC,wBASS;AAmBT,eAAO,MAAM,KAAK;SAfT,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAYmB,CAAA;AAsBtC,eAAO,MAAM,OAAO;SArCX,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAkCqB,CAAA;AAuBxC,eAAO,MAAM,OAAO;SA5DX,MAAM;UACL,MAAM;SACP,MAAM;aACF,MAAM;GAyDqB,CAAA;AA6CxC,UAAU,QAAQ;IAChB,GAAG,EAAE,MAAM,CAAA;IACX,GAAG,EAAE,MAAM,CAAA;IACX,OAAO,EAAE,MAAM,CAAA;IACf,SAAS,EAAE,MAAM,CAAA;IACjB,QAAQ,EAAE,MAAM,CAAA;IAChB,IAAI,EAAE,MAAM,EAAE,CAAA;CACf;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,UAAU,CAAC,QAAQ,CAAC,CAuCpD,CAAA"}
1
+ {"version":3,"file":"table.stories.d.ts","sourceRoot":"","sources":["../../src/table/table.stories.jsx"],"names":[],"mappings":";;;;;;;;;;;;;;;AAkBA,oDAQC;;;;;;;;;;AARD,sDAQC;;;;;;;;;;;;;AARD,sDAQC;;;;;;;;;;;;;;;;;;;;;;;;;;YAuFc,mDAA2D;;;;;;;AAKnE,2DAuCN;;;;;;;;;;;;;;;;;;;;;YAkCc,4DAA6D;;;;;;;;;AAKrE,yCA0UN"}