@arim-aisdc/public-components 2.3.39 → 2.3.41
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/LICENSE +21 -21
- package/README.md +3 -3
- package/dist/assets/iconfont/index.css +6 -6
- package/dist/assets/iconfont/menu-gray/demo.css +539 -539
- package/dist/assets/iconfont/menu-gray/demo_index.html +1154 -1154
- package/dist/assets/iconfont/menu-gray/iconfont.css +183 -183
- package/dist/assets/iconfont/menu-gray/iconfont.json +303 -303
- package/dist/assets/iconfont/other/demo.css +539 -539
- package/dist/assets/iconfont/other/demo_index.html +2764 -2764
- package/dist/assets/iconfont/other/iconfont.css +463 -463
- package/dist/assets/iconfont/other/iconfont.json +793 -793
- package/dist/assets/iconfont/public/iconfont.css +69 -69
- package/dist/assets/iconfont/table/iconfont.css +89 -81
- package/dist/assets/iconfont/table/iconfont.ttf +0 -0
- package/dist/assets/iconfont/theme-dark/four/demo.css +539 -539
- package/dist/assets/iconfont/theme-dark/four/demo_index.html +306 -306
- package/dist/assets/iconfont/theme-dark/four/iconfont.css +37 -37
- package/dist/assets/iconfont/theme-dark/four/iconfont.json +44 -44
- package/dist/assets/images/data-empty-dark.svg +103 -103
- package/dist/assets/images/data-empty-light.svg +73 -73
- package/dist/assets/images/data.empty-dark.svg +44 -44
- package/dist/assets/styles/custom-dark.css +28466 -28466
- package/dist/assets/styles/custom-light.css +28092 -28092
- package/dist/components/BaseInfo/index.less +95 -95
- package/dist/components/CacheTabs/index.less +115 -115
- package/dist/components/CenterModal/index.less +41 -41
- package/dist/components/ConditionExpression/index.less +111 -111
- package/dist/components/CustomForm/CustomForm.js +5 -5
- package/dist/components/CustomForm/UploadImg/index.js +5 -5
- package/dist/components/CustomForm/customFormItemInputNumber/index.less +12 -12
- package/dist/components/CustomForm/index.less +76 -76
- package/dist/components/DraggableBox/index.less +26 -26
- package/dist/components/Empty/index.less +21 -21
- package/dist/components/Filter/FilterColor/index.less +106 -106
- package/dist/components/Filter/FilterInputNumber/index.less +15 -15
- package/dist/components/Filter/FilterRadio/index.less +25 -25
- package/dist/components/Filter/FilterSelect/index.less +28 -28
- package/dist/components/Filter/FilterSlider/index.less +19 -19
- package/dist/components/Filter/FilterSwitch/index.less +20 -20
- package/dist/components/GlobalTip/MessageTip/index.less +28 -28
- package/dist/components/GlobalTip/ModalTip/index.less +42 -42
- package/dist/components/Icon/IconDemo/animations/Calendar/calendar.json +692 -692
- package/dist/components/Icon/IconDemo/animations/Loading/loading.json +869 -869
- package/dist/components/Icon/IconDemo/animations/download/download.json +815 -815
- package/dist/components/Icon/IconDemo/animations/download/download.svg +5 -5
- package/dist/components/Icon/IconDemo/animations/skipForward/skipForward.json +1053 -1053
- package/dist/components/Icon/index.less +28 -28
- package/dist/components/QueryFilter/QueryFilter.js +5 -5
- package/dist/components/QueryFilter/index.less +64 -64
- package/dist/components/SchemaForm/type.js +2 -2
- package/dist/components/SchemaForm/utils.js +7 -7
- package/dist/components/SplitPane/splitPane.less +24 -24
- package/dist/components/SplitPane/util.js +21 -21
- package/dist/components/SplitterPane/SplitterPane.js +46 -1
- package/dist/components/TableMax/TableBody/contextMenu/index.less +21 -21
- package/dist/components/TableMax/TableBody/index.less +187 -187
- package/dist/components/TableMax/TableHeader/Cell.d.ts +2 -1
- package/dist/components/TableMax/TableHeader/Cell.js +4 -2
- package/dist/components/TableMax/TableHeader/index.d.ts +2 -1
- package/dist/components/TableMax/TableHeader/index.js +4 -2
- package/dist/components/TableMax/TableHeader/index.less +224 -224
- package/dist/components/TableMax/TableMax.js +59 -28
- package/dist/components/TableMax/components/ColumnEdit/components/numberRange/index.less +2 -2
- package/dist/components/TableMax/components/ColumnEdit/index.less +72 -72
- package/dist/components/TableMax/components/ColumnFilterV2/DateRange/index.less +24 -24
- package/dist/components/TableMax/components/ColumnFilterV2/Filter.d.ts +1 -0
- package/dist/components/TableMax/components/ColumnFilterV2/Filter.js +77 -14
- package/dist/components/TableMax/components/ColumnFilterV2/MultipleSelect/index.less +32 -32
- package/dist/components/TableMax/components/ColumnFilterV2/NumberRange/index.less +27 -27
- package/dist/components/TableMax/components/ColumnFilterV2/SingleSelect/index.less +43 -43
- package/dist/components/TableMax/components/ColumnFilterV2/index.d.ts +3 -1
- package/dist/components/TableMax/components/ColumnFilterV2/index.js +19 -3
- package/dist/components/TableMax/components/ColumnFilterV2/index.less +39 -39
- package/dist/components/TableMax/components/ColumnSetting/index.js +7 -3
- package/dist/components/TableMax/components/ColumnSetting/index.less +183 -183
- package/dist/components/TableMax/components/ColumnSort/customSortFns.d.ts +8 -8
- package/dist/components/TableMax/components/ColumnSort/index.less +42 -42
- package/dist/components/TableMax/components/CustomDragerLayer/index.less +59 -59
- package/dist/components/TableMax/components/PaginationV2/index.less +116 -116
- package/dist/components/TableMax/hooks/useColumnWidth copy.js +26 -26
- package/dist/components/TableMax/hooks/useColumnWidth.js +18 -18
- package/dist/components/TableMax/hooks/useInfiniteScroll.d.ts +28 -0
- package/dist/components/TableMax/hooks/useInfiniteScroll.js +95 -0
- package/dist/components/TableMax/tableMax.less +340 -340
- package/dist/components/TableMax/type.d.ts +12 -0
- package/dist/components/TableMax/utils.js +9 -9
- package/dist/hooks/useCenterModalState.js +2 -2
- package/dist/hooks/usePageCacheState.js +18 -18
- package/dist/themes/custom-dark.css +28482 -28482
- package/dist/themes/custom-light.css +28108 -28108
- package/dist/themes/variables.less +90 -90
- package/dist/utils/request.js +10 -10
- package/package.json +108 -108
|
@@ -1,225 +1,225 @@
|
|
|
1
|
-
table {
|
|
2
|
-
table-layout: fixed;
|
|
3
|
-
// background: @globalColor_14;
|
|
4
|
-
width: 100%;
|
|
5
|
-
border-collapse: collapse;
|
|
6
|
-
|
|
7
|
-
// overflow: hidden;
|
|
8
|
-
|
|
9
|
-
th {
|
|
10
|
-
position: relative;
|
|
11
|
-
padding: 0;
|
|
12
|
-
border: 0;
|
|
13
|
-
background: @globalColor_14;
|
|
14
|
-
z-index: 1;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.th-scroll {
|
|
18
|
-
position: sticky;
|
|
19
|
-
right: 0;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
.cell-wapper {
|
|
24
|
-
background: @globalColor_14;
|
|
25
|
-
height: fit-content;
|
|
26
|
-
line-height: 16px;
|
|
27
|
-
display: flex;
|
|
28
|
-
font-weight: 400;
|
|
29
|
-
padding: 8px;
|
|
30
|
-
text-align: left;
|
|
31
|
-
font-size: 14px;
|
|
32
|
-
// border-bottom: 1px solid @tableColor2;
|
|
33
|
-
|
|
34
|
-
.cell-left {
|
|
35
|
-
flex: 1;
|
|
36
|
-
// text-align: center;
|
|
37
|
-
user-select: none;
|
|
38
|
-
touch-action: none;
|
|
39
|
-
color: @tableColor1;
|
|
40
|
-
cursor: pointer;
|
|
41
|
-
overflow: hidden;
|
|
42
|
-
white-space: nowrap;
|
|
43
|
-
display: flex;
|
|
44
|
-
align-items: center;
|
|
45
|
-
justify-content: space-between;
|
|
46
|
-
height: 100%;
|
|
47
|
-
|
|
48
|
-
.cell-left-header {
|
|
49
|
-
display: -webkit-box;
|
|
50
|
-
-webkit-box-orient: vertical;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
text-overflow: ellipsis;
|
|
53
|
-
white-space: normal;
|
|
54
|
-
word-break: break-all;
|
|
55
|
-
|
|
56
|
-
.ant-checkbox-wrapper {
|
|
57
|
-
line-height: 16px;
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.cell-right {
|
|
63
|
-
display: flex;
|
|
64
|
-
// gap: 4px;
|
|
65
|
-
align-items: center;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.drag-handler {
|
|
69
|
-
color: @tableColor3;
|
|
70
|
-
display: none;
|
|
71
|
-
// opacity: 0;
|
|
72
|
-
cursor: move;
|
|
73
|
-
position: absolute;
|
|
74
|
-
right: 5px;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:hover .drag-handler {
|
|
78
|
-
display: inline-block;
|
|
79
|
-
// opacity: 1;
|
|
80
|
-
}
|
|
81
|
-
&:hover {
|
|
82
|
-
.sort-flag {
|
|
83
|
-
display: flex;
|
|
84
|
-
}
|
|
85
|
-
.filter-icon {
|
|
86
|
-
display: inline-block;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.cell-resize-handler {
|
|
91
|
-
position: absolute;
|
|
92
|
-
right: 0;
|
|
93
|
-
top: 30%;
|
|
94
|
-
height: 40%;
|
|
95
|
-
width: 5px;
|
|
96
|
-
border-right: 2px solid @globalColor_15;
|
|
97
|
-
cursor: ew-resize;
|
|
98
|
-
user-select: none;
|
|
99
|
-
touch-action: none;
|
|
100
|
-
z-index: 99999;
|
|
101
|
-
|
|
102
|
-
&:hover {
|
|
103
|
-
border-right: 5px solid @globalColor_15;
|
|
104
|
-
top: 0%;
|
|
105
|
-
height: 100%;
|
|
106
|
-
z-index: 99999;
|
|
107
|
-
cursor: ew-resize;
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
.cell-resize-handler::after {
|
|
112
|
-
content: '';
|
|
113
|
-
position: absolute;
|
|
114
|
-
right: 0;
|
|
115
|
-
top: 0;
|
|
116
|
-
bottom: 0;
|
|
117
|
-
width: 5px;
|
|
118
|
-
cursor: ew-resize;
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
.column-resizer.column-is-resizing {
|
|
122
|
-
height: 60%;
|
|
123
|
-
top: 20%;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
.table-thead-tr:nth-last-child(2) {
|
|
133
|
-
.table-max-header-cell-wrapper {
|
|
134
|
-
border-bottom: none !important;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.table-max-header-cell-wrapper {
|
|
139
|
-
font-weight: @global-table-max-header-font-weight;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
.table-filter-tr {
|
|
143
|
-
border-top: 1px solid @tableColor2;
|
|
144
|
-
|
|
145
|
-
.table-filter-th {
|
|
146
|
-
text-align: center;
|
|
147
|
-
vertical-align: top;
|
|
148
|
-
padding: 6px 4px;
|
|
149
|
-
|
|
150
|
-
.custom-light-select:not(.custom-light-select-customize-input) .custom-light-select-selector {
|
|
151
|
-
border-radius: 2px;
|
|
152
|
-
background-color: @global-curd-input-background-color;
|
|
153
|
-
padding: 0 2px;
|
|
154
|
-
}
|
|
155
|
-
|
|
156
|
-
.custom-dark-select:not(.custom-dark-select-customize-input) .custom-dark-select-selector {
|
|
157
|
-
border-radius: 2px;
|
|
158
|
-
background-color: @global-curd-input-background-color;
|
|
159
|
-
padding: 0 2px;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.custom-light-input-number {
|
|
163
|
-
width: 100% !important;
|
|
164
|
-
border-radius: 2px;
|
|
165
|
-
background-color: @global-curd-input-background-color;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
.custom-dark-input-number {
|
|
169
|
-
width: 100% !important;
|
|
170
|
-
border-radius: 2px;
|
|
171
|
-
background-color: @global-curd-input-background-color;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
.custom-dark-select-single .custom-dark-select-selector .custom-dark-select-selection-search {
|
|
175
|
-
left: 2px;
|
|
176
|
-
right: 2px;
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
.custom-dark-select-single .custom-dark-select-clear {
|
|
180
|
-
background: transparent;
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
.custom-light-select-single .custom-light-select-selector .custom-light-select-selection-search {
|
|
184
|
-
left: 2px;
|
|
185
|
-
right: 2px;
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
.custom-dark-picker {
|
|
189
|
-
padding: 4px;
|
|
190
|
-
background: @global-curd-input-background-color;
|
|
191
|
-
}
|
|
192
|
-
|
|
193
|
-
.custom-dark-input-affix-wrapper,
|
|
194
|
-
.custom-dark-picker-input .custom-dark-picker-clear {
|
|
195
|
-
background: @global-curd-input-background-color;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
.custom-light-picker {
|
|
199
|
-
padding: 4px;
|
|
200
|
-
background: @global-curd-input-background-color;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.custom-light-input-affix-wrapper,
|
|
204
|
-
.custom-light-input,
|
|
205
|
-
.custom-light-picker-input .custom-light-picker-clear {
|
|
206
|
-
background: @global-curd-input-background-color;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
|
|
211
|
-
.column-resizing-divide-line {
|
|
212
|
-
height: 300px;
|
|
213
|
-
width: 2px;
|
|
214
|
-
position: fixed;
|
|
215
|
-
z-index: 99999;
|
|
216
|
-
// background-color: #000;
|
|
217
|
-
background-color: green;
|
|
218
|
-
}
|
|
219
|
-
.column-resizing-divide-line {
|
|
220
|
-
will-change: transform;
|
|
221
|
-
backface-visibility: hidden;
|
|
222
|
-
transform: translate3d(0, 0, 0);
|
|
223
|
-
contain: strict;
|
|
224
|
-
cursor: ew-resize;
|
|
1
|
+
table {
|
|
2
|
+
table-layout: fixed;
|
|
3
|
+
// background: @globalColor_14;
|
|
4
|
+
width: 100%;
|
|
5
|
+
border-collapse: collapse;
|
|
6
|
+
|
|
7
|
+
// overflow: hidden;
|
|
8
|
+
|
|
9
|
+
th {
|
|
10
|
+
position: relative;
|
|
11
|
+
padding: 0;
|
|
12
|
+
border: 0;
|
|
13
|
+
background: @globalColor_14;
|
|
14
|
+
z-index: 1;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.th-scroll {
|
|
18
|
+
position: sticky;
|
|
19
|
+
right: 0;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.cell-wapper {
|
|
24
|
+
background: @globalColor_14;
|
|
25
|
+
height: fit-content;
|
|
26
|
+
line-height: 16px;
|
|
27
|
+
display: flex;
|
|
28
|
+
font-weight: 400;
|
|
29
|
+
padding: 8px;
|
|
30
|
+
text-align: left;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
// border-bottom: 1px solid @tableColor2;
|
|
33
|
+
|
|
34
|
+
.cell-left {
|
|
35
|
+
flex: 1;
|
|
36
|
+
// text-align: center;
|
|
37
|
+
user-select: none;
|
|
38
|
+
touch-action: none;
|
|
39
|
+
color: @tableColor1;
|
|
40
|
+
cursor: pointer;
|
|
41
|
+
overflow: hidden;
|
|
42
|
+
white-space: nowrap;
|
|
43
|
+
display: flex;
|
|
44
|
+
align-items: center;
|
|
45
|
+
justify-content: space-between;
|
|
46
|
+
height: 100%;
|
|
47
|
+
|
|
48
|
+
.cell-left-header {
|
|
49
|
+
display: -webkit-box;
|
|
50
|
+
-webkit-box-orient: vertical;
|
|
51
|
+
overflow: hidden;
|
|
52
|
+
text-overflow: ellipsis;
|
|
53
|
+
white-space: normal;
|
|
54
|
+
word-break: break-all;
|
|
55
|
+
|
|
56
|
+
.ant-checkbox-wrapper {
|
|
57
|
+
line-height: 16px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.cell-right {
|
|
63
|
+
display: flex;
|
|
64
|
+
// gap: 4px;
|
|
65
|
+
align-items: center;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.drag-handler {
|
|
69
|
+
color: @tableColor3;
|
|
70
|
+
display: none;
|
|
71
|
+
// opacity: 0;
|
|
72
|
+
cursor: move;
|
|
73
|
+
position: absolute;
|
|
74
|
+
right: 5px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&:hover .drag-handler {
|
|
78
|
+
display: inline-block;
|
|
79
|
+
// opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
&:hover {
|
|
82
|
+
.sort-flag {
|
|
83
|
+
display: flex;
|
|
84
|
+
}
|
|
85
|
+
.filter-icon {
|
|
86
|
+
display: inline-block;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.cell-resize-handler {
|
|
91
|
+
position: absolute;
|
|
92
|
+
right: 0;
|
|
93
|
+
top: 30%;
|
|
94
|
+
height: 40%;
|
|
95
|
+
width: 5px;
|
|
96
|
+
border-right: 2px solid @globalColor_15;
|
|
97
|
+
cursor: ew-resize;
|
|
98
|
+
user-select: none;
|
|
99
|
+
touch-action: none;
|
|
100
|
+
z-index: 99999;
|
|
101
|
+
|
|
102
|
+
&:hover {
|
|
103
|
+
border-right: 5px solid @globalColor_15;
|
|
104
|
+
top: 0%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
z-index: 99999;
|
|
107
|
+
cursor: ew-resize;
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.cell-resize-handler::after {
|
|
112
|
+
content: '';
|
|
113
|
+
position: absolute;
|
|
114
|
+
right: 0;
|
|
115
|
+
top: 0;
|
|
116
|
+
bottom: 0;
|
|
117
|
+
width: 5px;
|
|
118
|
+
cursor: ew-resize;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
.column-resizer.column-is-resizing {
|
|
122
|
+
height: 60%;
|
|
123
|
+
top: 20%;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.table-thead-tr:nth-last-child(2) {
|
|
133
|
+
.table-max-header-cell-wrapper {
|
|
134
|
+
border-bottom: none !important;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.table-max-header-cell-wrapper {
|
|
139
|
+
font-weight: @global-table-max-header-font-weight;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
.table-filter-tr {
|
|
143
|
+
border-top: 1px solid @tableColor2;
|
|
144
|
+
|
|
145
|
+
.table-filter-th {
|
|
146
|
+
text-align: center;
|
|
147
|
+
vertical-align: top;
|
|
148
|
+
padding: 6px 4px;
|
|
149
|
+
|
|
150
|
+
.custom-light-select:not(.custom-light-select-customize-input) .custom-light-select-selector {
|
|
151
|
+
border-radius: 2px;
|
|
152
|
+
background-color: @global-curd-input-background-color;
|
|
153
|
+
padding: 0 2px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.custom-dark-select:not(.custom-dark-select-customize-input) .custom-dark-select-selector {
|
|
157
|
+
border-radius: 2px;
|
|
158
|
+
background-color: @global-curd-input-background-color;
|
|
159
|
+
padding: 0 2px;
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.custom-light-input-number {
|
|
163
|
+
width: 100% !important;
|
|
164
|
+
border-radius: 2px;
|
|
165
|
+
background-color: @global-curd-input-background-color;
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
.custom-dark-input-number {
|
|
169
|
+
width: 100% !important;
|
|
170
|
+
border-radius: 2px;
|
|
171
|
+
background-color: @global-curd-input-background-color;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.custom-dark-select-single .custom-dark-select-selector .custom-dark-select-selection-search {
|
|
175
|
+
left: 2px;
|
|
176
|
+
right: 2px;
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
.custom-dark-select-single .custom-dark-select-clear {
|
|
180
|
+
background: transparent;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.custom-light-select-single .custom-light-select-selector .custom-light-select-selection-search {
|
|
184
|
+
left: 2px;
|
|
185
|
+
right: 2px;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.custom-dark-picker {
|
|
189
|
+
padding: 4px;
|
|
190
|
+
background: @global-curd-input-background-color;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.custom-dark-input-affix-wrapper,
|
|
194
|
+
.custom-dark-picker-input .custom-dark-picker-clear {
|
|
195
|
+
background: @global-curd-input-background-color;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
.custom-light-picker {
|
|
199
|
+
padding: 4px;
|
|
200
|
+
background: @global-curd-input-background-color;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
.custom-light-input-affix-wrapper,
|
|
204
|
+
.custom-light-input,
|
|
205
|
+
.custom-light-picker-input .custom-light-picker-clear {
|
|
206
|
+
background: @global-curd-input-background-color;
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
.column-resizing-divide-line {
|
|
212
|
+
height: 300px;
|
|
213
|
+
width: 2px;
|
|
214
|
+
position: fixed;
|
|
215
|
+
z-index: 99999;
|
|
216
|
+
// background-color: #000;
|
|
217
|
+
background-color: green;
|
|
218
|
+
}
|
|
219
|
+
.column-resizing-divide-line {
|
|
220
|
+
will-change: transform;
|
|
221
|
+
backface-visibility: hidden;
|
|
222
|
+
transform: translate3d(0, 0, 0);
|
|
223
|
+
contain: strict;
|
|
224
|
+
cursor: ew-resize;
|
|
225
225
|
}
|
|
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
21
21
|
import { MinusSquareOutlined, PlusSquareOutlined } from '@ant-design/icons';
|
|
22
22
|
import { getCoreRowModel, getExpandedRowModel, getFacetedUniqueValues, getFilteredRowModel, getSortedRowModel, useReactTable } from '@tanstack/react-table';
|
|
23
23
|
import { useUpdateEffect } from 'ahooks';
|
|
24
|
-
import { Button, Checkbox, Form, Pagination, Upload } from 'antd';
|
|
24
|
+
import { Button, Checkbox, Form, Pagination, Tooltip, Upload } from 'antd';
|
|
25
25
|
import dayjs from 'dayjs';
|
|
26
26
|
import { cloneDeep, debounce } from 'lodash';
|
|
27
27
|
import React, { useCallback, useEffect, useImperativeHandle, useMemo, useRef, useState } from 'react';
|
|
@@ -195,7 +195,8 @@ var TableMax = function TableMax(_ref) {
|
|
|
195
195
|
hasTotalRow = _ref.hasTotalRow,
|
|
196
196
|
totalDatas = _ref.totalDatas,
|
|
197
197
|
pageSizeOptions = _ref.pageSizeOptions,
|
|
198
|
-
openMemo = _ref.openMemo
|
|
198
|
+
openMemo = _ref.openMemo,
|
|
199
|
+
getDynamicFilterOptionsFn = _ref.getDynamicFilterOptionsFn;
|
|
199
200
|
var tableMaxRef = useRef(null);
|
|
200
201
|
// 表格元素
|
|
201
202
|
var tableContentRef = useRef(null);
|
|
@@ -984,7 +985,8 @@ var TableMax = function TableMax(_ref) {
|
|
|
984
985
|
columnResizeMode: columnResizeMode,
|
|
985
986
|
disableColumnDrag: disableColumnDrag,
|
|
986
987
|
compactMode: compactMode,
|
|
987
|
-
manualFiltering: manualFiltering
|
|
988
|
+
manualFiltering: manualFiltering,
|
|
989
|
+
getDynamicFilterOptionsFn: getDynamicFilterOptionsFn
|
|
988
990
|
};
|
|
989
991
|
var tableBodyProps = {
|
|
990
992
|
tableContentRef: tableContentRef,
|
|
@@ -1116,39 +1118,68 @@ var TableMax = function TableMax(_ref) {
|
|
|
1116
1118
|
request: request
|
|
1117
1119
|
})));
|
|
1118
1120
|
}
|
|
1119
|
-
}), canRefresh && /*#__PURE__*/_jsx(
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1121
|
+
}), canRefresh && /*#__PURE__*/_jsx(Tooltip, {
|
|
1122
|
+
placement: "top",
|
|
1123
|
+
title: '刷新',
|
|
1124
|
+
children: /*#__PURE__*/_jsx("i", {
|
|
1125
|
+
className: "iconfont-table icon-table-shuaxin handleRightItem",
|
|
1126
|
+
style: {
|
|
1127
|
+
fontSize: '16px',
|
|
1128
|
+
marginRight: 0
|
|
1129
|
+
},
|
|
1130
|
+
onClick: function onClick() {
|
|
1131
|
+
return refreshFun === null || refreshFun === void 0 ? void 0 : refreshFun();
|
|
1132
|
+
}
|
|
1133
|
+
})
|
|
1128
1134
|
}), canEditting && /*#__PURE__*/_jsx("span", {
|
|
1129
1135
|
className: canClickEditIcon ? undefined : 'disableBtn',
|
|
1136
|
+
children: /*#__PURE__*/_jsx(Tooltip, {
|
|
1137
|
+
placement: "top",
|
|
1138
|
+
title: '编辑',
|
|
1139
|
+
children: /*#__PURE__*/_jsx("i", {
|
|
1140
|
+
className: "iconfont-other icon-other-bianji handleRightItem",
|
|
1141
|
+
style: {
|
|
1142
|
+
fontSize: '16px',
|
|
1143
|
+
marginRight: 0
|
|
1144
|
+
},
|
|
1145
|
+
onClick: editFun
|
|
1146
|
+
})
|
|
1147
|
+
})
|
|
1148
|
+
}), canDelete && /*#__PURE__*/_jsx(Tooltip, {
|
|
1149
|
+
placement: "top",
|
|
1150
|
+
title: '删除',
|
|
1130
1151
|
children: /*#__PURE__*/_jsx("i", {
|
|
1131
|
-
className: "iconfont-
|
|
1152
|
+
className: "iconfont-table icon-table-delete handleRightItem",
|
|
1132
1153
|
style: {
|
|
1133
1154
|
fontSize: '16px',
|
|
1134
1155
|
marginRight: 0
|
|
1135
1156
|
},
|
|
1136
|
-
onClick:
|
|
1157
|
+
onClick: handleClickDelete
|
|
1158
|
+
})
|
|
1159
|
+
}), canFilter && /*#__PURE__*/_jsx(Tooltip, {
|
|
1160
|
+
placement: "top",
|
|
1161
|
+
title: '重置筛选',
|
|
1162
|
+
children: /*#__PURE__*/_jsx("i", {
|
|
1163
|
+
className: "iconfont-table icon-table-refresh handleRightItem",
|
|
1164
|
+
style: {
|
|
1165
|
+
fontSize: '16px',
|
|
1166
|
+
marginRight: 0
|
|
1167
|
+
},
|
|
1168
|
+
onClick: function onClick() {
|
|
1169
|
+
setColumnFilters(defaultColumnFilters);
|
|
1170
|
+
}
|
|
1171
|
+
})
|
|
1172
|
+
}), canCompact && /*#__PURE__*/_jsx(Tooltip, {
|
|
1173
|
+
placement: "top",
|
|
1174
|
+
title: compactMode ? '标准模式' : '紧凑模式',
|
|
1175
|
+
children: /*#__PURE__*/_jsx("i", {
|
|
1176
|
+
className: "iconfont-table ".concat(compactMode ? 'icon-table-normal' : 'icon-table-tight', " handleRightItem"),
|
|
1177
|
+
style: {
|
|
1178
|
+
fontSize: '16px',
|
|
1179
|
+
marginRight: 0
|
|
1180
|
+
},
|
|
1181
|
+
onClick: changeCompactMode
|
|
1137
1182
|
})
|
|
1138
|
-
}), canDelete && /*#__PURE__*/_jsx("i", {
|
|
1139
|
-
className: "iconfont-table icon-table-delete handleRightItem",
|
|
1140
|
-
style: {
|
|
1141
|
-
fontSize: '16px',
|
|
1142
|
-
marginRight: 0
|
|
1143
|
-
},
|
|
1144
|
-
onClick: handleClickDelete
|
|
1145
|
-
}), canCompact && /*#__PURE__*/_jsx("i", {
|
|
1146
|
-
className: "iconfont-table ".concat(compactMode ? 'icon-table-normal' : 'icon-table-tight', " handleRightItem"),
|
|
1147
|
-
style: {
|
|
1148
|
-
fontSize: '16px',
|
|
1149
|
-
marginRight: 0
|
|
1150
|
-
},
|
|
1151
|
-
onClick: changeCompactMode
|
|
1152
1183
|
}), canSetting && /*#__PURE__*/_jsx(ColumnSetting, {
|
|
1153
1184
|
table: table,
|
|
1154
1185
|
tableId: tableId,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
.tableMax-edit-numberRangeWrapper {
|
|
2
|
-
display: flex;
|
|
1
|
+
.tableMax-edit-numberRangeWrapper {
|
|
2
|
+
display: flex;
|
|
3
3
|
}
|