@zat-design/sisyphus-react 3.4.0 → 3.4.1
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/dist/index.esm.css +121 -124
- package/es/ProEditTable/components/DndWrapper/index.d.ts +1 -1
- package/es/ProEditTable/components/DndWrapper/index.js +5 -5
- package/es/ProEditTable/components/RenderField/index.js +1 -1
- package/es/ProEditTable/index.js +15 -9
- package/es/ProEditTable/style/index.less +36 -55
- package/es/ProEditTable/utils/index.js +2 -2
- package/es/ProEnum/components/Group.d.ts +7 -0
- package/es/ProEnum/components/Group.js +51 -0
- package/es/ProEnum/index.js +25 -2
- package/es/ProEnum/propsType.d.ts +2 -2
- package/es/ProEnum/propsType.js +1 -1
- package/es/ProEnum/style/index.less +65 -1
- package/es/ProForm/components/base/InputNumber/index.js +2 -2
- package/es/ProForm/components/base/Radio/index.js +1 -1
- package/es/ProForm/components/base/Select/index.js +0 -13
- package/es/ProForm/components/combination/FormList/components/LineFields.js +1 -0
- package/es/ProForm/components/combination/ProNumberRange/style/index.less +20 -19
- package/es/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
- package/es/ProForm/components/render/ConfirmWrapper.js +66 -0
- package/es/ProForm/components/render/Render.js +19 -6
- package/es/ProForm/components/render/RenderFields.js +9 -9
- package/es/ProForm/components/render/propsType.d.ts +5 -2
- package/es/ProForm/style/index.less +6 -1
- package/es/ProForm/utils/useShouldUpdate.js +1 -1
- package/es/ProForm/utils/valueType.js +37 -3
- package/es/ProIcon/index.d.ts +0 -1
- package/es/ProIcon/index.js +6 -4
- package/es/ProIcon/style/index.less +4 -6
- package/es/ProIcon/symbolIcon.js +20 -20
- package/es/ProLayout/components/ProCollapse/style/index.less +17 -7
- package/es/ProLayout/components/ProHeader/style/index.less +109 -101
- package/es/ProTable/components/RenderColumn/index.js +1 -2
- package/es/ProTable/propsType.d.ts +1 -1
- package/es/ProTable/style/index.less +196 -99
- package/es/ProTable/utils.js +1 -1
- package/es/ProThemeTools/component/PrdTools/index.js +3 -3
- package/es/ProThemeTools/index.js +4 -2
- package/es/ProTreeModal/components/SortableItem.js +5 -7
- package/es/ProTreeModal/style/index.less +0 -6
- package/es/style/core/mixins.less +12 -5
- package/lib/ProEditTable/components/DndWrapper/index.d.ts +1 -1
- package/lib/ProEditTable/components/DndWrapper/index.js +5 -5
- package/lib/ProEditTable/components/RenderField/index.js +1 -1
- package/lib/ProEditTable/index.js +13 -7
- package/lib/ProEditTable/style/index.less +36 -55
- package/lib/ProEditTable/utils/index.js +2 -2
- package/lib/ProEnum/components/Group.d.ts +7 -0
- package/lib/ProEnum/components/Group.js +58 -0
- package/lib/ProEnum/index.js +25 -2
- package/lib/ProEnum/propsType.d.ts +2 -2
- package/lib/ProEnum/propsType.js +1 -1
- package/lib/ProEnum/style/index.less +65 -1
- package/lib/ProForm/components/base/InputNumber/index.js +2 -2
- package/lib/ProForm/components/base/Radio/index.js +1 -1
- package/lib/ProForm/components/base/Select/index.js +0 -13
- package/lib/ProForm/components/combination/FormList/components/LineFields.js +1 -0
- package/lib/ProForm/components/combination/ProNumberRange/style/index.less +20 -19
- package/lib/ProForm/components/render/ConfirmWrapper.d.ts +10 -0
- package/lib/ProForm/components/render/ConfirmWrapper.js +72 -0
- package/lib/ProForm/components/render/Render.js +19 -6
- package/lib/ProForm/components/render/RenderFields.js +9 -9
- package/lib/ProForm/components/render/propsType.d.ts +5 -2
- package/lib/ProForm/style/index.less +6 -1
- package/lib/ProForm/utils/useShouldUpdate.js +1 -1
- package/lib/ProForm/utils/valueType.js +37 -3
- package/lib/ProIcon/index.d.ts +0 -1
- package/lib/ProIcon/index.js +6 -4
- package/lib/ProIcon/style/index.less +4 -6
- package/lib/ProIcon/symbolIcon.js +20 -20
- package/lib/ProLayout/components/ProCollapse/style/index.less +17 -7
- package/lib/ProLayout/components/ProHeader/style/index.less +109 -101
- package/lib/ProTable/components/RenderColumn/index.js +1 -2
- package/lib/ProTable/propsType.d.ts +1 -1
- package/lib/ProTable/style/index.less +196 -99
- package/lib/ProTable/utils.js +1 -1
- package/lib/ProThemeTools/component/PrdTools/index.js +2 -2
- package/lib/ProThemeTools/index.js +3 -1
- package/lib/ProTreeModal/components/SortableItem.js +5 -7
- package/lib/ProTreeModal/style/index.less +0 -6
- package/lib/style/core/mixins.less +12 -5
- package/package.json +1 -1
|
@@ -3,53 +3,152 @@
|
|
|
3
3
|
|
|
4
4
|
.pro-table {
|
|
5
5
|
&.pro-table-bordered {
|
|
6
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
|
|
7
|
-
border-bottom: 1px solid #f0f0f0
|
|
6
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-thead > tr > th {
|
|
7
|
+
border-bottom: 1px solid #f0f0f0;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
|
-
.@{ant-prefix}-table
|
|
11
|
-
.@{ant-prefix}-table
|
|
10
|
+
.@{ant-prefix}-table > .@{ant-prefix}-table-container > .@{ant-prefix}-table-content > table,
|
|
11
|
+
.@{ant-prefix}-table > .@{ant-prefix}-table-container > .@{ant-prefix}-table-header > table {
|
|
12
12
|
border-top: 1px solid rgba(0, 0, 0, 0.06);
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.@{ant-prefix}-table
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
.@{ant-prefix}-table
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
.@{ant-prefix}-table
|
|
30
|
-
|
|
15
|
+
.@{ant-prefix}-table
|
|
16
|
+
> .@{ant-prefix}-table-container
|
|
17
|
+
> .@{ant-prefix}-table-content
|
|
18
|
+
> table
|
|
19
|
+
> thead
|
|
20
|
+
> tr
|
|
21
|
+
> th,
|
|
22
|
+
.@{ant-prefix}-table
|
|
23
|
+
> .@{ant-prefix}-table-container
|
|
24
|
+
> .@{ant-prefix}-table-header
|
|
25
|
+
> table
|
|
26
|
+
> thead
|
|
27
|
+
> tr
|
|
28
|
+
> th,
|
|
29
|
+
.@{ant-prefix}-table
|
|
30
|
+
> .@{ant-prefix}-table-container
|
|
31
|
+
> .@{ant-prefix}-table-body
|
|
32
|
+
> table
|
|
33
|
+
> thead
|
|
34
|
+
> tr
|
|
35
|
+
> th,
|
|
36
|
+
.@{ant-prefix}-table
|
|
37
|
+
> .@{ant-prefix}-table-container
|
|
38
|
+
> .@{ant-prefix}-table-summary
|
|
39
|
+
> table
|
|
40
|
+
> thead
|
|
41
|
+
> tr
|
|
42
|
+
> th,
|
|
43
|
+
.@{ant-prefix}-table
|
|
44
|
+
> .@{ant-prefix}-table-container
|
|
45
|
+
> .@{ant-prefix}-table-content
|
|
46
|
+
> table
|
|
47
|
+
> tbody
|
|
48
|
+
> tr
|
|
49
|
+
> td,
|
|
50
|
+
.@{ant-prefix}-table
|
|
51
|
+
> .@{ant-prefix}-table-container
|
|
52
|
+
> .@{ant-prefix}-table-header
|
|
53
|
+
> table
|
|
54
|
+
> tbody
|
|
55
|
+
> tr
|
|
56
|
+
> td,
|
|
57
|
+
.@{ant-prefix}-table
|
|
58
|
+
> .@{ant-prefix}-table-container
|
|
59
|
+
> .@{ant-prefix}-table-body
|
|
60
|
+
> table
|
|
61
|
+
> tbody
|
|
62
|
+
> tr
|
|
63
|
+
> td,
|
|
64
|
+
.@{ant-prefix}-table
|
|
65
|
+
> .@{ant-prefix}-table-container
|
|
66
|
+
> .@{ant-prefix}-table-summary
|
|
67
|
+
> table
|
|
68
|
+
> tbody
|
|
69
|
+
> tr
|
|
70
|
+
> td,
|
|
71
|
+
.@{ant-prefix}-table
|
|
72
|
+
> .@{ant-prefix}-table-container
|
|
73
|
+
> .@{ant-prefix}-table-content
|
|
74
|
+
> table
|
|
75
|
+
> tfoot
|
|
76
|
+
> tr
|
|
77
|
+
> th,
|
|
78
|
+
.@{ant-prefix}-table
|
|
79
|
+
> .@{ant-prefix}-table-container
|
|
80
|
+
> .@{ant-prefix}-table-header
|
|
81
|
+
> table
|
|
82
|
+
> tfoot
|
|
83
|
+
> tr
|
|
84
|
+
> th,
|
|
85
|
+
.@{ant-prefix}-table
|
|
86
|
+
> .@{ant-prefix}-table-container
|
|
87
|
+
> .@{ant-prefix}-table-body
|
|
88
|
+
> table
|
|
89
|
+
> tfoot
|
|
90
|
+
> tr
|
|
91
|
+
> th,
|
|
92
|
+
.@{ant-prefix}-table
|
|
93
|
+
> .@{ant-prefix}-table-container
|
|
94
|
+
> .@{ant-prefix}-table-summary
|
|
95
|
+
> table
|
|
96
|
+
> tfoot
|
|
97
|
+
> tr
|
|
98
|
+
> th,
|
|
99
|
+
.@{ant-prefix}-table
|
|
100
|
+
> .@{ant-prefix}-table-container
|
|
101
|
+
> .@{ant-prefix}-table-content
|
|
102
|
+
> table
|
|
103
|
+
> tfoot
|
|
104
|
+
> tr
|
|
105
|
+
> td,
|
|
106
|
+
.@{ant-prefix}-table
|
|
107
|
+
> .@{ant-prefix}-table-container
|
|
108
|
+
> .@{ant-prefix}-table-header
|
|
109
|
+
> table
|
|
110
|
+
> tfoot
|
|
111
|
+
> tr
|
|
112
|
+
> td,
|
|
113
|
+
.@{ant-prefix}-table
|
|
114
|
+
> .@{ant-prefix}-table-container
|
|
115
|
+
> .@{ant-prefix}-table-body
|
|
116
|
+
> table
|
|
117
|
+
> tfoot
|
|
118
|
+
> tr
|
|
119
|
+
> td,
|
|
120
|
+
.@{ant-prefix}-table
|
|
121
|
+
> .@{ant-prefix}-table-container
|
|
122
|
+
> .@{ant-prefix}-table-summary
|
|
123
|
+
> table
|
|
124
|
+
> tfoot
|
|
125
|
+
> tr
|
|
126
|
+
> td {
|
|
31
127
|
border-right: 1px solid rgba(0, 0, 0, 0.06);
|
|
32
128
|
}
|
|
33
129
|
|
|
34
|
-
.@{ant-prefix}-table
|
|
130
|
+
.@{ant-prefix}-table
|
|
131
|
+
.@{ant-prefix}-table-tbody
|
|
132
|
+
> tr:not(.@{ant-prefix}-table-measure-row)
|
|
133
|
+
> td {
|
|
35
134
|
border-bottom: 1px solid #f0f0f0;
|
|
36
135
|
}
|
|
37
136
|
|
|
38
|
-
.@{ant-prefix}-table
|
|
137
|
+
.@{ant-prefix}-table > .@{ant-prefix}-table-container {
|
|
39
138
|
border-left: 1px solid rgba(0, 0, 0, 0.06);
|
|
40
139
|
}
|
|
41
140
|
}
|
|
42
141
|
|
|
43
142
|
.custom-column-btn {
|
|
44
|
-
display
|
|
143
|
+
display: inline-flex;
|
|
45
144
|
align-items: center;
|
|
46
145
|
|
|
47
146
|
&:hover,
|
|
48
147
|
&:visited,
|
|
49
148
|
&:focus {
|
|
50
|
-
color
|
|
51
|
-
border : 1px solid #d9d9d9;
|
|
149
|
+
color: unset;
|
|
52
150
|
background: unset;
|
|
151
|
+
border: 1px solid #d9d9d9;
|
|
53
152
|
}
|
|
54
153
|
|
|
55
154
|
.anticon {
|
|
@@ -58,7 +157,8 @@
|
|
|
58
157
|
}
|
|
59
158
|
|
|
60
159
|
.@{ant-prefix}-table-tbody {
|
|
61
|
-
.@{ant-prefix}-table-cell-fix-left,
|
|
160
|
+
.@{ant-prefix}-table-cell-fix-left,
|
|
161
|
+
.@{ant-prefix}-table-cell-fix-right {
|
|
62
162
|
background: unset !important;
|
|
63
163
|
}
|
|
64
164
|
}
|
|
@@ -75,8 +175,8 @@
|
|
|
75
175
|
|
|
76
176
|
.@{ant-prefix}-table-cell .varied-cell {
|
|
77
177
|
margin-left: -8px;
|
|
78
|
-
background: var(--zaui-contract-bg, #fffaa1);
|
|
79
178
|
padding: var(--zaui-space-size-xs, 4px) var(--zaui-space-size-sm, 8px);
|
|
179
|
+
background: var(--zaui-contract-bg, #fffaa1);
|
|
80
180
|
border-radius: var(--zaui-border-radius, 4px);
|
|
81
181
|
}
|
|
82
182
|
|
|
@@ -86,17 +186,15 @@
|
|
|
86
186
|
}
|
|
87
187
|
|
|
88
188
|
.copyable-table-cell {
|
|
89
|
-
|
|
90
|
-
|
|
91
189
|
.@{ant-prefix}-typography {
|
|
190
|
+
display: flex;
|
|
191
|
+
align-items: center;
|
|
92
192
|
margin-bottom: 0;
|
|
93
|
-
display : flex;
|
|
94
|
-
align-items : center;
|
|
95
193
|
}
|
|
96
194
|
|
|
97
195
|
.drag-icon {
|
|
98
|
-
|
|
99
|
-
display
|
|
196
|
+
& > div {
|
|
197
|
+
display: flex;
|
|
100
198
|
align-items: center;
|
|
101
199
|
}
|
|
102
200
|
}
|
|
@@ -108,15 +206,18 @@
|
|
|
108
206
|
}
|
|
109
207
|
|
|
110
208
|
svg {
|
|
111
|
-
width : 14px;
|
|
112
|
-
height : 14px;
|
|
113
|
-
fill : #3f3f3f;
|
|
114
209
|
display: inline-block;
|
|
210
|
+
width: 16px;
|
|
211
|
+
height: 16px;
|
|
212
|
+
fill: var(--zaui-brand, #006aff);
|
|
115
213
|
}
|
|
116
214
|
}
|
|
117
215
|
|
|
118
216
|
&.pro-table-no-stripe {
|
|
119
|
-
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal
|
|
217
|
+
.@{ant-prefix}-table.@{ant-prefix}-table-scroll-horizontal
|
|
218
|
+
.@{ant-prefix}-table-tbody
|
|
219
|
+
.@{ant-prefix}-table-row:nth-child(n)
|
|
220
|
+
> td {
|
|
120
221
|
background: var(--zaui-base-bg, #ffffff);
|
|
121
222
|
}
|
|
122
223
|
}
|
|
@@ -124,10 +225,9 @@
|
|
|
124
225
|
.@{ant-prefix}-table-thead {
|
|
125
226
|
.@{ant-prefix}-dropdown-trigger {
|
|
126
227
|
&.@{ant-prefix}-dropdown-open {
|
|
127
|
-
|
|
128
228
|
.anticon-down {
|
|
229
|
+
transform: rotateZ(180deg);
|
|
129
230
|
transition: transform 0.3s;
|
|
130
|
-
transform : rotateZ(180deg);
|
|
131
231
|
}
|
|
132
232
|
}
|
|
133
233
|
}
|
|
@@ -137,12 +237,12 @@
|
|
|
137
237
|
position: relative;
|
|
138
238
|
|
|
139
239
|
.pro-table-resizable-line {
|
|
140
|
-
position
|
|
141
|
-
|
|
142
|
-
|
|
240
|
+
position: absolute;
|
|
241
|
+
top: 0;
|
|
242
|
+
left: 100px;
|
|
243
|
+
width: 0;
|
|
244
|
+
height: 100%;
|
|
143
245
|
border-left: 1px solid var(--zaui-brand, #006aff);
|
|
144
|
-
height : 100%;
|
|
145
|
-
left : 100px;
|
|
146
246
|
}
|
|
147
247
|
}
|
|
148
248
|
|
|
@@ -169,22 +269,21 @@
|
|
|
169
269
|
}
|
|
170
270
|
|
|
171
271
|
.column-config {
|
|
172
|
-
display
|
|
272
|
+
display: flex;
|
|
173
273
|
justify-content: space-between;
|
|
174
|
-
margin-bottom
|
|
274
|
+
margin-bottom: calc(var(--zaui-space-size-md; 16px) * var(--zaui-size; 1));
|
|
175
275
|
|
|
176
276
|
.right-actions {
|
|
177
|
-
display
|
|
277
|
+
display: flex;
|
|
178
278
|
align-items: center;
|
|
179
279
|
|
|
180
|
-
|
|
181
|
-
|
|
280
|
+
> .@{ant-prefix}-btn {
|
|
182
281
|
&:hover,
|
|
183
282
|
&:visited,
|
|
184
283
|
&:focus {
|
|
185
|
-
color
|
|
186
|
-
border : 1px solid #d9d9d9;
|
|
284
|
+
color: unset;
|
|
187
285
|
background: unset;
|
|
286
|
+
border: 1px solid #d9d9d9;
|
|
188
287
|
}
|
|
189
288
|
}
|
|
190
289
|
|
|
@@ -209,15 +308,15 @@
|
|
|
209
308
|
}
|
|
210
309
|
}
|
|
211
310
|
|
|
212
|
-
.@{ant-prefix}-table .@{ant-prefix}-table-thead>tr>th {
|
|
311
|
+
.@{ant-prefix}-table .@{ant-prefix}-table-thead > tr > th {
|
|
312
|
+
white-space: nowrap;
|
|
313
|
+
background: var(--zaui-table-header-bg, #f2f3f5);
|
|
213
314
|
border-bottom: 0;
|
|
214
|
-
white-space : nowrap;
|
|
215
|
-
background : var(--zaui-table-header-bg, #f2f3f5);
|
|
216
315
|
|
|
217
316
|
.pro-table-th-cell {
|
|
218
|
-
width
|
|
219
|
-
overflow
|
|
220
|
-
white-space
|
|
317
|
+
width: 100%;
|
|
318
|
+
overflow: hidden;
|
|
319
|
+
white-space: nowrap;
|
|
221
320
|
text-overflow: ellipsis;
|
|
222
321
|
}
|
|
223
322
|
|
|
@@ -232,20 +331,19 @@
|
|
|
232
331
|
}
|
|
233
332
|
|
|
234
333
|
.pro-table-tooltip {
|
|
235
|
-
display
|
|
334
|
+
display: inline-flex;
|
|
236
335
|
align-items: center;
|
|
237
336
|
|
|
238
337
|
.icon-tip {
|
|
239
|
-
|
|
240
338
|
div {
|
|
241
|
-
width
|
|
339
|
+
width: 14px;
|
|
242
340
|
height: 14px;
|
|
243
341
|
|
|
244
342
|
svg {
|
|
343
|
+
width: 14px;
|
|
344
|
+
height: 14px;
|
|
245
345
|
margin-left: 8px;
|
|
246
|
-
|
|
247
|
-
height : 14px;
|
|
248
|
-
fill : #909090;
|
|
346
|
+
fill: #909090;
|
|
249
347
|
}
|
|
250
348
|
}
|
|
251
349
|
}
|
|
@@ -253,15 +351,15 @@
|
|
|
253
351
|
}
|
|
254
352
|
|
|
255
353
|
.@{ant-prefix}-table.@{ant-prefix}-table-bordered {
|
|
256
|
-
.@{ant-prefix}-table-thead>tr>th {
|
|
354
|
+
.@{ant-prefix}-table-thead > tr > th {
|
|
257
355
|
border-bottom: 1px solid #f0f0f0;
|
|
258
356
|
}
|
|
259
357
|
|
|
260
|
-
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
|
|
358
|
+
.@{ant-prefix}-table-tbody > tr:not(.@{ant-prefix}-table-placeholder) > td {
|
|
261
359
|
border-bottom: 1px solid #f0f0f0;
|
|
262
360
|
}
|
|
263
361
|
|
|
264
|
-
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
|
|
362
|
+
.@{ant-prefix}-table-tbody > tr:not(.@{ant-prefix}-table-measure-row) > td {
|
|
265
363
|
border-bottom: 1px solid #f0f0f0;
|
|
266
364
|
}
|
|
267
365
|
}
|
|
@@ -270,16 +368,16 @@
|
|
|
270
368
|
background: var(--zaui-base-bg, #ffffff) !important;
|
|
271
369
|
}
|
|
272
370
|
|
|
273
|
-
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-placeholder)>td {
|
|
371
|
+
.@{ant-prefix}-table-tbody > tr:not(.@{ant-prefix}-table-placeholder) > td {
|
|
274
372
|
border-bottom: 0;
|
|
275
373
|
}
|
|
276
374
|
|
|
277
|
-
.@{ant-prefix}-table-tbody>tr:not(.@{ant-prefix}-table-measure-row)>td {
|
|
375
|
+
.@{ant-prefix}-table-tbody > tr:not(.@{ant-prefix}-table-measure-row) > td {
|
|
278
376
|
border-bottom: 0;
|
|
279
377
|
}
|
|
280
378
|
|
|
281
379
|
.react-resizable {
|
|
282
|
-
position
|
|
380
|
+
position: relative;
|
|
283
381
|
background-clip: padding-box;
|
|
284
382
|
|
|
285
383
|
.@{ant-prefix}-table-filter-trigger {
|
|
@@ -289,51 +387,51 @@
|
|
|
289
387
|
|
|
290
388
|
.react-resizable-handle {
|
|
291
389
|
position: absolute;
|
|
292
|
-
right
|
|
293
|
-
bottom
|
|
294
|
-
z-index
|
|
295
|
-
width
|
|
296
|
-
height
|
|
297
|
-
cursor
|
|
390
|
+
right: -5px;
|
|
391
|
+
bottom: 0;
|
|
392
|
+
z-index: 1;
|
|
393
|
+
width: 10px;
|
|
394
|
+
height: 100%;
|
|
395
|
+
cursor: col-resize;
|
|
298
396
|
|
|
299
397
|
&::before {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
left
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
398
|
+
position: absolute;
|
|
399
|
+
top: 50%;
|
|
400
|
+
left: 50%;
|
|
401
|
+
width: 1px;
|
|
402
|
+
height: 18px;
|
|
403
|
+
background: #dcdcdc;
|
|
404
|
+
transform: translateY(-50%);
|
|
405
|
+
content: '';
|
|
308
406
|
}
|
|
309
407
|
|
|
310
408
|
&.active::before,
|
|
311
409
|
&:hover::before {
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
left
|
|
315
|
-
height
|
|
316
|
-
bottom : 0;
|
|
410
|
+
position: absolute;
|
|
411
|
+
bottom: 0;
|
|
412
|
+
left: 50%;
|
|
413
|
+
height: 100%;
|
|
317
414
|
border-left: 5px solid var(--zaui-brand, #006aff);
|
|
415
|
+
content: '';
|
|
318
416
|
}
|
|
319
417
|
}
|
|
320
418
|
|
|
321
419
|
.@{ant-prefix}-table-tbody tr td .@{ant-prefix}-checkbox-wrapper-checked.checkbox-disabled {
|
|
420
|
+
cursor: not-allowed;
|
|
421
|
+
opacity: 0.5;
|
|
322
422
|
pointer-events: none;
|
|
323
|
-
cursor : not-allowed;
|
|
324
|
-
opacity : 0.5;
|
|
325
423
|
}
|
|
326
424
|
|
|
327
425
|
.@{ant-prefix}-pagination-options-quick-jumper input {
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
426
|
+
min-width: 32px;
|
|
427
|
+
height: 32px;
|
|
428
|
+
background: #fafafa;
|
|
429
|
+
border: unset;
|
|
332
430
|
}
|
|
333
431
|
|
|
334
432
|
.@{ant-prefix}-pagination .@{ant-prefix}-pagination-item-active a {
|
|
335
|
-
color
|
|
336
|
-
background
|
|
433
|
+
color: #ffffff;
|
|
434
|
+
background: var(--zaui-brand, #006aff) !important;
|
|
337
435
|
border-radius: var(--zaui-border-radius, 4px);
|
|
338
436
|
}
|
|
339
437
|
|
|
@@ -351,16 +449,15 @@
|
|
|
351
449
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
352
450
|
|
|
353
451
|
.@{ant-prefix}-table-cell {
|
|
354
|
-
font-weight
|
|
452
|
+
font-weight: 500;
|
|
355
453
|
background-color: var(--zaui-table-header-bg, #f2f3f5);
|
|
356
|
-
border
|
|
454
|
+
border: none;
|
|
357
455
|
}
|
|
358
456
|
}
|
|
359
457
|
}
|
|
360
458
|
|
|
361
459
|
.@{ant-prefix}-dropdown-placement-bottomLeft {
|
|
362
460
|
.@{ant-prefix}-dropdown-menu-vertical.@{ant-prefix}-dropdown-menu-light {
|
|
363
|
-
|
|
364
461
|
.@{ant-prefix}-dropdown-menu-item-only-child {
|
|
365
462
|
&:hover {
|
|
366
463
|
background: rgba(0, 106, 255, 0.08);
|
package/es/ProTable/utils.js
CHANGED
|
@@ -208,7 +208,7 @@ export var formatColumn = function formatColumn(column, originalObj, dataSourceO
|
|
|
208
208
|
};
|
|
209
209
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
210
210
|
column.render = function (value, record, index) {
|
|
211
|
-
var realCode = typeof code === 'function' ? code() : code;
|
|
211
|
+
var realCode = typeof code === 'function' ? code(value, record) : code;
|
|
212
212
|
var renderValue = getEnumLabel(realCode, value, valueType === 'enumCodeName');
|
|
213
213
|
var originalValue = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
|
|
214
214
|
var originalRenderValue = getEnumLabel(realCode, originalValue, valueType === 'enumCodeName');
|
|
@@ -11,7 +11,7 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { CheckOutlined, CloseOutlined } from '@ant-design/icons';
|
|
13
13
|
import { useState, useEffect } from 'react';
|
|
14
|
-
import { setThemes
|
|
14
|
+
import { setThemes } from '../../utils/index';
|
|
15
15
|
import locale from '../../../locale';
|
|
16
16
|
var connect = function connect(Component) {
|
|
17
17
|
var ComponentWrapper = function ComponentWrapper(props) {
|
|
@@ -249,9 +249,9 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
249
249
|
setState(_objectSpread(_objectSpread({}, state), {}, {
|
|
250
250
|
zauiStripe: value
|
|
251
251
|
}));
|
|
252
|
-
setTableNoStripe(value);
|
|
253
252
|
setThemes({
|
|
254
|
-
'zaui-stripe': value
|
|
253
|
+
'zaui-stripe': value,
|
|
254
|
+
'zaui-table-strip-bg': value ? '#fafafa' : '#ffffff'
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
})
|
|
@@ -14,7 +14,7 @@ import { useEffect, useState } from 'react';
|
|
|
14
14
|
import { usePrevious, useUpdateEffect } from 'ahooks';
|
|
15
15
|
import { isEqual } from 'lodash';
|
|
16
16
|
import classnames from 'classnames';
|
|
17
|
-
import { getKebabCase, setThemes,
|
|
17
|
+
import { getKebabCase, setThemes, setTableBorder, getMapKebabCase, getMapHumpCase } from './utils/index';
|
|
18
18
|
import { PrdTools } from './component';
|
|
19
19
|
import locale from '../locale';
|
|
20
20
|
var defaultCacheTime = 1; // 配置保存时间为一天
|
|
@@ -153,7 +153,9 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
153
153
|
}, [zauiBrand]);
|
|
154
154
|
// 斑马纹设置
|
|
155
155
|
useEffect(function () {
|
|
156
|
-
|
|
156
|
+
setThemes({
|
|
157
|
+
'zaui-table-strip-bg': zauiStripe ? '#fafafa' : '#ffffff'
|
|
158
|
+
});
|
|
157
159
|
}, [zauiStripe]);
|
|
158
160
|
// 表格边框设置
|
|
159
161
|
useEffect(function () {
|
|
@@ -4,10 +4,8 @@ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { useSortable } from '@dnd-kit/sortable';
|
|
6
6
|
import { CSS } from '@dnd-kit/utilities';
|
|
7
|
-
import
|
|
7
|
+
import ProIcon from '../../ProIcon';
|
|
8
8
|
import { ProTooltip } from '../../index';
|
|
9
|
-
import disabledSvg from '../../assets/disabled.svg';
|
|
10
|
-
import dragSvg from '../../assets/drag.svg';
|
|
11
9
|
var SortableItem = function SortableItem(props) {
|
|
12
10
|
var drag = props.drag,
|
|
13
11
|
label = props.label,
|
|
@@ -43,12 +41,12 @@ var SortableItem = function SortableItem(props) {
|
|
|
43
41
|
onClose: function onClose(e) {
|
|
44
42
|
return _onClose(e);
|
|
45
43
|
},
|
|
46
|
-
children: [drag ? item.disabled || disabled ? _jsx(
|
|
44
|
+
children: [drag ? item.disabled || disabled ? _jsx(ProIcon, {
|
|
47
45
|
className: "disabled-icon",
|
|
48
|
-
|
|
49
|
-
}) : _jsx(
|
|
46
|
+
type: "lock"
|
|
47
|
+
}) : _jsx(ProIcon, _objectSpread({
|
|
50
48
|
className: "drag-icon",
|
|
51
|
-
|
|
49
|
+
type: "drag"
|
|
52
50
|
}, listeners)) : null, _jsx(ProTooltip, {
|
|
53
51
|
mode: "auto",
|
|
54
52
|
line: 1,
|
|
@@ -240,12 +240,6 @@
|
|
|
240
240
|
border: none;
|
|
241
241
|
border-radius: var(--zaui-border-radius, 4px);
|
|
242
242
|
|
|
243
|
-
.drag-icon {
|
|
244
|
-
height: 20px;
|
|
245
|
-
margin-right: var(--zaui-space-size-xs, 4px);
|
|
246
|
-
cursor: move;
|
|
247
|
-
}
|
|
248
|
-
|
|
249
243
|
.pro-tooltip {
|
|
250
244
|
flex: 1;
|
|
251
245
|
max-width: calc(100% - 42px);
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
.clearfix() {
|
|
3
3
|
&:before,
|
|
4
4
|
&:after {
|
|
5
|
-
content: ' ';
|
|
6
5
|
display: table;
|
|
6
|
+
content: ' ';
|
|
7
7
|
}
|
|
8
8
|
|
|
9
9
|
&:after {
|
|
@@ -14,8 +14,8 @@
|
|
|
14
14
|
// 水平居中
|
|
15
15
|
.center-block() {
|
|
16
16
|
display: block;
|
|
17
|
-
margin-left: auto;
|
|
18
17
|
margin-right: auto;
|
|
18
|
+
margin-left: auto;
|
|
19
19
|
}
|
|
20
20
|
|
|
21
21
|
// 尺码助手
|
|
@@ -30,17 +30,17 @@
|
|
|
30
30
|
|
|
31
31
|
// 可调整大小的文本区域
|
|
32
32
|
.resizable(@direction: both) {
|
|
33
|
-
// Options: horizontal, vertical, both
|
|
34
|
-
resize: @direction;
|
|
35
33
|
// Safari fix
|
|
36
34
|
overflow: auto;
|
|
35
|
+
// Options: horizontal, vertical, both
|
|
36
|
+
resize: @direction;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
// 截断文本
|
|
40
40
|
.text-truncate() {
|
|
41
41
|
overflow: hidden;
|
|
42
|
-
text-overflow: ellipsis;
|
|
43
42
|
white-space: nowrap;
|
|
43
|
+
text-overflow: ellipsis;
|
|
44
44
|
}
|
|
45
45
|
|
|
46
46
|
// mixins函数
|
|
@@ -68,3 +68,10 @@
|
|
|
68
68
|
.set-sm-text-size() {
|
|
69
69
|
font-size: calc(@zaui-font-size - 2px);
|
|
70
70
|
}
|
|
71
|
+
|
|
72
|
+
.pro-icon.drag-icon {
|
|
73
|
+
// height: 20px;
|
|
74
|
+
// width: 20px;
|
|
75
|
+
margin-right: var(--zaui-space-size-xs, 4px);
|
|
76
|
+
cursor: move;
|
|
77
|
+
}
|
|
@@ -4,7 +4,7 @@ interface RowProps extends React.HTMLAttributes<HTMLTableRowElement> {
|
|
|
4
4
|
disabled?: boolean;
|
|
5
5
|
}
|
|
6
6
|
export declare const Row: FC<RowProps>;
|
|
7
|
-
declare const DndWrapper: ({ draggable, value, onChange, disabled, children
|
|
7
|
+
declare const DndWrapper: ({ draggable, value, onChange, disabled, children }: {
|
|
8
8
|
draggable: any;
|
|
9
9
|
value: any;
|
|
10
10
|
onChange: any;
|
|
@@ -12,8 +12,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
12
12
|
var _core = require("@dnd-kit/core");
|
|
13
13
|
var _sortable = require("@dnd-kit/sortable");
|
|
14
14
|
var _utilities = require("@dnd-kit/utilities");
|
|
15
|
-
var
|
|
16
|
-
var _drag = _interopRequireDefault(require("../../../assets/drag.svg"));
|
|
15
|
+
var _ProIcon = _interopRequireDefault(require("../../../ProIcon"));
|
|
17
16
|
var _excluded = ["disabled", "children"];
|
|
18
17
|
var Row = exports.Row = function Row(props) {
|
|
19
18
|
var disabled = props.disabled,
|
|
@@ -51,13 +50,14 @@ var Row = exports.Row = function Row(props) {
|
|
|
51
50
|
return /*#__PURE__*/_react.default.cloneElement(child, {
|
|
52
51
|
children: (0, _jsxRuntime.jsxs)("span", {
|
|
53
52
|
className: "drag-wrapper",
|
|
54
|
-
children: [(0, _jsxRuntime.jsx)(
|
|
53
|
+
children: [(0, _jsxRuntime.jsx)(_ProIcon.default, (0, _objectSpread2.default)({
|
|
54
|
+
className: "drag-icon",
|
|
55
55
|
style: {
|
|
56
56
|
touchAction: 'none',
|
|
57
57
|
cursor: disabled ? 'no-drop' : 'move'
|
|
58
58
|
},
|
|
59
|
-
|
|
60
|
-
|
|
59
|
+
type: "drag",
|
|
60
|
+
size: 20
|
|
61
61
|
}, listeners)), render === null || render === void 0 ? void 0 : render(null, record, renderIndex)]
|
|
62
62
|
})
|
|
63
63
|
});
|
|
@@ -209,7 +209,7 @@ var RenderField = function RenderField(_ref) {
|
|
|
209
209
|
if (!((_names3 = names) === null || _names3 === void 0 ? void 0 : _names3.length)) {
|
|
210
210
|
return {};
|
|
211
211
|
}
|
|
212
|
-
var namesStr = [baseName, index, dataIndex];
|
|
212
|
+
var namesStr = [].concat((0, _toConsumableArray2.default)(baseName), [index, dataIndex]);
|
|
213
213
|
var transform = {};
|
|
214
214
|
if (valueType) {
|
|
215
215
|
transform = valueTypeTransform();
|