@kdcloudjs/kdesign 1.6.6 → 1.6.8

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.
Files changed (96) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/kdesign-complete.less +105 -105
  3. package/dist/kdesign.css +100 -83
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +741 -501
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/carousel/style/index.css +3 -0
  11. package/es/carousel/style/index.less +4 -0
  12. package/es/cascader/style/index.css +7 -7
  13. package/es/cascader/style/token.less +2 -2
  14. package/es/config-provider/compDefaultProps.d.ts +4 -0
  15. package/es/config-provider/compDefaultProps.js +5 -1
  16. package/es/date-picker/date-picker.js +11 -14
  17. package/es/date-picker/panel/month/month.d.ts +0 -1
  18. package/es/date-picker/panel/month/month.js +6 -4
  19. package/es/date-picker/range/input-range.js +41 -11
  20. package/es/date-picker/range-picker.js +8 -11
  21. package/es/date-picker/single/input-date.js +40 -10
  22. package/es/date-picker/style/index.css +27 -23
  23. package/es/date-picker/style/index.less +16 -33
  24. package/es/date-picker/style/mixin.less +7 -0
  25. package/es/date-picker/style/token.less +2 -1
  26. package/es/form/Field.d.ts +1 -0
  27. package/es/form/Field.js +9 -5
  28. package/es/form/FieldLabel.d.ts +1 -0
  29. package/es/form/FieldLabel.js +4 -2
  30. package/es/input/ClearableLabeledInput.js +23 -5
  31. package/es/input/style/index.css +5 -8
  32. package/es/input/style/index.less +2 -5
  33. package/es/input/style/mixin.less +3 -3
  34. package/es/input/style/token.less +2 -0
  35. package/es/search/style/index.css +3 -1
  36. package/es/search/style/index.less +3 -1
  37. package/es/search/style/token.less +2 -1
  38. package/es/select/interface.d.ts +2 -0
  39. package/es/select/option.js +1 -1
  40. package/es/select/select.js +180 -128
  41. package/es/select/style/index.css +54 -24
  42. package/es/select/style/index.less +60 -43
  43. package/es/select/style/mixin.less +0 -2
  44. package/es/select/style/token.less +2 -0
  45. package/es/slider/slider.js +15 -13
  46. package/es/split-panel/style/index.css +0 -6
  47. package/es/split-panel/style/index.less +0 -3
  48. package/es/steps/style/index.css +0 -13
  49. package/es/steps/style/index.less +0 -11
  50. package/es/table/feature/mergeCellHover.d.ts +3 -0
  51. package/es/table/feature/mergeCellHover.js +7 -0
  52. package/es/table/table.js +2 -0
  53. package/lib/carousel/style/index.css +3 -0
  54. package/lib/carousel/style/index.less +4 -0
  55. package/lib/cascader/style/index.css +7 -7
  56. package/lib/cascader/style/token.less +2 -2
  57. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  58. package/lib/config-provider/compDefaultProps.js +5 -1
  59. package/lib/date-picker/date-picker.js +10 -16
  60. package/lib/date-picker/panel/month/month.d.ts +0 -1
  61. package/lib/date-picker/panel/month/month.js +10 -8
  62. package/lib/date-picker/range/input-range.js +40 -11
  63. package/lib/date-picker/range-picker.js +7 -13
  64. package/lib/date-picker/single/input-date.js +37 -9
  65. package/lib/date-picker/style/index.css +27 -23
  66. package/lib/date-picker/style/index.less +16 -33
  67. package/lib/date-picker/style/mixin.less +7 -0
  68. package/lib/date-picker/style/token.less +2 -1
  69. package/lib/form/Field.d.ts +1 -0
  70. package/lib/form/Field.js +10 -6
  71. package/lib/form/FieldLabel.d.ts +1 -0
  72. package/lib/form/FieldLabel.js +4 -2
  73. package/lib/input/ClearableLabeledInput.js +34 -5
  74. package/lib/input/style/index.css +5 -8
  75. package/lib/input/style/index.less +2 -5
  76. package/lib/input/style/mixin.less +3 -3
  77. package/lib/input/style/token.less +2 -0
  78. package/lib/search/style/index.css +3 -1
  79. package/lib/search/style/index.less +3 -1
  80. package/lib/search/style/token.less +2 -1
  81. package/lib/select/interface.d.ts +2 -0
  82. package/lib/select/option.js +1 -1
  83. package/lib/select/select.js +179 -126
  84. package/lib/select/style/index.css +54 -24
  85. package/lib/select/style/index.less +60 -43
  86. package/lib/select/style/mixin.less +0 -2
  87. package/lib/select/style/token.less +2 -0
  88. package/lib/slider/slider.js +14 -12
  89. package/lib/split-panel/style/index.css +0 -6
  90. package/lib/split-panel/style/index.less +0 -3
  91. package/lib/steps/style/index.css +0 -13
  92. package/lib/steps/style/index.less +0 -11
  93. package/lib/table/feature/mergeCellHover.d.ts +3 -0
  94. package/lib/table/feature/mergeCellHover.js +15 -0
  95. package/lib/table/table.js +3 -0
  96. package/package.json +1 -1
@@ -248,6 +248,9 @@
248
248
  .kd-select-visible .kd-select-icon-active {
249
249
  color: #3761ca;
250
250
  }
251
+ .kd-select-visible .kd-select-selection-item {
252
+ color: var(--kd-c-select-placeholder-color-text, #b2b2b2);
253
+ }
251
254
  .kd-select-icon-arrow {
252
255
  display: -webkit-inline-box;
253
256
  display: -ms-inline-flexbox;
@@ -278,36 +281,20 @@
278
281
  }
279
282
  .kd-select-icon-clear {
280
283
  opacity: 0;
284
+ z-index: 1;
285
+ position: absolute;
286
+ background: #fff;
281
287
  -webkit-transition: opacity 0.15s ease;
282
288
  transition: opacity 0.15s ease;
283
289
  }
284
290
  .kd-select-icon-clear:hover {
285
291
  color: var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
286
292
  }
287
- .kd-select-selection-search {
288
- position: absolute;
289
- top: 0;
290
- bottom: 0;
291
- left: 11px;
292
- }
293
- .kd-select-selection-search-input {
294
- opacity: 0;
295
- margin: 0;
296
- padding: 0;
297
- background: 0 0;
298
- border: none;
299
- outline: none;
300
- -webkit-appearance: none;
301
- -moz-appearance: none;
302
- appearance: none;
303
- }
304
- .kd-select-selection-search-input:hover {
305
- cursor: pointer;
306
- }
307
293
  .kd-select-focused {
308
294
  border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
309
295
  }
310
296
  .kd-select-placeholder {
297
+ position: absolute;
311
298
  color: var(--kd-c-select-placeholder-color-text, #b2b2b2);
312
299
  overflow: hidden;
313
300
  white-space: nowrap;
@@ -331,7 +318,7 @@
331
318
  border: 1px solid var(--kd-c-select-color-border-hover, var(--kd-g-color-theme, #5582f3));
332
319
  }
333
320
  .kd-select-bordered .kd-select-suffix {
334
- right: 10px;
321
+ padding-right: 8px;
335
322
  }
336
323
  .kd-select-wrapper {
337
324
  -webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
@@ -352,6 +339,7 @@
352
339
  box-sizing: border-box;
353
340
  overflow-y: auto;
354
341
  overflow-x: hidden;
342
+ position: relative;
355
343
  }
356
344
  .kd-select-dropdown {
357
345
  display: block;
@@ -433,19 +421,16 @@
433
421
  .kd-select-size-small {
434
422
  min-height: var(--kd-c-select-sizing-height-small, 24px);
435
423
  max-height: calc(var(--kd-c-select-sizing-height-small, 24px) * 3 - 10px);
436
- line-height: var(--kd-c-select-line-height-small, 14px);
437
424
  font-size: var(--kd-c-select-font-size-small, 12px);
438
425
  }
439
426
  .kd-select-size-middle {
440
427
  min-height: var(--kd-c-select-sizing-height-middle, 30px);
441
428
  max-height: calc(var(--kd-c-select-sizing-height-middle, 30px) * 3 - 10px);
442
- line-height: var(--kd-c-select-line-height-middle, 22px);
443
429
  font-size: var(--kd-c-select-font-size-middle, 14px);
444
430
  }
445
431
  .kd-select-size-large {
446
432
  min-height: var(--kd-c-select-sizing-height-large, 36px);
447
433
  max-height: calc(var(--kd-c-select-sizing-height-large, 36px) * 3 - 10px);
448
- line-height: var(--kd-c-select-line-height-large, 28px);
449
434
  font-size: var(--kd-c-select-font-size-large, 16px);
450
435
  }
451
436
  .kd-select-suffix {
@@ -467,6 +452,20 @@
467
452
  justify-content: center;
468
453
  margin-left: 8px;
469
454
  }
455
+ .kd-select-single .kd-select-selection-search {
456
+ position: absolute;
457
+ right: 28px;
458
+ left: 0;
459
+ height: 100%;
460
+ }
461
+ .kd-select-single .kd-select-selection-search-input {
462
+ outline: 0;
463
+ border-radius: 0;
464
+ border: none;
465
+ background: transparent;
466
+ height: 100%;
467
+ width: 100%;
468
+ }
470
469
  .kd-select-single-focused {
471
470
  border-color: var(--kd-c-select-color-border-foucs, var(--kd-g-color-theme, #5582f3)) !important;
472
471
  }
@@ -483,6 +482,12 @@
483
482
  .kd-select-single:hover .kd-select-icon-clear {
484
483
  opacity: 1;
485
484
  }
485
+ .kd-select-single .kd-select-icon-clear {
486
+ color: var(--kd-c-select-icon-clear-color-text, #d9d9d9);
487
+ }
488
+ .kd-select-single .kd-select-icon-clear:hover {
489
+ color: var(--kd-c-select-icon-clear-color-text-hover, #999);
490
+ }
486
491
  .kd-select-single-text {
487
492
  color: var(--kd-c-select-single-color-text, var(--kd-g-color-text-primary, #212121));
488
493
  overflow: hidden;
@@ -561,6 +566,25 @@
561
566
  width: 100%;
562
567
  min-width: 20px;
563
568
  }
569
+ .kd-select-multiple .kd-select-selection-search {
570
+ position: relative;
571
+ max-width: 100%;
572
+ }
573
+ .kd-select-multiple .kd-select-selection-search-input {
574
+ outline: 0;
575
+ border-radius: 0;
576
+ border: none;
577
+ background: transparent;
578
+ width: 100%;
579
+ }
580
+ .kd-select-multiple .kd-select-selection-search-mirror {
581
+ position: absolute;
582
+ top: 0;
583
+ left: 0;
584
+ z-index: 999;
585
+ white-space: pre;
586
+ visibility: hidden;
587
+ }
564
588
  .kd-select-multiple-disabled {
565
589
  cursor: not-allowed;
566
590
  background-color: var(--kd-c-select-color-background-disabled, #f5f5f5);
@@ -572,6 +596,12 @@
572
596
  .kd-select-multiple:hover .kd-select-icon-clear {
573
597
  opacity: 1;
574
598
  }
599
+ .kd-select-multiple .kd-select-icon-clear {
600
+ color: var(--kd-c-select-icon-clear-color-text, #d9d9d9);
601
+ }
602
+ .kd-select-multiple .kd-select-icon-clear:hover {
603
+ color: var(--kd-c-select-icon-clear-color-text-hover, #999);
604
+ }
575
605
  .kd-select-multiple-selector {
576
606
  position: relative;
577
607
  cursor: text;
@@ -22,6 +22,9 @@
22
22
  .@{select-prefix-cls}-icon-active {
23
23
  color: #3761ca;
24
24
  }
25
+ .@{select-prefix-cls}-selection-item {
26
+ color: @select-placeholder-color;
27
+ }
25
28
  }
26
29
 
27
30
  &-icon {
@@ -46,6 +49,9 @@
46
49
 
47
50
  &-clear {
48
51
  opacity: 0;
52
+ z-index: 1;
53
+ position: absolute;
54
+ background: #fff;
49
55
  transition: opacity 0.15s ease;
50
56
  &:hover {
51
57
  color: @select-g-color-border-hover;
@@ -53,30 +59,11 @@
53
59
  }
54
60
  }
55
61
 
56
- &-selection-search {
57
- position: absolute;
58
- top: 0;
59
- bottom: 0;
60
- left: 11px;
61
- &-input {
62
- opacity: 0;
63
- margin: 0;
64
- padding: 0;
65
- background: 0 0;
66
- border: none;
67
- outline: none;
68
- appearance: none;
69
- &:hover {
70
- cursor: pointer;
71
- }
72
- }
73
- }
74
-
75
62
  &-focused {
76
63
  .focusColor();
77
- // border-bottom: 1px solid #5582F3 ;
78
64
  }
79
65
  &-placeholder {
66
+ position: absolute;
80
67
  color: @select-placeholder-color;
81
68
  overflow: hidden;
82
69
  white-space: nowrap;
@@ -103,7 +90,7 @@
103
90
  }
104
91
 
105
92
  .@{select-prefix-cls}-suffix {
106
- right: 10px;
93
+ padding-right: 8px;
107
94
  }
108
95
  }
109
96
 
@@ -119,6 +106,7 @@
119
106
  box-sizing: border-box;
120
107
  overflow-y: auto;
121
108
  overflow-x: hidden;
109
+ position: relative;
122
110
  }
123
111
 
124
112
  &-dropdown {
@@ -180,7 +168,6 @@
180
168
 
181
169
  &-selected:not(&-disabled) {
182
170
  color: @select-item-selected-color;
183
- // font-weight: @select-item-selected-font-weight;
184
171
  background-color: @select-item-selected-bg;
185
172
  }
186
173
 
@@ -216,6 +203,22 @@
216
203
  margin-left: 8px;
217
204
  }
218
205
  &-single {
206
+ .@{select-prefix-cls}-selection {
207
+ &-search {
208
+ position: absolute;
209
+ right: 28px;
210
+ left: 0;
211
+ height: 100%;
212
+ &-input {
213
+ outline: 0;
214
+ border-radius: 0;
215
+ border: none;
216
+ background: transparent;
217
+ height: 100%;
218
+ width: 100%;
219
+ }
220
+ }
221
+ }
219
222
  &-focused {
220
223
  .focusColor();
221
224
  }
@@ -233,6 +236,13 @@
233
236
  &:hover .@{select-prefix-cls}-icon-clear {
234
237
  opacity: 1;
235
238
  }
239
+
240
+ .@{select-prefix-cls}-icon-clear {
241
+ color: @select-clear-color;
242
+ &:hover {
243
+ color: @select-clear-color-hover;
244
+ }
245
+ }
236
246
  &-text {
237
247
  color: @select-single-color-text;
238
248
  .over();
@@ -243,7 +253,6 @@
243
253
  }
244
254
 
245
255
  .@{select-prefix-cls}-selection-item {
246
- // position: relative;
247
256
  display: inline-flex;
248
257
  box-sizing: border-box;
249
258
  align-items: center;
@@ -252,12 +261,6 @@
252
261
  height: 20px;
253
262
  line-height: 20px;
254
263
  margin: 2px 8px 2px 0;
255
- // margin: 2px 4px 2px 0;
256
- // margin-right: 4px;
257
- // padding-left: 8px;
258
- // background: #fafafa;
259
- // border: 1px solid #d9d9d9;
260
- // border-radius: 2px;
261
264
  cursor: default;
262
265
  user-select: none;
263
266
  &-small {
@@ -289,24 +292,13 @@
289
292
  border: 1px solid #ccc;
290
293
  color: #212121;
291
294
  }
292
- // &-remove {
293
- // text-align: center;
294
- // text-transform: none;
295
- // display: inline-flex;
296
- // color: rgba(0, 0, 0, 0.45);
297
- // line-height: inherit;
298
- // cursor: pointer;
299
- // &:hover {
300
- // color: #212121;
301
- // }
302
- // }
295
+
303
296
  &-span {
304
297
  position: relative;
305
298
  margin-left: 0.5px;
306
299
  box-sizing: border-box;
307
300
  }
308
301
  &-input {
309
- // opacity: 0;
310
302
  cursor: text;
311
303
  margin: 0;
312
304
  padding: 0;
@@ -321,6 +313,27 @@
321
313
 
322
314
  // 多选
323
315
  &-multiple {
316
+ .@{select-prefix-cls}-selection {
317
+ &-search {
318
+ position: relative;
319
+ max-width: 100%;
320
+ &-input {
321
+ outline: 0;
322
+ border-radius: 0;
323
+ border: none;
324
+ background: transparent;
325
+ width: 100%;
326
+ }
327
+ &-mirror {
328
+ position: absolute;
329
+ top: 0;
330
+ left: 0;
331
+ z-index: 999;
332
+ white-space: pre;
333
+ visibility: hidden;
334
+ }
335
+ }
336
+ }
324
337
  &-disabled {
325
338
  cursor: not-allowed;
326
339
  background-color: @select-color-background-disabled;
@@ -333,6 +346,12 @@
333
346
  &:hover .@{select-prefix-cls}-icon-clear {
334
347
  opacity: 1;
335
348
  }
349
+ .@{select-prefix-cls}-icon-clear {
350
+ color: @select-clear-color;
351
+ &:hover {
352
+ color: @select-clear-color-hover;
353
+ }
354
+ }
336
355
  &-selector {
337
356
  position: relative;
338
357
  cursor: text;
@@ -378,5 +397,3 @@
378
397
  transition: all calc(@transition-duration - 0.1s) @ease;
379
398
  }
380
399
  }
381
-
382
-
@@ -12,14 +12,12 @@
12
12
  }
13
13
 
14
14
  .focusColor() {
15
- // border-bottom: 1px solid #5582F3;
16
15
  border-color: @select-g-color-border-foucs !important;
17
16
  }
18
17
 
19
18
  .select-input-size(@height, @maxHeight, @lineHeight, @fontSize) {
20
19
  min-height: @height;
21
20
  max-height: calc(@maxHeight * 3 - 10px);
22
- line-height: @lineHeight;
23
21
  font-size: @fontSize;
24
22
  }
25
23
 
@@ -21,6 +21,8 @@
21
21
  @select-color-text-disabled: var(~'@{select-custom-prefix}-color-text-disabled', @color-disabled);
22
22
  @select-arrow-icon-color-text-disabled: var(~'@{select-custom-prefix}-arrow-icon-color-text-disabled', #b2b2b2);
23
23
  @select-single-color-text: var(~'@{select-custom-prefix}-single-color-text', @color-text-primary);
24
+ @select-clear-color: var(~'@{select-custom-prefix}-icon-clear-color-text', #d9d9d9);
25
+ @select-clear-color-hover: var(~'@{select-custom-prefix}-icon-clear-color-text-hover', #999);
24
26
 
25
27
  // font
26
28
  @select-list-font-size: var(~'@{select-custom-prefix}-dropdown-font-size', 12px); // 下拉列表文字大小
@@ -108,11 +108,11 @@ var InteranalSlider = function InteranalSlider(props, ref) {
108
108
  value = _useMergedState2[0],
109
109
  setValue = _useMergedState2[1];
110
110
 
111
- var _useState = (0, _react.useState)(false),
112
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
113
- dragging = _useState2[0],
114
- setDraging = _useState2[1];
115
-
111
+ var isDragging = (0, _react.useRef)(false);
112
+ var valueRef = (0, _react.useRef)((0, _hooks.useMergedState)(0, {
113
+ defaultValue: defaultValue,
114
+ value: propsValue
115
+ }));
116
116
  var mouseOffset;
117
117
 
118
118
  var addDocumentMouseEvents = function addDocumentMouseEvents() {
@@ -183,11 +183,11 @@ var InteranalSlider = function InteranalSlider(props, ref) {
183
183
  var onEnd = function onEnd() {
184
184
  removeDocumentEvents();
185
185
 
186
- if (dragging) {
187
- onAfterChange && onAfterChange(value);
186
+ if (isDragging.current) {
187
+ onAfterChange && onAfterChange(valueRef.current);
188
188
  }
189
189
 
190
- setDraging(false);
190
+ isDragging.current = false;
191
191
  };
192
192
 
193
193
  var handleTouchStart = function handleTouchStart() {// console.log('object :>> ', 'object', addDocumentMouseEvents)
@@ -210,11 +210,12 @@ var InteranalSlider = function InteranalSlider(props, ref) {
210
210
  } // 设置状态值
211
211
 
212
212
 
213
- setDraging(true);
213
+ isDragging.current = true;
214
214
  var newV = calcValueByPos(position);
215
215
 
216
216
  if (newV !== value) {
217
217
  setValue(newV);
218
+ valueRef.current = newV;
218
219
  }
219
220
 
220
221
  onChange && onChange(newV); // 监听document的鼠标事件
@@ -241,11 +242,11 @@ var InteranalSlider = function InteranalSlider(props, ref) {
241
242
  if (!sliderRef.current) {
242
243
  removeDocumentEvents();
243
244
 
244
- if (dragging) {
245
+ if (isDragging.current) {
245
246
  onAfterChange(value);
246
247
  }
247
248
 
248
- setDraging(false);
249
+ isDragging.current = false;
249
250
  return;
250
251
  }
251
252
 
@@ -254,6 +255,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
254
255
 
255
256
  if (newV !== value) {
256
257
  setValue(newV);
258
+ valueRef.current = newV;
257
259
  }
258
260
 
259
261
  onChange && onChange(newV);
@@ -271,7 +273,7 @@ var InteranalSlider = function InteranalSlider(props, ref) {
271
273
  style: style,
272
274
  onTouchStart: disabled ? noop : handleTouchStart,
273
275
  onMouseDown: disabled ? noop : handleMouseDown,
274
- onMouseUp: disabled ? noop : handleMouseUp,
276
+ // onMouseUp={disabled ? noop : handleMouseUp}
275
277
  onKeyDown: disabled ? noop : handleKeyDown,
276
278
  onFocus: disabled ? noop : handleFocus,
277
279
  onBlur: disabled ? noop : handleBlur
@@ -114,8 +114,6 @@
114
114
  .kd-split-panel {
115
115
  position: absolute;
116
116
  overflow: hidden;
117
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
118
- transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
119
117
  }
120
118
  .kd-split-panel.left-panel,
121
119
  .kd-split-panel.right-panel {
@@ -154,8 +152,6 @@
154
152
  -webkit-transform: translate(-50%, -50%);
155
153
  transform: translate(-50%, -50%);
156
154
  z-index: 10;
157
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
158
- transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
159
155
  }
160
156
  .kd-split-trigger-con.is-active .kd-split-trigger-arrow {
161
157
  border-color: var(--kd-c-split-panel-arrow-color-background, #999);
@@ -192,8 +188,6 @@
192
188
  -webkit-box-pack: center;
193
189
  -ms-flex-pack: center;
194
190
  justify-content: center;
195
- -webkit-transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
196
- transition: all calc(0.3s - 0.1s) cubic-bezier(0, 0.4, 0.4, 1);
197
191
  -webkit-box-sizing: border-box;
198
192
  box-sizing: border-box;
199
193
  border: var(--kd-c-split-panel-arrow-sizing-border, 1px) solid transparent;
@@ -17,7 +17,6 @@
17
17
  &-panel {
18
18
  position: absolute;
19
19
  overflow: hidden;
20
- transition: all calc(@transition-duration - 0.1s) @ease-out;
21
20
  &.left-panel, &.right-panel {
22
21
  top: 0;
23
22
  bottom: 0;
@@ -54,7 +53,6 @@
54
53
  position: absolute;
55
54
  transform: translate(-50%, -50%);
56
55
  z-index: 10;
57
- transition: all calc(@transition-duration - 0.1s) @ease-out;
58
56
  &.is-active {
59
57
  .@{split-prefix-cls}-trigger-arrow {
60
58
  border-color: @split-panel-trigger-arrow-color;
@@ -95,7 +93,6 @@
95
93
  display: inline-flex;
96
94
  align-items: center;
97
95
  justify-content: center;
98
- transition: all calc(@transition-duration - 0.1s) @ease-out;
99
96
  box-sizing: border-box;
100
97
  border: @split-panel-arrow-border-width solid transparent;
101
98
  .@{kd-prefix}icon {
@@ -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,3 @@
1
+ import { TablePipeline } from '../interface';
2
+ declare function mergeCellHover(pipeline: TablePipeline): void;
3
+ export default mergeCellHover;
@@ -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;
@@ -53,6 +53,8 @@ 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); }
@@ -143,6 +145,7 @@ var Table = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
143
145
  (0, _columnDrag.default)(pipeline, columnDrag);
144
146
  (0, _contextMenu.default)(pipeline, contextMenu);
145
147
  (0, _useRangeSelection.default)(pipeline, rangeSelection);
148
+ (0, _mergeCellHover.default)(pipeline);
146
149
  /* -------------------------------------------------------------------------- */
147
150
 
148
151
  /* after useTablePipeline, merge pipeline.getProps result */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kdcloudjs/kdesign",
3
- "version": "1.6.6",
3
+ "version": "1.6.8",
4
4
  "description": "KDesign 金蝶前端react 组件库",
5
5
  "title": "kdesign",
6
6
  "keywords": [