@kdcloudjs/kdesign 1.6.4 → 1.6.5-stable.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/CHANGELOG.md +76 -0
- package/dist/kdesign-complete.less +102 -97
- package/dist/kdesign.css +36 -44
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +271 -97
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +3 -3
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/cascader/cascader.js +2 -2
- package/es/cascader/style/index.css +4 -1
- package/es/cascader/style/index.less +5 -1
- package/es/cascader/style/token.less +1 -0
- package/es/input/style/index.css +3 -3
- package/es/input/style/token.less +1 -1
- package/es/locale/locale.d.ts +2 -3
- package/es/locale/zh-CN.d.ts +2 -0
- package/es/locale/zh-CN.js +3 -1
- package/es/pagination/pagination.d.ts +3 -0
- package/es/pagination/pagination.js +34 -15
- package/es/pagination/style/index.css +24 -21
- package/es/pagination/style/index.less +85 -79
- package/es/rate/rate.js +1 -1
- package/es/rate/style/index.css +3 -3
- package/es/rate/style/index.less +9 -3
- package/es/search/search.js +12 -6
- package/es/steps/style/index.css +0 -13
- package/es/steps/style/index.less +0 -11
- package/es/table/feature/mergeCellHover.d.ts +3 -0
- package/es/table/feature/mergeCellHover.js +7 -0
- package/es/table/interface.d.ts +8 -0
- package/es/table/table.d.ts +2 -2
- package/es/table/table.js +20 -6
- package/es/transfer/list.d.ts +1 -1
- package/es/transfer/list.js +8 -2
- package/es/transfer/transfer.d.ts +1 -1
- package/es/transfer/transfer.js +29 -4
- package/es/upload/style/index.css +1 -2
- package/es/upload/style/index.less +1 -2
- package/lib/cascader/cascader.js +2 -2
- package/lib/cascader/style/index.css +4 -1
- package/lib/cascader/style/index.less +5 -1
- package/lib/cascader/style/token.less +1 -0
- package/lib/input/style/index.css +3 -3
- package/lib/input/style/token.less +1 -1
- package/lib/locale/locale.d.ts +2 -3
- package/lib/locale/zh-CN.d.ts +2 -0
- package/lib/locale/zh-CN.js +3 -1
- package/lib/pagination/pagination.d.ts +3 -0
- package/lib/pagination/pagination.js +36 -16
- package/lib/pagination/style/index.css +24 -21
- package/lib/pagination/style/index.less +85 -79
- package/lib/rate/rate.js +1 -1
- package/lib/rate/style/index.css +3 -3
- package/lib/rate/style/index.less +9 -3
- package/lib/search/search.js +12 -6
- package/lib/steps/style/index.css +0 -13
- package/lib/steps/style/index.less +0 -11
- package/lib/table/feature/mergeCellHover.d.ts +3 -0
- package/lib/table/feature/mergeCellHover.js +15 -0
- package/lib/table/interface.d.ts +8 -0
- package/lib/table/table.d.ts +2 -2
- package/lib/table/table.js +20 -4
- package/lib/transfer/list.d.ts +1 -1
- package/lib/transfer/list.js +8 -1
- package/lib/transfer/transfer.d.ts +1 -1
- package/lib/transfer/transfer.js +29 -3
- package/lib/upload/style/index.css +1 -2
- package/lib/upload/style/index.less +1 -2
- package/package.json +2 -2
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
.kd-pagination .kd-pagination-selector .kd-dropdown-menu-item span {
|
|
293
293
|
white-space: nowrap;
|
|
294
294
|
}
|
|
295
|
-
.kd-pagination.simple {
|
|
295
|
+
.kd-pagination.simple .kd-pagination-action {
|
|
296
296
|
display: -webkit-inline-box;
|
|
297
297
|
display: -ms-inline-flexbox;
|
|
298
298
|
display: inline-flex;
|
|
@@ -305,22 +305,22 @@
|
|
|
305
305
|
border-radius: var(--kd-g-radius-border, 2px);
|
|
306
306
|
border: var(--kd-c-pagination-sizing-border-width, 1px) solid transparent;
|
|
307
307
|
}
|
|
308
|
-
.kd-pagination.simple.bordered {
|
|
308
|
+
.kd-pagination.simple .kd-pagination-action.bordered {
|
|
309
309
|
border-color: var(--kd-c-pagination-color-border, var(--kd-g-color-border-strong, #d9d9d9));
|
|
310
310
|
-webkit-transition: border-color var(--kd-g-duration, 0.3s);
|
|
311
311
|
transition: border-color var(--kd-g-duration, 0.3s);
|
|
312
312
|
}
|
|
313
|
-
.kd-pagination.simple.bordered:active:not(.disabled) {
|
|
313
|
+
.kd-pagination.simple .kd-pagination-action.bordered:active:not(.disabled) {
|
|
314
314
|
border-color: var(--kd-c-pagination-color-border-hover, var(--kd-g-color-theme-7, #375cca));
|
|
315
315
|
}
|
|
316
|
-
.kd-pagination.simple.bordered.disabled,
|
|
317
|
-
.kd-pagination.simple.bordered.disabled > .kd-pagination-item > button {
|
|
316
|
+
.kd-pagination.simple .kd-pagination-action.bordered.disabled,
|
|
317
|
+
.kd-pagination.simple .kd-pagination-action.bordered.disabled > .kd-pagination-item > button {
|
|
318
318
|
background-color: var(--kd-c-pagination-button-color-background-disabled, var(--kd-g-color-background-contain-disabled, #f5f5f5));
|
|
319
319
|
}
|
|
320
|
-
.kd-pagination.simple.disabled > .kd-pagination-item {
|
|
320
|
+
.kd-pagination.simple .kd-pagination-action.disabled > .kd-pagination-action-item {
|
|
321
321
|
color: var(--kd-c-pagination-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
322
322
|
}
|
|
323
|
-
.kd-pagination.simple .kd-pagination-item {
|
|
323
|
+
.kd-pagination.simple .kd-pagination-action-item {
|
|
324
324
|
-webkit-box-sizing: border-box;
|
|
325
325
|
box-sizing: border-box;
|
|
326
326
|
margin: 0;
|
|
@@ -336,26 +336,29 @@
|
|
|
336
336
|
vertical-align: middle;
|
|
337
337
|
color: var(--kd-g-color-text-primary, #212121);
|
|
338
338
|
}
|
|
339
|
-
.kd-pagination.simple .kd-pagination-item:first-child,
|
|
340
|
-
.kd-pagination.simple .kd-pagination-item:last-child {
|
|
339
|
+
.kd-pagination.simple .kd-pagination-action-item:first-child,
|
|
340
|
+
.kd-pagination.simple .kd-pagination-action-item:last-child {
|
|
341
341
|
margin: 0;
|
|
342
342
|
}
|
|
343
|
-
.kd-pagination.simple .kd-pagination-item .kd-pagination-current {
|
|
343
|
+
.kd-pagination.simple .kd-pagination-action-item .kd-pagination-current {
|
|
344
344
|
margin-right: 2px;
|
|
345
345
|
vertical-align: middle;
|
|
346
346
|
}
|
|
347
|
-
.kd-pagination.simple .kd-pagination-item .kd-pagination-current .kd-pagination-current-input {
|
|
347
|
+
.kd-pagination.simple .kd-pagination-action-item .kd-pagination-current .kd-pagination-current-input {
|
|
348
348
|
margin: 0;
|
|
349
349
|
}
|
|
350
|
-
.kd-pagination.simple .kd-pagination-item .kd-pagination-current .kd-pagination-current-input:disabled {
|
|
350
|
+
.kd-pagination.simple .kd-pagination-action-item .kd-pagination-current .kd-pagination-current-input:disabled {
|
|
351
351
|
color: var(--kd-c-pagination-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
352
352
|
cursor: not-allowed;
|
|
353
353
|
}
|
|
354
|
-
.kd-pagination.simple .kd-pagination-item .kd-pagination-total {
|
|
354
|
+
.kd-pagination.simple .kd-pagination-action-item .kd-pagination-total {
|
|
355
355
|
vertical-align: middle;
|
|
356
356
|
margin-right: 0;
|
|
357
357
|
}
|
|
358
|
-
.kd-pagination.simple .kd-pagination-item button {
|
|
358
|
+
.kd-pagination.simple .kd-pagination-action-item.bordered > button {
|
|
359
|
+
border: none;
|
|
360
|
+
}
|
|
361
|
+
.kd-pagination.simple .kd-pagination-action-item button {
|
|
359
362
|
-webkit-box-sizing: border-box;
|
|
360
363
|
box-sizing: border-box;
|
|
361
364
|
position: relative;
|
|
@@ -370,21 +373,21 @@
|
|
|
370
373
|
-webkit-transition: border-color var(--kd-g-duration, 0.3s);
|
|
371
374
|
transition: border-color var(--kd-g-duration, 0.3s);
|
|
372
375
|
}
|
|
373
|
-
.kd-pagination.simple .kd-pagination-item button:hover:not(:disabled),
|
|
374
|
-
.kd-pagination.simple .kd-pagination-item button:active:not(:disabled) {
|
|
376
|
+
.kd-pagination.simple .kd-pagination-action-item button:hover:not(:disabled),
|
|
377
|
+
.kd-pagination.simple .kd-pagination-action-item button:active:not(:disabled) {
|
|
375
378
|
border-color: var(--kd-c-pagination-color-border-hover, var(--kd-g-color-theme-7, #375cca));
|
|
376
379
|
}
|
|
377
|
-
.kd-pagination.simple .kd-pagination-item button:hover i,
|
|
378
|
-
.kd-pagination.simple .kd-pagination-item button:active i {
|
|
380
|
+
.kd-pagination.simple .kd-pagination-action-item button:hover i,
|
|
381
|
+
.kd-pagination.simple .kd-pagination-action-item button:active i {
|
|
379
382
|
color: var(--kd-c-pagination-color-text-hover, var(--kd-g-color-theme, #5582f3));
|
|
380
383
|
}
|
|
381
|
-
.kd-pagination.simple .kd-pagination-item button:disabled {
|
|
384
|
+
.kd-pagination.simple .kd-pagination-action-item button:disabled {
|
|
382
385
|
cursor: not-allowed;
|
|
383
386
|
}
|
|
384
|
-
.kd-pagination.simple .kd-pagination-item button:disabled i {
|
|
387
|
+
.kd-pagination.simple .kd-pagination-action-item button:disabled i {
|
|
385
388
|
color: var(--kd-c-pagination-color-disabled, var(--kd-g-color-disabled, #b2b2b2));
|
|
386
389
|
}
|
|
387
|
-
.kd-pagination.simple .kd-pagination-item button i {
|
|
390
|
+
.kd-pagination.simple .kd-pagination-action-item button i {
|
|
388
391
|
position: absolute;
|
|
389
392
|
top: 0;
|
|
390
393
|
right: 0;
|
|
@@ -186,107 +186,113 @@
|
|
|
186
186
|
|
|
187
187
|
// 简化版分页
|
|
188
188
|
&.simple {
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
189
|
+
.@{pagination-prefix-cls}-action {
|
|
190
|
+
display: inline-flex;
|
|
191
|
+
justify-content: space-around;
|
|
192
|
+
align-items: center;
|
|
193
|
+
height: @pagination-size;
|
|
194
|
+
border-radius: @radius-border;
|
|
195
|
+
border: @pagination-border-size solid transparent;
|
|
195
196
|
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
197
|
+
&.bordered {
|
|
198
|
+
border-color: @pagination-border-color;
|
|
199
|
+
transition: border-color @duration-promptly;
|
|
199
200
|
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
201
|
+
&:active:not(.disabled) {
|
|
202
|
+
border-color: @pagination-border-hover-color;
|
|
203
|
+
}
|
|
203
204
|
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
205
|
+
&.disabled,
|
|
206
|
+
&.disabled > .@{pagination-prefix-cls}-item > button {
|
|
207
|
+
background-color: @pagination-button-disabled-background-color;
|
|
208
|
+
}
|
|
207
209
|
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
&.disabled > .@{pagination-prefix-cls}-item {
|
|
211
|
-
color: @pagination-disabled-color;
|
|
212
|
-
}
|
|
213
|
-
|
|
214
|
-
.@{pagination-prefix-cls}-item {
|
|
215
|
-
.reset-component;
|
|
216
|
-
display: inline-block;
|
|
217
|
-
height: @pagination-size;
|
|
218
|
-
overflow: hidden;
|
|
219
|
-
margin: 0 8px;
|
|
220
|
-
vertical-align: middle;
|
|
221
|
-
color: @color-text-primary;
|
|
222
210
|
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
margin: 0;
|
|
211
|
+
&.disabled > .@{pagination-prefix-cls}-action-item {
|
|
212
|
+
color: @pagination-disabled-color;
|
|
226
213
|
}
|
|
227
214
|
|
|
228
|
-
|
|
229
|
-
|
|
215
|
+
&-item {
|
|
216
|
+
.reset-component;
|
|
217
|
+
display: inline-block;
|
|
218
|
+
height: @pagination-size;
|
|
219
|
+
overflow: hidden;
|
|
220
|
+
margin: 0 8px;
|
|
230
221
|
vertical-align: middle;
|
|
222
|
+
color: @color-text-primary;
|
|
231
223
|
|
|
232
|
-
|
|
224
|
+
&:first-child,
|
|
225
|
+
&:last-child {
|
|
233
226
|
margin: 0;
|
|
227
|
+
}
|
|
234
228
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
229
|
+
.@{pagination-prefix-cls}-current {
|
|
230
|
+
margin-right: 2px;
|
|
231
|
+
vertical-align: middle;
|
|
232
|
+
|
|
233
|
+
.@{pagination-prefix-cls}-current-input {
|
|
234
|
+
margin: 0;
|
|
235
|
+
|
|
236
|
+
&:disabled {
|
|
237
|
+
color: @pagination-disabled-color;
|
|
238
|
+
cursor: not-allowed;
|
|
239
|
+
}
|
|
238
240
|
}
|
|
239
241
|
}
|
|
240
|
-
}
|
|
241
242
|
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
243
|
+
.@{pagination-prefix-cls}-total {
|
|
244
|
+
vertical-align: middle;
|
|
245
|
+
margin-right: 0;
|
|
246
|
+
}
|
|
246
247
|
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
width: calc(@pagination-size - 2px);
|
|
251
|
-
height: calc(@pagination-size - 2px);
|
|
252
|
-
border: none;
|
|
253
|
-
background-color: @color-background;
|
|
254
|
-
border-radius: @radius-border;
|
|
255
|
-
cursor: pointer;
|
|
256
|
-
outline: none;
|
|
257
|
-
vertical-align: middle;
|
|
258
|
-
transition: border-color @duration-promptly;
|
|
248
|
+
&.bordered > button {
|
|
249
|
+
border: none;
|
|
250
|
+
}
|
|
259
251
|
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
252
|
+
button {
|
|
253
|
+
box-sizing: border-box;
|
|
254
|
+
position: relative;
|
|
255
|
+
width: calc(@pagination-size - 2px);
|
|
256
|
+
height: calc(@pagination-size - 2px);
|
|
257
|
+
border: none;
|
|
258
|
+
background-color: @color-background;
|
|
259
|
+
border-radius: @radius-border;
|
|
260
|
+
cursor: pointer;
|
|
261
|
+
outline: none;
|
|
262
|
+
vertical-align: middle;
|
|
263
|
+
transition: border-color @duration-promptly;
|
|
265
264
|
|
|
266
|
-
|
|
267
|
-
|
|
265
|
+
&:hover,
|
|
266
|
+
&:active {
|
|
267
|
+
&:not(:disabled) {
|
|
268
|
+
border-color: @pagination-border-hover-color;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
i {
|
|
272
|
+
color: @pagination-hover-color;
|
|
273
|
+
}
|
|
268
274
|
}
|
|
269
|
-
}
|
|
270
275
|
|
|
271
|
-
|
|
272
|
-
|
|
276
|
+
&:disabled {
|
|
277
|
+
cursor: not-allowed;
|
|
273
278
|
|
|
274
|
-
|
|
275
|
-
|
|
279
|
+
i {
|
|
280
|
+
color: @pagination-disabled-color;
|
|
281
|
+
}
|
|
276
282
|
}
|
|
277
|
-
}
|
|
278
283
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
284
|
+
i {
|
|
285
|
+
position: absolute;
|
|
286
|
+
top: 0;
|
|
287
|
+
right: 0;
|
|
288
|
+
bottom: 0;
|
|
289
|
+
left: 0;
|
|
290
|
+
margin: auto;
|
|
291
|
+
line-height: calc(@pagination-size - 2px);
|
|
292
|
+
font-size: @pagination-icon-size;
|
|
293
|
+
color: @pagination-icon-color;
|
|
294
|
+
transition: color @duration-promptly;
|
|
295
|
+
}
|
|
290
296
|
}
|
|
291
297
|
}
|
|
292
298
|
}
|
package/lib/rate/rate.js
CHANGED
|
@@ -84,7 +84,7 @@ var Rate = function Rate(props) {
|
|
|
84
84
|
|
|
85
85
|
|
|
86
86
|
React.useEffect(function () {
|
|
87
|
-
if (value
|
|
87
|
+
if (value !== undefined && value !== selectedValue) {
|
|
88
88
|
setSelectedValue(value);
|
|
89
89
|
}
|
|
90
90
|
}, [value, selectedValue]); // const shouldSetValue = (value: number) => {
|
package/lib/rate/style/index.css
CHANGED
|
@@ -120,13 +120,13 @@
|
|
|
120
120
|
-ms-flex-pack: start;
|
|
121
121
|
justify-content: flex-start;
|
|
122
122
|
}
|
|
123
|
-
.kd-rate-size-large {
|
|
123
|
+
.kd-rate-size-large .kdicon {
|
|
124
124
|
font-size: var(--kd-c-rate-font-size-large, 20px);
|
|
125
125
|
}
|
|
126
|
-
.kd-rate-size-middle {
|
|
126
|
+
.kd-rate-size-middle .kdicon {
|
|
127
127
|
font-size: var(--kd-c-rate-font-size-middle, 16px);
|
|
128
128
|
}
|
|
129
|
-
.kd-rate-size-small {
|
|
129
|
+
.kd-rate-size-small .kdicon {
|
|
130
130
|
font-size: var(--kd-c-rate-font-size-small, 12px);
|
|
131
131
|
}
|
|
132
132
|
.kd-rate-item {
|
|
@@ -9,13 +9,19 @@
|
|
|
9
9
|
display: inline-flex;
|
|
10
10
|
justify-content: flex-start;
|
|
11
11
|
&-size-large {
|
|
12
|
-
|
|
12
|
+
.@{kd-prefix}icon {
|
|
13
|
+
font-size: @rate-large-font-size;
|
|
14
|
+
}
|
|
13
15
|
}
|
|
14
16
|
&-size-middle {
|
|
15
|
-
|
|
17
|
+
.@{kd-prefix}icon {
|
|
18
|
+
font-size: @rate-middle-font-size;
|
|
19
|
+
}
|
|
16
20
|
}
|
|
17
21
|
&-size-small {
|
|
18
|
-
|
|
22
|
+
.@{kd-prefix}icon {
|
|
23
|
+
font-size: @rate-small-font-size;
|
|
24
|
+
}
|
|
19
25
|
}
|
|
20
26
|
}
|
|
21
27
|
.@{rate-prefix-cls}-item {
|
package/lib/search/search.js
CHANGED
|
@@ -85,7 +85,9 @@ var InternalSearch = function InternalSearch(props, ref) {
|
|
|
85
85
|
type = searchProps.type,
|
|
86
86
|
placeholder = searchProps.placeholder,
|
|
87
87
|
onSearch = searchProps.onSearch,
|
|
88
|
-
|
|
88
|
+
onFocus = searchProps.onFocus,
|
|
89
|
+
onBlur = searchProps.onBlur,
|
|
90
|
+
restProps = __rest(searchProps, ["prefixCls", "className", "style", "size", "disabled", "onPressEnter", "prefix", "suffix", "borderType", "children", "type", "placeholder", "onSearch", "onFocus", "onBlur"]);
|
|
89
91
|
|
|
90
92
|
(0, _devwarning.default)(_interface.SearchSizeTypes.indexOf(size) === -1, 'search', "cannot found search size '".concat(size, "'"));
|
|
91
93
|
(0, _devwarning.default)(_interface.BorderTypes.indexOf(borderType) === -1, 'search', "cannot found search borderType '".concat(borderType, "'"));
|
|
@@ -104,12 +106,14 @@ var InternalSearch = function InternalSearch(props, ref) {
|
|
|
104
106
|
var handlePressEnter = (0, _react.useCallback)(function (_, event) {
|
|
105
107
|
onPressEnter && (onPressEnter === null || onPressEnter === void 0 ? void 0 : onPressEnter(searchRef.current.value, event));
|
|
106
108
|
}, [onPressEnter, searchRef]);
|
|
107
|
-
var handleFocus = (0, _react.useCallback)(function () {
|
|
109
|
+
var handleFocus = (0, _react.useCallback)(function (event) {
|
|
108
110
|
setFocused(true);
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
onFocus && onFocus(event);
|
|
112
|
+
}, [onFocus]);
|
|
113
|
+
var handleBlur = (0, _react.useCallback)(function (event) {
|
|
111
114
|
setFocused(false);
|
|
112
|
-
|
|
115
|
+
onBlur && onBlur(event);
|
|
116
|
+
}, [onBlur]);
|
|
113
117
|
var renderPrefix = (0, _react.useCallback)(function () {
|
|
114
118
|
if (!prefix) {
|
|
115
119
|
return null;
|
|
@@ -142,7 +146,9 @@ var InternalSearch = function InternalSearch(props, ref) {
|
|
|
142
146
|
onSearch: onSearch,
|
|
143
147
|
className: className,
|
|
144
148
|
style: style,
|
|
145
|
-
placeholder: placeholder
|
|
149
|
+
placeholder: placeholder,
|
|
150
|
+
onFocus: onFocus,
|
|
151
|
+
onBlur: onBlur
|
|
146
152
|
}), children);
|
|
147
153
|
}
|
|
148
154
|
|
|
@@ -164,9 +164,6 @@
|
|
|
164
164
|
-webkit-box-direction: normal;
|
|
165
165
|
-ms-flex-direction: column;
|
|
166
166
|
flex-direction: column;
|
|
167
|
-
-webkit-box-pack: center;
|
|
168
|
-
-ms-flex-pack: center;
|
|
169
|
-
justify-content: center;
|
|
170
167
|
}
|
|
171
168
|
.kd-steps-item-iconContainer {
|
|
172
169
|
display: -webkit-box;
|
|
@@ -233,21 +230,11 @@
|
|
|
233
230
|
line-height: 20px;
|
|
234
231
|
font-size: var(--kd-c-steps-font-size, var(--kd-g-font-size-small, 12px));
|
|
235
232
|
color: var(--kd-c-steps-color-wait, #999);
|
|
236
|
-
overflow: hidden;
|
|
237
|
-
text-overflow: ellipsis;
|
|
238
|
-
word-break: break-word;
|
|
239
|
-
display: -webkit-box;
|
|
240
|
-
-webkit-box-orient: vertical;
|
|
241
233
|
}
|
|
242
234
|
.kd-steps-item-content .kd-steps-item-description {
|
|
243
235
|
line-height: 20px;
|
|
244
236
|
font-size: var(--kd-c-steps-font-size, var(--kd-g-font-size-small, 12px));
|
|
245
237
|
color: var(--kd-c-steps-color-wait, #999);
|
|
246
|
-
overflow: hidden;
|
|
247
|
-
text-overflow: ellipsis;
|
|
248
|
-
word-break: break-word;
|
|
249
|
-
display: -webkit-box;
|
|
250
|
-
-webkit-box-orient: vertical;
|
|
251
238
|
width: var(--kd-c-steps-vertical-description-sizing-width, 200px);
|
|
252
239
|
}
|
|
253
240
|
.kd-steps-item-process {
|
|
@@ -69,7 +69,6 @@
|
|
|
69
69
|
width: 100%;
|
|
70
70
|
display: flex;
|
|
71
71
|
flex-direction: column;
|
|
72
|
-
justify-content: center;
|
|
73
72
|
}
|
|
74
73
|
|
|
75
74
|
&-iconContainer {
|
|
@@ -126,22 +125,12 @@
|
|
|
126
125
|
line-height: 20px;
|
|
127
126
|
font-size: @steps-font-size;
|
|
128
127
|
color: @steps-color-wait;
|
|
129
|
-
overflow: hidden;
|
|
130
|
-
text-overflow: ellipsis;
|
|
131
|
-
word-break: break-word;
|
|
132
|
-
display: -webkit-box;
|
|
133
|
-
-webkit-box-orient: vertical;
|
|
134
128
|
}
|
|
135
129
|
|
|
136
130
|
.@{steps-prefix-cls}-item-description {
|
|
137
131
|
line-height: 20px;
|
|
138
132
|
font-size: @steps-font-size;
|
|
139
133
|
color: @steps-color-wait;
|
|
140
|
-
overflow: hidden;
|
|
141
|
-
text-overflow: ellipsis;
|
|
142
|
-
word-break: break-word;
|
|
143
|
-
display: -webkit-box;
|
|
144
|
-
-webkit-box-orient: vertical;
|
|
145
134
|
width: @steps-vertical-description-sizing-width;
|
|
146
135
|
}
|
|
147
136
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
8
|
+
var _table = require("@kdcloudjs/table");
|
|
9
|
+
|
|
10
|
+
function mergeCellHover(pipeline) {
|
|
11
|
+
pipeline.use(_table.features.mergeCellHover());
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
var _default = mergeCellHover;
|
|
15
|
+
exports.default = _default;
|
package/lib/table/interface.d.ts
CHANGED
|
@@ -10,6 +10,14 @@ declare type TablePropsOfComponents = Pick<BaseTableProps, 'components'> & {
|
|
|
10
10
|
};
|
|
11
11
|
};
|
|
12
12
|
declare type TablePropsOfExtend = Omit<BaseTableProps, 'components'>;
|
|
13
|
+
export declare type TableApi = {
|
|
14
|
+
getColumns: () => any[];
|
|
15
|
+
getDataSource: () => any[];
|
|
16
|
+
getFooterDataSource: () => any[];
|
|
17
|
+
};
|
|
18
|
+
export declare type TableInstance = {
|
|
19
|
+
api: TableApi;
|
|
20
|
+
};
|
|
13
21
|
export interface TableProps extends TablePropsOfExtend, TablePropsOfComponents {
|
|
14
22
|
rowSelection?: TableRowSelection;
|
|
15
23
|
prefixCls?: string;
|
package/lib/table/table.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { TableProps } from './interface';
|
|
3
|
-
declare
|
|
3
|
+
declare const Table: React.ForwardRefExoticComponent<TableProps & React.RefAttributes<unknown>>;
|
|
4
4
|
export default Table;
|
package/lib/table/table.js
CHANGED
|
@@ -53,13 +53,15 @@ var _contextMenu = _interopRequireDefault(require("./feature/contextMenu"));
|
|
|
53
53
|
|
|
54
54
|
var _useRangeSelection = _interopRequireDefault(require("./feature/useRangeSelection"));
|
|
55
55
|
|
|
56
|
+
var _mergeCellHover = _interopRequireDefault(require("./feature/mergeCellHover"));
|
|
57
|
+
|
|
56
58
|
var _devwarning = _interopRequireDefault(require("../_utils/devwarning"));
|
|
57
59
|
|
|
58
60
|
function _getRequireWildcardCache(nodeInterop) { if (typeof _WeakMap !== "function") return null; var cacheBabelInterop = new _WeakMap(); var cacheNodeInterop = new _WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
59
61
|
|
|
60
62
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && _Object$getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? _Object$getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
61
63
|
|
|
62
|
-
|
|
64
|
+
var Table = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
63
65
|
var columns = props.columns,
|
|
64
66
|
dataSource = props.dataSource,
|
|
65
67
|
columnDrag = props.columnDrag,
|
|
@@ -107,19 +109,32 @@ function Table(props) {
|
|
|
107
109
|
columns: columns,
|
|
108
110
|
dataSource: dataSource
|
|
109
111
|
});
|
|
112
|
+
var pipelineRef = (0, _react.useRef)(pipeline);
|
|
113
|
+
pipelineRef.current = pipeline;
|
|
110
114
|
|
|
111
115
|
if (footerDataSource) {
|
|
112
116
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
113
117
|
// @ts-ignore
|
|
114
118
|
pipeline.footerDataSource(footerDataSource);
|
|
115
119
|
}
|
|
120
|
+
|
|
121
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
122
|
+
var _a, _b, _c;
|
|
123
|
+
|
|
124
|
+
return {
|
|
125
|
+
api: {
|
|
126
|
+
getColumns: (_a = pipelineRef.current.getColumns) === null || _a === void 0 ? void 0 : _a.bind(pipelineRef.current),
|
|
127
|
+
getDataSource: (_b = pipelineRef.current.getDataSource) === null || _b === void 0 ? void 0 : _b.bind(pipelineRef.current),
|
|
128
|
+
getFooterDataSource: (_c = pipelineRef.current.getFooterDataSource) === null || _c === void 0 ? void 0 : _c.bind(pipelineRef.current)
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
});
|
|
116
132
|
/* -------------------------------------------------------------------------- */
|
|
117
133
|
|
|
118
134
|
/* features */
|
|
119
135
|
|
|
120
136
|
/* -------------------------------------------------------------------------- */
|
|
121
137
|
|
|
122
|
-
|
|
123
138
|
(0, _rowSelection.default)(pipeline, rowSelection);
|
|
124
139
|
(0, _rowDetail.default)(pipeline, rowDetail);
|
|
125
140
|
(0, _filter2.default)(pipeline, filter);
|
|
@@ -130,6 +145,7 @@ function Table(props) {
|
|
|
130
145
|
(0, _columnDrag.default)(pipeline, columnDrag);
|
|
131
146
|
(0, _contextMenu.default)(pipeline, contextMenu);
|
|
132
147
|
(0, _useRangeSelection.default)(pipeline, rangeSelection);
|
|
148
|
+
(0, _mergeCellHover.default)(pipeline);
|
|
133
149
|
/* -------------------------------------------------------------------------- */
|
|
134
150
|
|
|
135
151
|
/* after useTablePipeline, merge pipeline.getProps result */
|
|
@@ -174,7 +190,7 @@ function Table(props) {
|
|
|
174
190
|
scrollbarWidth: scrollbarWidth,
|
|
175
191
|
scrollLoad: scrollLoad
|
|
176
192
|
}));
|
|
177
|
-
}
|
|
178
|
-
|
|
193
|
+
});
|
|
194
|
+
Table.displayName = 'Table';
|
|
179
195
|
var _default = Table;
|
|
180
196
|
exports.default = _default;
|
package/lib/transfer/list.d.ts
CHANGED
|
@@ -32,5 +32,5 @@ export interface TransferListProps {
|
|
|
32
32
|
showRemove?: boolean;
|
|
33
33
|
pagination?: PaginationType;
|
|
34
34
|
}
|
|
35
|
-
declare const TransferList: React.
|
|
35
|
+
declare const TransferList: React.ForwardRefExoticComponent<TransferListProps & React.RefAttributes<unknown>>;
|
|
36
36
|
export default TransferList;
|
package/lib/transfer/list.js
CHANGED
|
@@ -49,7 +49,7 @@ function isRenderResultPlainObject(result) {
|
|
|
49
49
|
return result && ! /*#__PURE__*/_react.default.isValidElement(result) && Object.prototype.toString.call(result) === '[object Object]';
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
var
|
|
52
|
+
var ITransferList = function ITransferList(props, ref) {
|
|
53
53
|
var _classNames;
|
|
54
54
|
|
|
55
55
|
var prefixCls = props.prefixCls,
|
|
@@ -80,6 +80,11 @@ var TransferList = function TransferList(props) {
|
|
|
80
80
|
|
|
81
81
|
|
|
82
82
|
var footerDom = footer && footer(props);
|
|
83
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
84
|
+
return {
|
|
85
|
+
onClear: onClear
|
|
86
|
+
};
|
|
87
|
+
});
|
|
83
88
|
|
|
84
89
|
var renderItem = function renderItem(item) {
|
|
85
90
|
var renderResult = render(item);
|
|
@@ -258,6 +263,8 @@ var TransferList = function TransferList(props) {
|
|
|
258
263
|
}, getSelectAllLabel(checkedKeys.length, filteredItems.length))), listBody, listFooter);
|
|
259
264
|
};
|
|
260
265
|
|
|
266
|
+
var TransferList = /*#__PURE__*/_react.default.forwardRef(ITransferList);
|
|
267
|
+
|
|
261
268
|
TransferList.defaultProps = {
|
|
262
269
|
dataSource: [],
|
|
263
270
|
titleText: '',
|
|
@@ -29,5 +29,5 @@ export interface TransferProps {
|
|
|
29
29
|
pagination?: PaginationType;
|
|
30
30
|
footer?: (props: TransferListProps) => React.ReactNode;
|
|
31
31
|
}
|
|
32
|
-
declare const Transfer: React.
|
|
32
|
+
declare const Transfer: React.ForwardRefExoticComponent<TransferProps & React.RefAttributes<unknown>>;
|
|
33
33
|
export default Transfer;
|