tntd 2.8.0-beta.15 → 2.8.0-beta.17
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/es/descriptions/style/index.less +1 -0
- package/es/drawer/drawer.js +9 -3
- package/es/drawer/drawer.js.map +1 -1
- package/es/handle-icon/index.less +3 -0
- package/es/modal/style/modal.less +1 -1
- package/es/table/style/index.less +47 -23
- package/es/table/style_/index.js +10 -0
- package/es/table/style_/index.js.map +1 -0
- package/es/table/style_antd/index.js +10 -0
- package/es/table/style_antd/index.js.map +1 -0
- package/es/table/table.less +5 -5
- package/es/table/table.stories.js +413 -2
- package/es/table/table.stories.js.map +1 -1
- package/es/table-container/index.less +10 -10
- package/lib/descriptions/style/index.less +1 -0
- package/lib/drawer/drawer.d.ts +2 -0
- package/lib/drawer/drawer.d.ts.map +1 -1
- package/lib/drawer/drawer.js +8 -2
- package/lib/drawer/drawer.js.map +1 -1
- package/lib/handle-icon/index.less +3 -0
- package/lib/modal/style/modal.less +1 -1
- package/lib/table/style/index.less +47 -23
- package/lib/table/style_/index.d.ts +9 -0
- package/lib/table/style_/index.d.ts.map +1 -0
- package/lib/table/style_/index.js +10 -0
- package/lib/table/style_/index.js.map +1 -0
- package/lib/table/style_antd/index.d.ts +9 -0
- package/lib/table/style_antd/index.d.ts.map +1 -0
- package/lib/table/style_antd/index.js +10 -0
- package/lib/table/style_antd/index.js.map +1 -0
- package/lib/table/table.less +5 -5
- package/lib/table/table.stories.d.ts +106 -29
- package/lib/table/table.stories.d.ts.map +1 -1
- package/lib/table/table.stories.js +426 -3
- package/lib/table/table.stories.js.map +1 -1
- package/lib/table-container/index.less +10 -10
- package/package.json +2 -2
|
@@ -258,12 +258,11 @@
|
|
|
258
258
|
}
|
|
259
259
|
|
|
260
260
|
&-footer {
|
|
261
|
-
position: relative;
|
|
261
|
+
// position: relative;
|
|
262
262
|
padding: @table-padding-vertical @table-padding-horizontal;
|
|
263
263
|
color: @table-footer-color;
|
|
264
264
|
background: @table-footer-bg;
|
|
265
265
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
266
|
-
border-radius: 0 0 @table-border-radius-base @table-border-radius-base;
|
|
267
266
|
&::before {
|
|
268
267
|
position: absolute;
|
|
269
268
|
top: -1px;
|
|
@@ -275,26 +274,25 @@
|
|
|
275
274
|
}
|
|
276
275
|
}
|
|
277
276
|
|
|
278
|
-
&.@{table-prefix-cls}-bordered &-footer {
|
|
279
|
-
|
|
280
|
-
}
|
|
277
|
+
// &.@{table-prefix-cls}-bordered &-footer {
|
|
278
|
+
// border: @border-width-base @border-style-base @border-color-split;
|
|
279
|
+
// }
|
|
281
280
|
|
|
282
281
|
&-title {
|
|
283
|
-
position: relative;
|
|
284
|
-
top: 1px;
|
|
282
|
+
// position: relative;
|
|
283
|
+
// top: 1px;
|
|
285
284
|
padding: @table-padding-vertical 0;
|
|
286
|
-
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
287
285
|
}
|
|
288
286
|
|
|
289
287
|
&.@{table-prefix-cls}-bordered &-title {
|
|
290
288
|
padding-right: @table-padding-horizontal;
|
|
291
289
|
padding-left: @table-padding-horizontal;
|
|
292
|
-
border: @border-width-base @border-style-base @border-color-split;
|
|
290
|
+
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
293
291
|
}
|
|
294
292
|
|
|
295
293
|
&-title + &-content {
|
|
296
|
-
position: relative;
|
|
297
|
-
border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
294
|
+
// position: relative;
|
|
295
|
+
// border-radius: @table-border-radius-base @table-border-radius-base 0 0;
|
|
298
296
|
|
|
299
297
|
.@{table-prefix-cls}-bordered & {
|
|
300
298
|
&,
|
|
@@ -375,19 +373,23 @@
|
|
|
375
373
|
}
|
|
376
374
|
|
|
377
375
|
&-bordered {
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
.@{table-prefix-cls}-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
376
|
+
border: @border-width-base @border-style-base @border-color-split;
|
|
377
|
+
border-radius: @border-radius-base;
|
|
378
|
+
overflow: hidden;
|
|
379
|
+
// .@{table-prefix-cls}-header > table,
|
|
380
|
+
// .@{table-prefix-cls}-body > table,
|
|
381
|
+
// .@{table-prefix-cls}-fixed-left table,
|
|
382
|
+
// .@{table-prefix-cls}-fixed-right table {
|
|
383
|
+
// border: @border-width-base @border-style-base @border-color-split;
|
|
384
|
+
// border-right: 0;
|
|
385
|
+
// border-bottom: 0;
|
|
386
|
+
// }
|
|
386
387
|
|
|
387
388
|
&.@{table-prefix-cls}-empty {
|
|
388
389
|
.@{table-prefix-cls}-placeholder {
|
|
389
|
-
border-right: @border-width-base @border-style-base @border-color-split;
|
|
390
|
-
border-left: @border-width-base @border-style-base @border-color-split;
|
|
390
|
+
// border-right: @border-width-base @border-style-base @border-color-split;
|
|
391
|
+
// border-left: @border-width-base @border-style-base @border-color-split;
|
|
392
|
+
border-bottom: 0;
|
|
391
393
|
}
|
|
392
394
|
}
|
|
393
395
|
|
|
@@ -414,6 +416,27 @@
|
|
|
414
416
|
.@{table-prefix-cls}-thead > tr > th,
|
|
415
417
|
.@{table-prefix-cls}-tbody > tr > td {
|
|
416
418
|
border-right: @border-width-base @border-style-base @border-color-split;
|
|
419
|
+
&:last-child {
|
|
420
|
+
border-right: 0;
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
.@{table-prefix-cls}-fixed-left {
|
|
424
|
+
.@{table-prefix-cls}-thead > tr > th,
|
|
425
|
+
.@{table-prefix-cls}-tbody > tr > td {
|
|
426
|
+
&:last-child {
|
|
427
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
.@{table-prefix-cls}-content:has(.@{table-prefix-cls}-fixed-right) .@{table-prefix-cls}-scroll {
|
|
432
|
+
.@{table-prefix-cls}-thead > tr > th {
|
|
433
|
+
&:last-child {
|
|
434
|
+
border-right: @border-width-base @border-style-base @border-color-split;
|
|
435
|
+
}
|
|
436
|
+
}
|
|
437
|
+
}
|
|
438
|
+
.@{table-prefix-cls}-tbody > tr:last-child > td {
|
|
439
|
+
border-bottom: 0;
|
|
417
440
|
}
|
|
418
441
|
}
|
|
419
442
|
|
|
@@ -428,7 +451,7 @@
|
|
|
428
451
|
background: @component-background;
|
|
429
452
|
border-top: @border-width-base @border-style-base @border-color-split;
|
|
430
453
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
431
|
-
border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
454
|
+
// border-radius: 0 0 @border-radius-base @border-radius-base;
|
|
432
455
|
}
|
|
433
456
|
|
|
434
457
|
&-pagination.@{ant-prefix}-pagination {
|
|
@@ -604,7 +627,8 @@
|
|
|
604
627
|
}
|
|
605
628
|
|
|
606
629
|
td > .@{table-prefix-cls}-wrapper {
|
|
607
|
-
margin: -@table-padding-vertical -@table-padding-horizontal
|
|
630
|
+
margin: -@table-padding-vertical -@table-padding-horizontal
|
|
631
|
+
calc(-@table-padding-vertical - 1px);
|
|
608
632
|
}
|
|
609
633
|
}
|
|
610
634
|
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../style/index.less';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import '../../empty/style';
|
|
4
|
+
import '../../radio/style';
|
|
5
|
+
import '../../checkbox/style';
|
|
6
|
+
import '../../dropdown/style';
|
|
7
|
+
import '../../spin/style';
|
|
8
|
+
import '../../pagination/style';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/style_/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAA;AAC/B,OAAO,cAAc,CAAA;AAIrB,OAAO,mBAAmB,CAAA;AAC1B,OAAO,mBAAmB,CAAA;AAC1B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,sBAAsB,CAAA;AAC7B,OAAO,kBAAkB,CAAA;AACzB,OAAO,wBAAwB,CAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("../../style/index.less");
|
|
4
|
+
require("./index.less");
|
|
5
|
+
require("../../empty/style");
|
|
6
|
+
require("../../radio/style");
|
|
7
|
+
require("../../checkbox/style");
|
|
8
|
+
require("../../dropdown/style");
|
|
9
|
+
require("../../spin/style");
|
|
10
|
+
require("../../pagination/style");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/style_/index.tsx"],"names":[],"mappings":";;AAAA,kCAA+B;AAC/B,wBAAqB;AAErB,qBAAqB;AACrB,uBAAuB;AACvB,6BAA0B;AAC1B,6BAA0B;AAC1B,gCAA6B;AAC7B,gCAA6B;AAC7B,4BAAyB;AACzB,kCAA+B","sourcesContent":["import '../../style/index.less'\nimport './index.less'\n\n// style dependencies\n// deps-lint-skip: menu\nimport '../../empty/style'\nimport '../../radio/style'\nimport '../../checkbox/style'\nimport '../../dropdown/style'\nimport '../../spin/style'\nimport '../../pagination/style'\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../../style/index.less';
|
|
2
|
+
import './index.less';
|
|
3
|
+
import '../../empty/style';
|
|
4
|
+
import '../../radio/style';
|
|
5
|
+
import '../../checkbox/style';
|
|
6
|
+
import '../../dropdown/style';
|
|
7
|
+
import '../../spin/style';
|
|
8
|
+
import '../../pagination/style';
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/table/style_antd/index.tsx"],"names":[],"mappings":"AAAA,OAAO,wBAAwB,CAAC;AAChC,OAAO,cAAc,CAAC;AAItB,OAAO,mBAAmB,CAAC;AAC3B,OAAO,mBAAmB,CAAC;AAC3B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,sBAAsB,CAAC;AAC9B,OAAO,kBAAkB,CAAC;AAC1B,OAAO,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
require("../../style/index.less");
|
|
4
|
+
require("./index.less");
|
|
5
|
+
require("../../empty/style");
|
|
6
|
+
require("../../radio/style");
|
|
7
|
+
require("../../checkbox/style");
|
|
8
|
+
require("../../dropdown/style");
|
|
9
|
+
require("../../spin/style");
|
|
10
|
+
require("../../pagination/style");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/table/style_antd/index.tsx"],"names":[],"mappings":";;AAAA,kCAAgC;AAChC,wBAAsB;AAEtB,qBAAqB;AACrB,uBAAuB;AACvB,6BAA2B;AAC3B,6BAA2B;AAC3B,gCAA8B;AAC9B,gCAA8B;AAC9B,4BAA0B;AAC1B,kCAAgC","sourcesContent":["import '../../style/index.less';\nimport './index.less';\n\n// style dependencies\n// deps-lint-skip: menu\nimport '../../empty/style';\nimport '../../radio/style';\nimport '../../checkbox/style';\nimport '../../dropdown/style';\nimport '../../spin/style';\nimport '../../pagination/style';\n"]}
|
package/lib/table/table.less
CHANGED
|
@@ -3,9 +3,8 @@
|
|
|
3
3
|
@spin-prefix-cls: ~'@{ant-prefix}-spin';
|
|
4
4
|
@table-borderless-shadow: 0 0 14px rgba(0, 0, 0, 0.08);
|
|
5
5
|
|
|
6
|
-
|
|
7
6
|
// .@{table-prefix-cls} {
|
|
8
|
-
.tnt-table-wrapper{
|
|
7
|
+
.tnt-table-wrapper {
|
|
9
8
|
background-color: @white;
|
|
10
9
|
border-radius: @border-radius-base;
|
|
11
10
|
|
|
@@ -30,9 +29,9 @@
|
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
&.@{table-prefix-cls}-hide-cell-borders {
|
|
33
|
-
.@{table-prefix-cls}-thead > tr > th
|
|
34
|
-
.@{table-prefix-cls}-tbody > tr > td
|
|
35
|
-
border-right: none;
|
|
32
|
+
.@{table-prefix-cls}-thead > tr > th,
|
|
33
|
+
.@{table-prefix-cls}-tbody > tr > td {
|
|
34
|
+
border-right: none !important;
|
|
36
35
|
}
|
|
37
36
|
}
|
|
38
37
|
|
|
@@ -68,6 +67,7 @@
|
|
|
68
67
|
.@{table-prefix-cls}-placeholder {
|
|
69
68
|
padding-top: @table-padding-horizontal;
|
|
70
69
|
padding-bottom: @table-padding-horizontal;
|
|
70
|
+
border-bottom: 0;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// customize the loading of table
|
|
@@ -1,32 +1,109 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
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
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
export
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
-
|
|
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.
|
|
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"}
|