@zat-design/sisyphus-react 3.4.0 → 3.4.1-beta.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 +120 -123
- 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 +5 -0
- 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 +5 -0
- 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/lib/ProTable/utils.js
CHANGED
|
@@ -215,7 +215,7 @@ var formatColumn = exports.formatColumn = function formatColumn(column, original
|
|
|
215
215
|
};
|
|
216
216
|
} else if (['enumName', 'enumCodeName'].includes(valueType)) {
|
|
217
217
|
column.render = function (value, record, index) {
|
|
218
|
-
var realCode = typeof code === 'function' ? code() : code;
|
|
218
|
+
var realCode = typeof code === 'function' ? code(value, record) : code;
|
|
219
219
|
var renderValue = (0, _getEnumLabel.default)(realCode, value, valueType === 'enumCodeName');
|
|
220
220
|
var originalValue = getOriginalValue(value, record, originalObj, rowKey, dataIndex);
|
|
221
221
|
var originalRenderValue = (0, _getEnumLabel.default)(realCode, originalValue, valueType === 'enumCodeName');
|
|
@@ -249,9 +249,9 @@ var PrdTools = function PrdTools(_ref) {
|
|
|
249
249
|
setState((0, _objectSpread2.default)((0, _objectSpread2.default)({}, state), {}, {
|
|
250
250
|
zauiStripe: value
|
|
251
251
|
}));
|
|
252
|
-
(0, _index.setTableNoStripe)(value);
|
|
253
252
|
(0, _index.setThemes)({
|
|
254
|
-
'zaui-stripe': value
|
|
253
|
+
'zaui-stripe': value,
|
|
254
|
+
'zaui-table-strip-bg': value ? '#fafafa' : '#ffffff'
|
|
255
255
|
});
|
|
256
256
|
}
|
|
257
257
|
})
|
|
@@ -157,7 +157,9 @@ var ProThemeTools = function ProThemeTools(_ref) {
|
|
|
157
157
|
}, [zauiBrand]);
|
|
158
158
|
// 斑马纹设置
|
|
159
159
|
(0, _react.useEffect)(function () {
|
|
160
|
-
(0, _index.
|
|
160
|
+
(0, _index.setThemes)({
|
|
161
|
+
'zaui-table-strip-bg': zauiStripe ? '#fafafa' : '#ffffff'
|
|
162
|
+
});
|
|
161
163
|
}, [zauiStripe]);
|
|
162
164
|
// 表格边框设置
|
|
163
165
|
(0, _react.useEffect)(function () {
|
|
@@ -10,10 +10,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
10
10
|
var _antd = require("antd");
|
|
11
11
|
var _sortable = require("@dnd-kit/sortable");
|
|
12
12
|
var _utilities = require("@dnd-kit/utilities");
|
|
13
|
-
var
|
|
13
|
+
var _ProIcon = _interopRequireDefault(require("../../ProIcon"));
|
|
14
14
|
var _index = require("../../index");
|
|
15
|
-
var _disabled = _interopRequireDefault(require("../../assets/disabled.svg"));
|
|
16
|
-
var _drag = _interopRequireDefault(require("../../assets/drag.svg"));
|
|
17
15
|
var SortableItem = function SortableItem(props) {
|
|
18
16
|
var drag = props.drag,
|
|
19
17
|
label = props.label,
|
|
@@ -49,12 +47,12 @@ var SortableItem = function SortableItem(props) {
|
|
|
49
47
|
onClose: function onClose(e) {
|
|
50
48
|
return _onClose(e);
|
|
51
49
|
},
|
|
52
|
-
children: [drag ? item.disabled || disabled ? (0, _jsxRuntime.jsx)(
|
|
50
|
+
children: [drag ? item.disabled || disabled ? (0, _jsxRuntime.jsx)(_ProIcon.default, {
|
|
53
51
|
className: "disabled-icon",
|
|
54
|
-
|
|
55
|
-
}) : (0, _jsxRuntime.jsx)(
|
|
52
|
+
type: "lock"
|
|
53
|
+
}) : (0, _jsxRuntime.jsx)(_ProIcon.default, (0, _objectSpread2.default)({
|
|
56
54
|
className: "drag-icon",
|
|
57
|
-
|
|
55
|
+
type: "drag"
|
|
58
56
|
}, listeners)) : null, (0, _jsxRuntime.jsx)(_index.ProTooltip, {
|
|
59
57
|
mode: "auto",
|
|
60
58
|
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
|
+
}
|