dcp-design-react 1.8.2 → 1.8.3
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/lib/_utils/util.d.ts +1 -0
- package/lib/drawer/style/index.less +101 -101
- package/lib/hooks/useMemo.d.ts +1 -0
- package/lib/index.esm.js +1 -1
- package/lib/index.full.js +1 -1
- package/lib/index.js +1 -1
- package/lib/lazy-load/style/index.less +15 -15
- package/lib/modal/style/index.less +116 -116
- package/lib/style/index.less +40 -40
- package/lib/table/src/body/context.d.ts +4 -0
- package/lib/table/src/cell/index.d.ts +13 -0
- package/lib/table/src/cell/useCellText.d.ts +6 -0
- package/lib/table/src/{body → cell}/useValueFormat.d.ts +1 -2
- package/lib/table/src/context/index.d.ts +2 -2
- package/lib/table/src/edit/index.d.ts +1 -3
- package/lib/table/src/hooks/useImperativeMethod.d.ts +1 -2
- package/lib/table/src/hooks/useTableRef.d.ts +2 -0
- package/lib/table/src/hooks/useTableState.d.ts +3 -0
- package/lib/table/src/table/props.d.ts +1 -0
- package/lib/table/src/table/types.d.ts +1 -1
- package/lib/table/style/alert.less +32 -34
- package/lib/table/style/clipboard.less +27 -29
- package/lib/table/style/column-filter.less +0 -2
- package/lib/table/style/empty.less +17 -19
- package/lib/table/style/export.less +24 -26
- package/lib/table/style/fast-search.less +108 -110
- package/lib/table/style/footer.less +31 -33
- package/lib/table/style/full-screen.less +19 -21
- package/lib/table/style/group-summary.less +91 -93
- package/lib/table/style/header.less +205 -207
- package/lib/table/style/import.less +23 -25
- package/lib/table/style/pager.less +27 -29
- package/lib/table/style/print.less +19 -21
- package/lib/table/style/reload.less +19 -21
- package/lib/table/style/select-collection.less +19 -21
- package/lib/table/style/size.less +86 -88
- package/lib/table/style/super-search.less +100 -102
- package/lib/table/style/table.less +0 -2
- package/lib/table/style/tollbox.less +37 -39
- package/lib/table/style/toper.less +29 -31
- package/lib/table/style/variable.less +50 -48
- package/package.json +6 -6
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2022-01-11 18:01:20
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2024-02-28 21:22:17
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-lazy-load: ~'@{qm-prefix}-lazy-load';
|
|
10
|
-
|
|
11
|
-
.@{prefix-lazy-load} {
|
|
12
|
-
.placeholder {
|
|
13
|
-
min-height: 200px;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2022-01-11 18:01:20
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2024-02-28 21:22:17
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-lazy-load: ~'@{qm-prefix}-lazy-load';
|
|
10
|
+
|
|
11
|
+
.@{prefix-lazy-load} {
|
|
12
|
+
.placeholder {
|
|
13
|
+
min-height: 200px;
|
|
14
|
+
}
|
|
15
|
+
}
|
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 19:05:57
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-11-26 20:25:21
|
|
6
|
-
*/
|
|
7
|
-
@import '../../style/common';
|
|
8
|
-
|
|
9
|
-
@prefix-modal: ~'@{qm-prefix}-modal';
|
|
10
|
-
|
|
11
|
-
.@{prefix-modal} {
|
|
12
|
-
&.no-header {
|
|
13
|
-
.ant-modal-close {
|
|
14
|
-
top: 4px;
|
|
15
|
-
right: 6px;
|
|
16
|
-
}
|
|
17
|
-
.ant-modal-header {
|
|
18
|
-
height: 0;
|
|
19
|
-
border: 0;
|
|
20
|
-
.full-screen {
|
|
21
|
-
top: 4px;
|
|
22
|
-
right: 42px;
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
.ant-modal-header {
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
flex-shrink: 0;
|
|
30
|
-
height: 44px;
|
|
31
|
-
padding: 0 15px;
|
|
32
|
-
border-bottom: 1px solid @--border-color-secondary;
|
|
33
|
-
.ant-modal-title {
|
|
34
|
-
width: 100%;
|
|
35
|
-
> div {
|
|
36
|
-
display: flex;
|
|
37
|
-
align-items: center;
|
|
38
|
-
cursor: move;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
.full-screen {
|
|
42
|
-
display: inline-block;
|
|
43
|
-
text-align: center;
|
|
44
|
-
text-transform: none;
|
|
45
|
-
text-decoration: none;
|
|
46
|
-
background: transparent;
|
|
47
|
-
border: 0;
|
|
48
|
-
outline: 0;
|
|
49
|
-
position: absolute;
|
|
50
|
-
right: 34px;
|
|
51
|
-
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
52
|
-
color: @--text-color-secondary;
|
|
53
|
-
line-height: 1;
|
|
54
|
-
font-size: @--font-size-lg;
|
|
55
|
-
transition: all 0.3s ease;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
&:hover {
|
|
58
|
-
color: @--text-color;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
.ant-modal-close {
|
|
63
|
-
top: 4px;
|
|
64
|
-
font-size: @--font-size-lg;
|
|
65
|
-
padding: @--padding-md 15px @--padding-md 5px;
|
|
66
|
-
.ant-modal-close-x {
|
|
67
|
-
width: 1em;
|
|
68
|
-
height: 1em;
|
|
69
|
-
font-size: inherit;
|
|
70
|
-
line-height: 1;
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
.ant-modal-body {
|
|
74
|
-
padding: @--padding-md;
|
|
75
|
-
}
|
|
76
|
-
.spinning {
|
|
77
|
-
position: absolute;
|
|
78
|
-
top: 44px;
|
|
79
|
-
left: 0;
|
|
80
|
-
right: 0;
|
|
81
|
-
bottom: 0;
|
|
82
|
-
display: flex;
|
|
83
|
-
flex-direction: column;
|
|
84
|
-
justify-content: center;
|
|
85
|
-
align-items: center;
|
|
86
|
-
background-color: rgba(255, 255, 255, 0.65);
|
|
87
|
-
z-index: 9999;
|
|
88
|
-
.ant-spin-text {
|
|
89
|
-
margin-top: 4px;
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
// ------ size ------
|
|
93
|
-
// 52 48 44
|
|
94
|
-
&--lg {
|
|
95
|
-
.ant-modal-header {
|
|
96
|
-
height: 48px;
|
|
97
|
-
}
|
|
98
|
-
.ant-modal-close {
|
|
99
|
-
top: 6px;
|
|
100
|
-
}
|
|
101
|
-
.spinning {
|
|
102
|
-
top: 48px;
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
&--sm {
|
|
106
|
-
.ant-modal-header {
|
|
107
|
-
height: 40px;
|
|
108
|
-
}
|
|
109
|
-
.ant-modal-close {
|
|
110
|
-
top: 2px;
|
|
111
|
-
}
|
|
112
|
-
.spinning {
|
|
113
|
-
top: 40px;
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 19:05:57
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-11-26 20:25:21
|
|
6
|
+
*/
|
|
7
|
+
@import '../../style/common';
|
|
8
|
+
|
|
9
|
+
@prefix-modal: ~'@{qm-prefix}-modal';
|
|
10
|
+
|
|
11
|
+
.@{prefix-modal} {
|
|
12
|
+
&.no-header {
|
|
13
|
+
.ant-modal-close {
|
|
14
|
+
top: 4px;
|
|
15
|
+
right: 6px;
|
|
16
|
+
}
|
|
17
|
+
.ant-modal-header {
|
|
18
|
+
height: 0;
|
|
19
|
+
border: 0;
|
|
20
|
+
.full-screen {
|
|
21
|
+
top: 4px;
|
|
22
|
+
right: 42px;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
.ant-modal-header {
|
|
27
|
+
display: flex;
|
|
28
|
+
align-items: center;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
height: 44px;
|
|
31
|
+
padding: 0 15px;
|
|
32
|
+
border-bottom: 1px solid @--border-color-secondary;
|
|
33
|
+
.ant-modal-title {
|
|
34
|
+
width: 100%;
|
|
35
|
+
> div {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
cursor: move;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
.full-screen {
|
|
42
|
+
display: inline-block;
|
|
43
|
+
text-align: center;
|
|
44
|
+
text-transform: none;
|
|
45
|
+
text-decoration: none;
|
|
46
|
+
background: transparent;
|
|
47
|
+
border: 0;
|
|
48
|
+
outline: 0;
|
|
49
|
+
position: absolute;
|
|
50
|
+
right: 34px;
|
|
51
|
+
padding: @--padding-md 5px @--padding-md @--padding-md;
|
|
52
|
+
color: @--text-color-secondary;
|
|
53
|
+
line-height: 1;
|
|
54
|
+
font-size: @--font-size-lg;
|
|
55
|
+
transition: all 0.3s ease;
|
|
56
|
+
cursor: pointer;
|
|
57
|
+
&:hover {
|
|
58
|
+
color: @--text-color;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
.ant-modal-close {
|
|
63
|
+
top: 4px;
|
|
64
|
+
font-size: @--font-size-lg;
|
|
65
|
+
padding: @--padding-md 15px @--padding-md 5px;
|
|
66
|
+
.ant-modal-close-x {
|
|
67
|
+
width: 1em;
|
|
68
|
+
height: 1em;
|
|
69
|
+
font-size: inherit;
|
|
70
|
+
line-height: 1;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
.ant-modal-body {
|
|
74
|
+
padding: @--padding-md;
|
|
75
|
+
}
|
|
76
|
+
.spinning {
|
|
77
|
+
position: absolute;
|
|
78
|
+
top: 44px;
|
|
79
|
+
left: 0;
|
|
80
|
+
right: 0;
|
|
81
|
+
bottom: 0;
|
|
82
|
+
display: flex;
|
|
83
|
+
flex-direction: column;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
align-items: center;
|
|
86
|
+
background-color: rgba(255, 255, 255, 0.65);
|
|
87
|
+
z-index: 9999;
|
|
88
|
+
.ant-spin-text {
|
|
89
|
+
margin-top: 4px;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
// ------ size ------
|
|
93
|
+
// 52 48 44
|
|
94
|
+
&--lg {
|
|
95
|
+
.ant-modal-header {
|
|
96
|
+
height: 48px;
|
|
97
|
+
}
|
|
98
|
+
.ant-modal-close {
|
|
99
|
+
top: 6px;
|
|
100
|
+
}
|
|
101
|
+
.spinning {
|
|
102
|
+
top: 48px;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&--sm {
|
|
106
|
+
.ant-modal-header {
|
|
107
|
+
height: 40px;
|
|
108
|
+
}
|
|
109
|
+
.ant-modal-close {
|
|
110
|
+
top: 2px;
|
|
111
|
+
}
|
|
112
|
+
.spinning {
|
|
113
|
+
top: 40px;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
}
|
package/lib/style/index.less
CHANGED
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2021-07-23 18:23:59
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2024-02-28 21:23:42
|
|
6
|
-
*/
|
|
7
|
-
@import '../antd/index.less';
|
|
8
|
-
@import './var.less';
|
|
9
|
-
@import './reset.less';
|
|
10
|
-
|
|
11
|
-
/* QmDesign */
|
|
12
|
-
@import '../button/style/index.less';
|
|
13
|
-
@import '../space/style/index.less';
|
|
14
|
-
@import '../divider/style/index.less';
|
|
15
|
-
@import '../split/style/index.less';
|
|
16
|
-
@import '../countup/style/index.less';
|
|
17
|
-
@import '../empty/style/index.less';
|
|
18
|
-
@import '../spin/style/index.less';
|
|
19
|
-
@import '../scrollbar/style/index.less';
|
|
20
|
-
@import '../download/style/index.less';
|
|
21
|
-
@import '../anchor/style/index.less';
|
|
22
|
-
@import '../tabs/style/index.less';
|
|
23
|
-
@import '../drawer/style/index.less';
|
|
24
|
-
@import '../modal/style/index.less';
|
|
25
|
-
@import '../form/style/index.less';
|
|
26
|
-
@import '../tinymce/style/index.less';
|
|
27
|
-
@import '../cropper/style/index.less';
|
|
28
|
-
@import '../collapse/style/index.less';
|
|
29
|
-
@import '../upload-file/style/index.less';
|
|
30
|
-
@import '../upload-img/style/index.less';
|
|
31
|
-
@import '../table/style/index.less';
|
|
32
|
-
@import '../search-helper/style/index.less';
|
|
33
|
-
@import '../tree-helper/style/index.less';
|
|
34
|
-
@import '../tree-table-helper/style/index.less';
|
|
35
|
-
@import '../range-table-helper/style/index.less';
|
|
36
|
-
@import '../search-tree/style/index.less';
|
|
37
|
-
@import '../tour/style/index.less';
|
|
38
|
-
@import '../guide-tracker/style/index.less';
|
|
39
|
-
@import '../print/style/index.less';
|
|
40
|
-
@import '../lazy-load/style/index.less';
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2021-07-23 18:23:59
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2024-02-28 21:23:42
|
|
6
|
+
*/
|
|
7
|
+
@import '../antd/index.less';
|
|
8
|
+
@import './var.less';
|
|
9
|
+
@import './reset.less';
|
|
10
|
+
|
|
11
|
+
/* QmDesign */
|
|
12
|
+
@import '../button/style/index.less';
|
|
13
|
+
@import '../space/style/index.less';
|
|
14
|
+
@import '../divider/style/index.less';
|
|
15
|
+
@import '../split/style/index.less';
|
|
16
|
+
@import '../countup/style/index.less';
|
|
17
|
+
@import '../empty/style/index.less';
|
|
18
|
+
@import '../spin/style/index.less';
|
|
19
|
+
@import '../scrollbar/style/index.less';
|
|
20
|
+
@import '../download/style/index.less';
|
|
21
|
+
@import '../anchor/style/index.less';
|
|
22
|
+
@import '../tabs/style/index.less';
|
|
23
|
+
@import '../drawer/style/index.less';
|
|
24
|
+
@import '../modal/style/index.less';
|
|
25
|
+
@import '../form/style/index.less';
|
|
26
|
+
@import '../tinymce/style/index.less';
|
|
27
|
+
@import '../cropper/style/index.less';
|
|
28
|
+
@import '../collapse/style/index.less';
|
|
29
|
+
@import '../upload-file/style/index.less';
|
|
30
|
+
@import '../upload-img/style/index.less';
|
|
31
|
+
@import '../table/style/index.less';
|
|
32
|
+
@import '../search-helper/style/index.less';
|
|
33
|
+
@import '../tree-helper/style/index.less';
|
|
34
|
+
@import '../tree-table-helper/style/index.less';
|
|
35
|
+
@import '../range-table-helper/style/index.less';
|
|
36
|
+
@import '../search-tree/style/index.less';
|
|
37
|
+
@import '../tour/style/index.less';
|
|
38
|
+
@import '../guide-tracker/style/index.less';
|
|
39
|
+
@import '../print/style/index.less';
|
|
40
|
+
@import '../lazy-load/style/index.less';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { IColumn, IRecord, IRowKey } from '../table/types';
|
|
3
|
+
type ICellProps = {
|
|
4
|
+
row: IRecord;
|
|
5
|
+
column: IColumn;
|
|
6
|
+
rowIndex: number;
|
|
7
|
+
columnIndex: number;
|
|
8
|
+
rowKey: IRowKey;
|
|
9
|
+
depth: number;
|
|
10
|
+
showTitle?: boolean;
|
|
11
|
+
};
|
|
12
|
+
declare const Cell: React.ForwardRefExoticComponent<ICellProps & React.RefAttributes<any>>;
|
|
13
|
+
export default Cell;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { IColumn, IRecord } from '../table/types';
|
|
2
|
+
export declare const useCellText: () => {
|
|
3
|
+
renderText: (text: string | number, column: IColumn, row: IRecord) => string | number;
|
|
4
|
+
getTitleFromCellNode: (vNode: React.ReactNode | string | number) => string;
|
|
5
|
+
getTitleFromCellValue: (row: IRecord, column: IColumn, rowIndex: number, columnIndex: number) => string;
|
|
6
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const useValueFormat: () => {
|
|
1
|
+
export declare const useValueFormat: () => {
|
|
2
2
|
dateFormat: (val: string) => string;
|
|
3
3
|
datetimeFormat: (val: string) => string;
|
|
4
4
|
dateShortTimeFormat: (val: string) => string;
|
|
@@ -9,4 +9,3 @@ declare const useValueFormat: () => {
|
|
|
9
9
|
secretIDnumberFormat: (val: string) => string;
|
|
10
10
|
secretBankNumberFormat: (val: string) => string;
|
|
11
11
|
};
|
|
12
|
-
export default useValueFormat;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import type { TableBodyRef, IColumn, IDerivedRowKey, IFetchParams, IPagination, IRecord, IRowColSpan, IRowKey, IRule
|
|
2
|
+
import type { TableBodyRef, IColumn, IDerivedRowKey, IFetchParams, IPagination, IRecord, IRowColSpan, IRowKey, IRule } from '../table/types';
|
|
3
3
|
import type { ITableRef } from '../hooks/useTableRef';
|
|
4
4
|
import type { ITableState } from '../hooks/useTableState';
|
|
5
5
|
import type { ComponentSize } from '../../../_utils/types';
|
|
6
6
|
export type ITableContext = {
|
|
7
7
|
getRowKey: (row: IRecord, index: number) => IRowKey;
|
|
8
|
-
tableProps: ITableProps;
|
|
9
8
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
10
9
|
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
11
10
|
$size: ComponentSize;
|
|
@@ -29,6 +28,7 @@ export type ITableContext = {
|
|
|
29
28
|
selectionKeys: IRowKey[];
|
|
30
29
|
rowExpandedKeys: ITableState['rowExpandedKeys'];
|
|
31
30
|
highlightKey: IRowKey;
|
|
31
|
+
updateMark: ITableState['updateMark'];
|
|
32
32
|
isFetch: boolean;
|
|
33
33
|
isPingLeft: boolean;
|
|
34
34
|
isPingRight: boolean;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { ITableRef } from './useTableRef';
|
|
3
|
-
import type { getRowKeyType,
|
|
3
|
+
import type { getRowKeyType, IColumn, IFetchParams, IPagination, IRecord, IRowKey, IRule, IValidItem, TableRef, ToolBoxRef, TableBodyRef, ColumnDefineRef } from '../table/types';
|
|
4
4
|
type IExtra = {
|
|
5
5
|
getRowKey: getRowKeyType;
|
|
6
|
-
tableProps: ITableProps;
|
|
7
6
|
tableRef: React.MutableRefObject<ITableRef>;
|
|
8
7
|
toolBoxRef: React.RefObject<ToolBoxRef>;
|
|
9
8
|
tableBodyRef: React.RefObject<TableBodyRef>;
|
|
@@ -3,6 +3,7 @@ import Store from '../store';
|
|
|
3
3
|
import type { getRowKeyType, IColumn, IDerivedRowKey, IFieldAuthItem, IMergeCell, InsertMode, IRecord, IRowKey, ITableProps } from '../table/types';
|
|
4
4
|
import type { ComponentSize, Nullable } from '../../../_utils/types';
|
|
5
5
|
export type ITableRef = {
|
|
6
|
+
props: ITableProps;
|
|
6
7
|
uid: string;
|
|
7
8
|
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
8
9
|
originColumns: IColumn[];
|
|
@@ -70,6 +71,7 @@ declare const useTableRef: <T extends ITableProps>(props: T, { getRowKey, $size
|
|
|
70
71
|
setHandleChange: (value: boolean) => void;
|
|
71
72
|
clearElementStore: () => void;
|
|
72
73
|
clearRecordsMap: () => void;
|
|
74
|
+
props: ITableProps;
|
|
73
75
|
uid: string;
|
|
74
76
|
elementStore: Record<string, Nullable<HTMLElement>>;
|
|
75
77
|
originColumns: IColumn[];
|
|
@@ -9,6 +9,7 @@ export type ITableState = {
|
|
|
9
9
|
selectionKeys: IRowKey[];
|
|
10
10
|
rowExpandedKeys: IRowKey[];
|
|
11
11
|
highlightKey: IRowKey;
|
|
12
|
+
updateMark: number;
|
|
12
13
|
layout: {
|
|
13
14
|
gutterWidth: number;
|
|
14
15
|
tableWidth: number;
|
|
@@ -49,6 +50,8 @@ declare const useTableState: <T extends ITableProps>(props: T) => {
|
|
|
49
50
|
setRowExpandedKeys: React.Dispatch<(string | number)[]>;
|
|
50
51
|
highlightKey: string | number;
|
|
51
52
|
setHighlightKey: React.Dispatch<React.SetStateAction<string | number>>;
|
|
53
|
+
updateMark: number;
|
|
54
|
+
forceUpdate: React.DispatchWithoutAction;
|
|
52
55
|
layout: {
|
|
53
56
|
gutterWidth: number;
|
|
54
57
|
tableWidth: number;
|
|
@@ -109,6 +109,7 @@ export declare const propTypes: {
|
|
|
109
109
|
unit: PropTypes.Requireable<string>;
|
|
110
110
|
render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
111
111
|
}>>;
|
|
112
|
+
shouldCellUpdate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
112
113
|
headRender: PropTypes.Requireable<(...args: any[]) => any>;
|
|
113
114
|
render: PropTypes.Requireable<(...args: any[]) => any>;
|
|
114
115
|
}> | null | undefined)[]>;
|
|
@@ -300,6 +300,7 @@ export type IColumn = {
|
|
|
300
300
|
unit?: string;
|
|
301
301
|
render?: () => React.ReactNode;
|
|
302
302
|
};
|
|
303
|
+
shouldCellUpdate?: (currentRow: IRecord, prevRow: IRecord) => boolean;
|
|
303
304
|
headRender?: (column: IColumn, tableData: IRecord[]) => React.ReactNode;
|
|
304
305
|
render?: (text: string | number, row: IRecord, column: IColumn, rowIndex: number, columnIndex: number) => React.ReactNode | string | number;
|
|
305
306
|
};
|
|
@@ -431,7 +432,6 @@ export type TableRef = {
|
|
|
431
432
|
};
|
|
432
433
|
};
|
|
433
434
|
export type TableBodyRef = {
|
|
434
|
-
renderCellTitle: (column: IColumn, row: IRecord, rowIndex: number, columnIndex: number) => string;
|
|
435
435
|
setClickedValues: (clicked: IClicked) => void;
|
|
436
436
|
createFocus: (rowKey: IRowKey, dataIndex: string) => void;
|
|
437
437
|
forceUpdate: () => void;
|
|
@@ -1,34 +1,32 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-03-18 10:26:46
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-12-28 21:55:44
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-18 10:26:46
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-12-28 21:55:44
|
|
6
|
+
*/
|
|
7
|
+
.@{prefix-table}__alert {
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
position: relative;
|
|
11
|
+
margin-right: @v-module-distance;
|
|
12
|
+
padding: 0 6px 0 30px;
|
|
13
|
+
border: 1px solid @v-table-border-color;
|
|
14
|
+
border-radius: @v-border-radius;
|
|
15
|
+
background-color: @v-table-header-background-color;
|
|
16
|
+
.box-sizing-content();
|
|
17
|
+
.icon {
|
|
18
|
+
position: absolute;
|
|
19
|
+
left: @v-module-distance;
|
|
20
|
+
line-height: 1;
|
|
21
|
+
font-size: 1.05em;
|
|
22
|
+
color: @v-primary-color;
|
|
23
|
+
}
|
|
24
|
+
em {
|
|
25
|
+
display: inline-block;
|
|
26
|
+
color: @v-primary-color;
|
|
27
|
+
padding: 0 @v-module-distance;
|
|
28
|
+
margin-right: -5px;
|
|
29
|
+
font-style: normal;
|
|
30
|
+
cursor: pointer;
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,29 +1,27 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-03-26 11:26:46
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2022-05-17 14:16:51
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
}
|
|
29
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-03-26 11:26:46
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2022-05-17 14:16:51
|
|
6
|
+
*/
|
|
7
|
+
.@{prefix-table}-clipboard {
|
|
8
|
+
display: inline-block;
|
|
9
|
+
padding: 5px 3px;
|
|
10
|
+
line-height: 1;
|
|
11
|
+
cursor: pointer;
|
|
12
|
+
transition: all 0.3s ease;
|
|
13
|
+
.icon {
|
|
14
|
+
font-size: 1.05em;
|
|
15
|
+
}
|
|
16
|
+
&:hover {
|
|
17
|
+
color: @v-primary-color;
|
|
18
|
+
}
|
|
19
|
+
&__setting {
|
|
20
|
+
.info {
|
|
21
|
+
padding-left: 20px;
|
|
22
|
+
margin-bottom: 6px;
|
|
23
|
+
font-size: @v-font-size-small;
|
|
24
|
+
color: @v-font-secondary-dark-color;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -1,19 +1,17 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* @Author: 焦质晔
|
|
3
|
-
* @Date: 2020-05-19 19:18:15
|
|
4
|
-
* @Last Modified by: 焦质晔
|
|
5
|
-
* @Last Modified time: 2021-09-12 22:09:00
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
}
|
|
19
|
-
}
|
|
1
|
+
/*
|
|
2
|
+
* @Author: 焦质晔
|
|
3
|
+
* @Date: 2020-05-19 19:18:15
|
|
4
|
+
* @Last Modified by: 焦质晔
|
|
5
|
+
* @Last Modified time: 2021-09-12 22:09:00
|
|
6
|
+
*/
|
|
7
|
+
.@{prefix-table}--empty {
|
|
8
|
+
display: flex;
|
|
9
|
+
justify-content: center;
|
|
10
|
+
align-items: center;
|
|
11
|
+
position: absolute;
|
|
12
|
+
width: 100%;
|
|
13
|
+
pointer-events: none;
|
|
14
|
+
.ant-empty-image {
|
|
15
|
+
margin-bottom: 0;
|
|
16
|
+
}
|
|
17
|
+
}
|