@kdcloudjs/kdesign 1.7.21 → 1.7.23

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 (114) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist/kdesign-complete.less +63 -17
  3. package/dist/kdesign.css +42 -8
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +110 -44
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +3 -3
  8. package/dist/kdesign.min.js +6 -6
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/reactNode.d.ts +1 -0
  11. package/es/_utils/reactNode.js +3 -0
  12. package/es/button/style/index.css +3 -0
  13. package/es/button/style/index.less +3 -3
  14. package/es/button/style/mixin.less +2 -1
  15. package/es/button/style/token.less +3 -0
  16. package/es/checkbox/group.js +1 -1
  17. package/es/checkbox/style/index.css +1 -0
  18. package/es/checkbox/style/index.less +1 -0
  19. package/es/checkbox/style/token.less +1 -0
  20. package/es/collapse/style/index.css +3 -0
  21. package/es/collapse/style/index.less +3 -0
  22. package/es/dropdown/dropdown.js +4 -3
  23. package/es/filter/style/index.css +6 -0
  24. package/es/filter/style/index.less +7 -0
  25. package/es/filter/style/token.less +4 -0
  26. package/es/form/style/index.css +1 -1
  27. package/es/form/style/index.less +1 -1
  28. package/es/form/style/token.less +1 -1
  29. package/es/input/input.js +21 -3
  30. package/es/input-number/inputNumber.js +6 -0
  31. package/es/menu/menu.js +27 -18
  32. package/es/menu/style/index.css +5 -1
  33. package/es/menu/style/mixin.less +3 -1
  34. package/es/menu/style/token.less +2 -0
  35. package/es/radio/style/index.css +7 -0
  36. package/es/radio/style/index.less +5 -1
  37. package/es/radio/style/token.less +3 -0
  38. package/es/search/style/index.css +1 -0
  39. package/es/search/style/index.less +1 -0
  40. package/es/search/style/token.less +1 -0
  41. package/es/select/select.js +17 -3
  42. package/es/tag/style/index.css +6 -0
  43. package/es/tag/style/index.less +3 -3
  44. package/es/tag/style/mixin.less +3 -1
  45. package/es/tag/style/token.less +2 -0
  46. package/es/timeline/TimelineItem.js +2 -1
  47. package/es/timeline/style/index.css +4 -3
  48. package/es/timeline/style/index.less +5 -3
  49. package/es/timeline/style/token.less +2 -0
  50. package/es/tooltip/tooltip.js +3 -2
  51. package/es/transfer/style/index.css +2 -2
  52. package/es/transfer/style/index.less +2 -2
  53. package/es/transfer/style/token.less +1 -0
  54. package/es/tree/style/index.css +2 -0
  55. package/es/tree/style/index.less +2 -0
  56. package/es/tree/style/token.less +2 -0
  57. package/es/tree/tree.js +8 -1
  58. package/es/virtual-list/Filler.d.ts +1 -0
  59. package/es/virtual-list/Filler.js +4 -3
  60. package/es/virtual-list/virtual-list.d.ts +1 -0
  61. package/es/virtual-list/virtual-list.js +5 -3
  62. package/lib/_utils/reactNode.d.ts +1 -0
  63. package/lib/_utils/reactNode.js +4 -0
  64. package/lib/button/style/index.css +3 -0
  65. package/lib/button/style/index.less +3 -3
  66. package/lib/button/style/mixin.less +2 -1
  67. package/lib/button/style/token.less +3 -0
  68. package/lib/checkbox/group.js +1 -1
  69. package/lib/checkbox/style/index.css +1 -0
  70. package/lib/checkbox/style/index.less +1 -0
  71. package/lib/checkbox/style/token.less +1 -0
  72. package/lib/collapse/style/index.css +3 -0
  73. package/lib/collapse/style/index.less +3 -0
  74. package/lib/dropdown/dropdown.js +4 -3
  75. package/lib/filter/style/index.css +6 -0
  76. package/lib/filter/style/index.less +7 -0
  77. package/lib/filter/style/token.less +4 -0
  78. package/lib/form/style/index.css +1 -1
  79. package/lib/form/style/index.less +1 -1
  80. package/lib/form/style/token.less +1 -1
  81. package/lib/input/input.js +20 -2
  82. package/lib/input-number/inputNumber.js +6 -0
  83. package/lib/menu/menu.js +26 -17
  84. package/lib/menu/style/index.css +5 -1
  85. package/lib/menu/style/mixin.less +3 -1
  86. package/lib/menu/style/token.less +2 -0
  87. package/lib/radio/style/index.css +7 -0
  88. package/lib/radio/style/index.less +5 -1
  89. package/lib/radio/style/token.less +3 -0
  90. package/lib/search/style/index.css +1 -0
  91. package/lib/search/style/index.less +1 -0
  92. package/lib/search/style/token.less +1 -0
  93. package/lib/select/select.js +16 -2
  94. package/lib/tag/style/index.css +6 -0
  95. package/lib/tag/style/index.less +3 -3
  96. package/lib/tag/style/mixin.less +3 -1
  97. package/lib/tag/style/token.less +2 -0
  98. package/lib/timeline/TimelineItem.js +2 -1
  99. package/lib/timeline/style/index.css +4 -3
  100. package/lib/timeline/style/index.less +5 -3
  101. package/lib/timeline/style/token.less +2 -0
  102. package/lib/tooltip/tooltip.js +3 -2
  103. package/lib/transfer/style/index.css +2 -2
  104. package/lib/transfer/style/index.less +2 -2
  105. package/lib/transfer/style/token.less +1 -0
  106. package/lib/tree/style/index.css +2 -0
  107. package/lib/tree/style/index.less +2 -0
  108. package/lib/tree/style/token.less +2 -0
  109. package/lib/tree/tree.js +8 -1
  110. package/lib/virtual-list/Filler.d.ts +1 -0
  111. package/lib/virtual-list/Filler.js +4 -3
  112. package/lib/virtual-list/virtual-list.d.ts +1 -0
  113. package/lib/virtual-list/virtual-list.js +5 -3
  114. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,14 @@
1
+ ## [1.7.21](https://github.com/kdcloudone/kdesign/compare/v1.7.20...v1.7.21) (2023-08-11)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * [select] 修复传入的value在option中不存在时的显示问题 fix [#503](https://github.com/kdcloudone/kdesign/issues/503) ([a0e7621](https://github.com/kdcloudone/kdesign/commit/a0e76214965cce905e71cdfe0487a5664366a239))
7
+ * [tree-select] 修复传入的value值在treeData不存在时的显示问题 fix [#504](https://github.com/kdcloudone/kdesign/issues/504) ([2034a11](https://github.com/kdcloudone/kdesign/commit/2034a11af4a4cbe858a337798be6243c3f63ed93))
8
+ * [tree] 优化树控件虚拟滚动 fix [#520](https://github.com/kdcloudone/kdesign/issues/520) ([972b581](https://github.com/kdcloudone/kdesign/commit/972b58169c9bf6b98138c858b149bb7d624f4142))
9
+
10
+
11
+
1
12
  ## [1.7.20](https://github.com/kdcloudone/kdesign/compare/v1.7.19...v1.7.20) (2023-08-04)
2
13
 
3
14
 
@@ -1026,7 +1026,7 @@
1026
1026
 
1027
1027
  // 小号尺寸按钮
1028
1028
  &-size-small {
1029
- .btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width);
1029
+ .btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width, @btn-small-max-width);
1030
1030
  &.@{btn-prefix-cls}-icon-only {
1031
1031
  font-size: @btn-icon-small-font-size;
1032
1032
  padding: 0 @btn-icon-padding-horizontal;
@@ -1042,7 +1042,7 @@
1042
1042
 
1043
1043
  // 中号尺寸按钮
1044
1044
  &-size-middle {
1045
- .btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width);
1045
+ .btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width, @btn-middle-max-width);
1046
1046
  &.@{btn-prefix-cls}-icon-only {
1047
1047
  font-size: @btn-icon-middle-font-size;
1048
1048
  padding: 0 @btn-icon-padding-horizontal;
@@ -1058,7 +1058,7 @@
1058
1058
 
1059
1059
  // 大号尺寸按钮
1060
1060
  &-size-large {
1061
- .btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width);
1061
+ .btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width, @btn-large-max-width);
1062
1062
  &.@{btn-prefix-cls}-icon-only {
1063
1063
  font-size: @btn-icon-large-font-size;
1064
1064
  padding: 0 @btn-icon-padding-horizontal;
@@ -1302,12 +1302,13 @@
1302
1302
  color: @color;
1303
1303
  }
1304
1304
  // 各个按钮尺寸的样式Mixins
1305
- .btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width) {
1305
+ .btn-size(@height, @font-size, @padding-vertical, @padding-horizontal, @min-width,@max-width) {
1306
1306
  height: @height;
1307
1307
  min-width: @min-width;
1308
1308
  line-height: calc(@height - (@padding-vertical * 2) - (@btn-border-width * 2));
1309
1309
  font-size: @font-size;
1310
1310
  padding: @padding-vertical @padding-horizontal;
1311
+ max-width: @max-width;
1311
1312
  }
1312
1313
  // 圆形按钮不同尺寸的样式Mixins
1313
1314
  .btn-shape-circle-width(@width) {
@@ -1405,11 +1406,14 @@
1405
1406
  @btn-border-width: var(~'@{button-custom-prefix}-sizing-border', 1px);
1406
1407
  @btn-small-height: var(~'@{button-custom-prefix}-sizing-height-small', 24px); // 小号 高度
1407
1408
  @btn-small-min-width: var(~'@{button-custom-prefix}-sizing-min-width-small', 60px); // 小号 最小宽度
1409
+ @btn-small-max-width: var(~'@{button-custom-prefix}-sizing-max-width-small'); // 小号 最大宽度
1408
1410
  @btn-middle-height: var(~'@{button-custom-prefix}-sizing-height-middle', 28px); // 中号 高度 高度配置
1409
1411
  @btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
1412
+ @btn-middle-max-width: var(~'@{button-custom-prefix}-sizing-max-width-middle'); // 中号 最大宽度
1410
1413
  @btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
1411
1414
  @btn-middle-max-width: var(~'@{button-custom-prefix}-sizing-max-width-middle'); // 中号 最大宽度
1412
1415
  @btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
1416
+ @btn-large-max-width: var(~'@{button-custom-prefix}-sizing-max-width-large'); // 大号 最大宽度
1413
1417
  @btn-group-dropdown-item-height: var(~'@{button-custom-prefix}--group-dropdown-item-height', 30px);
1414
1418
  @btn-group-dropdown-min-width: var(~'@{button-custom-prefix}-group-dropdown-min-width', 80px);
1415
1419
 
@@ -2211,6 +2215,7 @@
2211
2215
  overflow: hidden;
2212
2216
  white-space: nowrap;
2213
2217
  text-overflow: ellipsis;
2218
+ max-width: @checkbox-default-input-label-max-width;
2214
2219
 
2215
2220
  .kd-input-underline {
2216
2221
  background-color: transparent;
@@ -2466,6 +2471,7 @@
2466
2471
  @checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 14px); // 勾选输入框高度
2467
2472
  @checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 14px); // 勾选输入框宽度
2468
2473
  @checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
2474
+ @checkbox-default-input-label-max-width: var(~'@{checkbox-prefix}-default-input-label-max-width'); // 勾选输入框便签文本最大宽度,默认为未设置。
2469
2475
  @checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
2470
2476
  @checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
2471
2477
  @checkbox-default-indeterminate-square: var(~'@{checkbox-prefix}-default-indeterminate-sizing-square', 6px); // 半选框的大小
@@ -2906,6 +2912,9 @@
2906
2912
  &-panel:last-child {
2907
2913
  border-top: none;
2908
2914
  }
2915
+ &-panel:first-child {
2916
+ border-top: @collapse-border-width solid @collapse-border-color;
2917
+ }
2909
2918
  &-panel {
2910
2919
  display: inline-flex;
2911
2920
  flex-direction: column;
@@ -4710,6 +4719,7 @@
4710
4719
  &-item-text {
4711
4720
  max-width: 224px;
4712
4721
  .ellipsis;
4722
+ display: block;
4713
4723
  }
4714
4724
  }
4715
4725
 
@@ -4804,6 +4814,7 @@
4804
4814
  padding: 11px 0 10px;
4805
4815
  color: @color-text-third;
4806
4816
  line-height: 18px;
4817
+ width: @filter-body-condition-label-width;
4807
4818
  }
4808
4819
 
4809
4820
  &-options {
@@ -4828,6 +4839,11 @@
4828
4839
  border: 1px solid transparent;
4829
4840
  cursor: pointer;
4830
4841
  white-space: nowrap;
4842
+ max-width: @filter-body-condition-option-max-width;
4843
+ overflow: hidden;
4844
+ display: inline-block;
4845
+ text-overflow: ellipsis;
4846
+
4831
4847
 
4832
4848
  &:not(:last-child) {
4833
4849
  margin-right: 24px;
@@ -4968,6 +4984,10 @@
4968
4984
  @filter-handle-font-size: var(~'@{filter-custom-prefix}-handle-font-size', @font-size-middle);
4969
4985
  @filter-body-tabs-item-font-size: var(~'@{filter-custom-prefix}-body-tabs-item-font-size', @font-size-middle);
4970
4986
 
4987
+ //sizing
4988
+ @filter-body-condition-label-width: var(~'@{filter-custom-prefix}-body-condition-label-width');
4989
+ @filter-body-condition-option-max-width: var(~'@{filter-custom-prefix}-body-condition-option-max-width');
4990
+
4971
4991
 
4972
4992
 
4973
4993
 
@@ -5009,7 +5029,7 @@
5009
5029
  flex-direction: column;
5010
5030
 
5011
5031
  .@{field-label-cls} {
5012
- margin-bottom: 5px;
5032
+ margin-bottom: @form-field-label-spacing-margin-bottom;
5013
5033
  }
5014
5034
  }
5015
5035
 
@@ -5082,7 +5102,7 @@
5082
5102
  @form-field-spacing-margin-bottom: var(~'@{form-prefix}-field-spacing-margin-bottom', 22px);
5083
5103
  @form-field-message-spacing-padding-horizontal: var(~'@{form-prefix}-field-message-spacing-padding-horizontal', 2px);
5084
5104
  @form-field-message-spacing-padding-vertical: var(~'@{form-prefix}-field-message-spacing-padding-vertical', 8px);
5085
-
5105
+ @form-field-label-spacing-margin-bottom: var(~'@{form-prefix}-field-label-spacing-margin-bottom', 5px);
5086
5106
 
5087
5107
 
5088
5108
 
@@ -6788,7 +6808,8 @@ textarea {
6788
6808
  position: relative;
6789
6809
  width: 100%;
6790
6810
  height: 100%;
6791
- min-width: 138px;
6811
+ min-width: @menu-min-width;
6812
+ max-width: @menu-max-width;
6792
6813
  background-color: @menu-color-background;
6793
6814
  color: @menu-sub-color;
6794
6815
  }
@@ -6857,6 +6878,7 @@ textarea {
6857
6878
  }
6858
6879
 
6859
6880
  .menu-hidden {
6881
+ display: none;
6860
6882
  opacity: 0;
6861
6883
  visibility: hidden;
6862
6884
  animation: kdZoomTopLeftOut calc(@menu-motion-duration - 0.1s) cubic-bezier(0, .4, .4, 1) forwards;
@@ -6964,6 +6986,8 @@ textarea {
6964
6986
  @menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
6965
6987
 
6966
6988
  // sizing
6989
+ @menu-max-width: var(~'@{menu-prefix}-sizing-max-width');
6990
+ @menu-min-width: var(~'@{menu-prefix}-sizing-min-width',138px);
6967
6991
  @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
6968
6992
 
6969
6993
  // z-index
@@ -8539,6 +8563,8 @@ textarea {
8539
8563
  vertical-align: middle;
8540
8564
  color: @radio-font-color;
8541
8565
  font-size: @radio-font-size;
8566
+ max-width: @radio-default-label-max-width;
8567
+ overflow: hidden;
8542
8568
 
8543
8569
  &::before {
8544
8570
  position: absolute;
@@ -8669,6 +8695,7 @@ textarea {
8669
8695
  border-radius: @radius-size;
8670
8696
  border: @radio-border-width solid @radio-color-border;
8671
8697
  transition: all @transition-duration;
8698
+ max-width: @radio-square-label-max-width;
8672
8699
 
8673
8700
  &::after {
8674
8701
  position: absolute;
@@ -8758,7 +8785,7 @@ textarea {
8758
8785
  // 按钮类型(切换按钮)
8759
8786
  .@{radio-button-prefix-cls} {
8760
8787
  .reset-component();
8761
-
8788
+ .ellipsis();
8762
8789
  // 默认状态
8763
8790
  position: relative;
8764
8791
  display: inline-block;
@@ -8776,6 +8803,7 @@ textarea {
8776
8803
  border: @radio-border-width solid @radio-color-border;
8777
8804
  border-left: none;
8778
8805
  transition: all @transition-duration;
8806
+ max-width: @radio-button-label-max-width;
8779
8807
 
8780
8808
  &:first-child {
8781
8809
  border-radius: @radius-size 0 0 @radius-size;
@@ -8901,6 +8929,9 @@ textarea {
8901
8929
  // sizing
8902
8930
  @radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',14px);//单选图标大小
8903
8931
  @radio-square-height: var(~'@{radio-prefix}-square-sizing-height',32px);//单选框 高度
8932
+ @radio-default-label-max-width: var(~'@{radio-prefix}-default-label-max-width');//单选默认模式 最大宽度
8933
+ @radio-square-label-max-width: var(~'@{radio-prefix}-square-label-max-width');//单选框模式 最大宽度
8934
+ @radio-button-label-max-width: var(~'@{radio-prefix}-button-label-max-width');//单选按 最大宽度
8904
8935
 
8905
8936
  // spacing
8906
8937
  @radio-margin-right: var(~'@{radio-prefix}-spacing-margin-right',8px);
@@ -9151,6 +9182,7 @@ textarea {
9151
9182
  padding: 0 4px;
9152
9183
  align-self: center;
9153
9184
  .ellipsis();
9185
+ max-width: @search-tag-max-width;
9154
9186
  }
9155
9187
  &-del {
9156
9188
  height: 14px;
@@ -9577,6 +9609,7 @@ textarea {
9577
9609
  @search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
9578
9610
  @quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
9579
9611
  @search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
9612
+ @search-tag-max-width: var(~'@{search-prefix}-tag-sizing-max-width');
9580
9613
 
9581
9614
  // color
9582
9615
  @search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
@@ -13688,15 +13721,15 @@ template {
13688
13721
  }
13689
13722
 
13690
13723
  &-size-small {
13691
- .tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal);
13724
+ .tag-size(@tag-small-font-size, @tag-small-height, @tag-small-padding-horizontal, @tag-max-width, @tag-min-width);
13692
13725
  }
13693
13726
 
13694
13727
  &-size-middle {
13695
- .tag-size(@tag-middle-font-size, @tag-middle-height, @tag-middle-padding-horizontal);
13728
+ .tag-size(@tag-middle-font-size, @tag-middle-height, @tag-middle-padding-horizontal, @tag-max-width, @tag-min-width);
13696
13729
  }
13697
13730
 
13698
13731
  &-size-large {
13699
- .tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal);
13732
+ .tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal, @tag-max-width, @tag-min-width);
13700
13733
  }
13701
13734
 
13702
13735
  transition: all @tag-g-motion-duration;
@@ -13809,7 +13842,7 @@ template {
13809
13842
 
13810
13843
 
13811
13844
  // code component mixin here
13812
- .tag-size(@size, @height, @padding) {
13845
+ .tag-size(@size, @height, @padding, @max-width, @min-width) {
13813
13846
  font-size: @size;
13814
13847
  height: @height;
13815
13848
  box-sizing: border-box;
@@ -13818,6 +13851,8 @@ template {
13818
13851
  vertical-align: middle;
13819
13852
  padding: 0 @padding;
13820
13853
  border-radius: calc(@height / 2);
13854
+ max-width: @max-width;
13855
+ min-width: @min-width;
13821
13856
  }
13822
13857
  .tag-status(@color) {
13823
13858
  border: 1px solid @color;
@@ -13876,6 +13911,8 @@ template {
13876
13911
  @tag-small-height: var(~'@{tag-custom-prefix}-sizing-height-small', 20px);
13877
13912
  @tag-middle-height: var(~'@{tag-custom-prefix}-sizing-height-middle', 20px);
13878
13913
  @tag-large-height: var(~'@{tag-custom-prefix}-sizing-height-large', 24px);
13914
+ @tag-max-width: var(~'@{tag-custom-prefix}-sizing-max-width');
13915
+ @tag-min-width: var(~'@{tag-custom-prefix}-sizing-min-width');
13879
13916
 
13880
13917
  // spacing
13881
13918
  @tag-small-padding-horizontal: var(~'@{tag-custom-prefix}-spacing-padding-horizontal-small', 6px);
@@ -13897,6 +13934,7 @@ template {
13897
13934
  overflow: hidden;
13898
13935
  list-style: none;
13899
13936
 
13937
+
13900
13938
  .@{timeline-item-prefix-cls} {
13901
13939
  .reset-component;
13902
13940
  position: relative;
@@ -13968,6 +14006,8 @@ template {
13968
14006
  margin: 0 0 0 calc(2 * (@timeline-dot-size - @timeline-width) + @timeline-gap);
13969
14007
  word-break: break-word;
13970
14008
  color: @timeline-content-color-text;
14009
+ max-width: @timeline-content-max-width;
14010
+ min-width: @timeline-content-min-width;
13971
14011
 
13972
14012
  > * {
13973
14013
  margin: 0;
@@ -14125,7 +14165,7 @@ template {
14125
14165
  &.pending .@{timeline-item-prefix-cls}.last .@{timeline-item-prefix-cls}-tail {
14126
14166
  display: block;
14127
14167
  height: calc(100% - 14px);
14128
- border-left: 2px dotted @timeline-line-color;
14168
+ border-left: 1px dotted @timeline-line-color;
14129
14169
  }
14130
14170
 
14131
14171
  &.reverse .@{timeline-item-prefix-cls}.last .@{timeline-item-prefix-cls}-tail {
@@ -14134,10 +14174,9 @@ template {
14134
14174
 
14135
14175
  &.reverse .@{timeline-item-prefix-cls}.pending {
14136
14176
  .@{timeline-item-prefix-cls}-tail {
14137
- top: 15px;
14138
14177
  display: block;
14139
14178
  height: calc(100% - 15px);
14140
- border-left: 2px dotted @timeline-line-color;
14179
+ border-left: 1px dotted @timeline-line-color;
14141
14180
  }
14142
14181
  .@{timeline-item-prefix-cls}-content {
14143
14182
  min-height: 48px;
@@ -14168,6 +14207,8 @@ template {
14168
14207
 
14169
14208
  // sizing
14170
14209
  @timeline-width: var(~'@{timeline-prefix}-sizing-width',1px);
14210
+ @timeline-content-max-width: var(~'@{timeline-prefix}-content-sizing-max-width');
14211
+ @timeline-content-min-width: var(~'@{timeline-prefix}-content-sizing-min-width');
14171
14212
 
14172
14213
  // spacing
14173
14214
  @timeline-item-padding-bottom: var(~'@{timeline-prefix}-spacing-padding-bottom',24px);
@@ -14257,12 +14298,12 @@ template {
14257
14298
  &-list {
14258
14299
  display: flex;
14259
14300
  flex-direction: column;
14260
- width: 250px;
14301
+ width: @transfer-list-width;
14261
14302
  min-height: 300px;
14262
14303
  border: 1px solid @transfer-border-color;
14263
14304
 
14264
14305
  &-with-pagination {
14265
- width: 250px;
14306
+ width: @transfer-list-width;
14266
14307
  height: auto;
14267
14308
  }
14268
14309
 
@@ -14442,6 +14483,7 @@ template {
14442
14483
  @transfer-header-height: var(~'@{transfer-custom-prefix}-header-sizing-height', 36px);
14443
14484
  @transfer-search-height: var(~'@{transfer-custom-prefix}-search-sizing-height', 32px);
14444
14485
  @transfer-pagination-height: var(~'@{transfer-custom-prefix}-pagination-sizing-height', 36px);
14486
+ @transfer-list-width: var(~'@{transfer-custom-prefix}-list-sizing-width', 250px);
14445
14487
 
14446
14488
  // spacing
14447
14489
  @transfer-padding-base: var(~'@{transfer-custom-prefix}-spacing-horizontal', 14px);
@@ -14467,6 +14509,8 @@ template {
14467
14509
  color: @tree-color-text;
14468
14510
  margin-left: @tree-margin-left;
14469
14511
  padding: @tree-padding-vertical 0;
14512
+ max-width: @tree-root-max-width;
14513
+ min-width: @tree-root-min-width;
14470
14514
  &-root {
14471
14515
  min-width: 100%;
14472
14516
  flex-shrink: 0;
@@ -14681,6 +14725,8 @@ template {
14681
14725
  @tree-expand-icon-loading-width: var(~'@{tree-prefix}-expand-icon-loading-sizing-width', 16px);
14682
14726
  @tree-node-icon-height: var(~'@{tree-prefix}-node-icon-sizing-height', 16px);
14683
14727
  @tree-node-icon-width: var(~'@{tree-prefix}-node-icon-sizing-width', 16px);
14728
+ @tree-root-max-width: var(~'@{tree-prefix}-root-sizing-max-width');
14729
+ @tree-root-min-width: var(~'@{tree-prefix}-root-sizing-min-width');
14684
14730
 
14685
14731
  // spacing
14686
14732
  @tree-margin-left: var(~'@{tree-prefix}-spacing-margin-left', 0px);
package/dist/kdesign.css CHANGED
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @kdcloudjs/kdesign v1.7.20
3
+ * @kdcloudjs/kdesign v1.7.22
4
4
  *
5
5
  * Copyright 2020-present, Kingdee, Inc.
6
6
  * All rights reserved.
@@ -3600,6 +3600,7 @@ template {
3600
3600
  line-height: calc(var(--kd-c-button-sizing-height-small, 24px) - (var(--kd-c-button-spacing-padding-vertical-small, 3px) * 2) - (var(--kd-c-button-sizing-border, 1px) * 2));
3601
3601
  font-size: var(--kd-c-button-font-size-small, var(--kd-g-font-size-small, 12px));
3602
3602
  padding: var(--kd-c-button-spacing-padding-vertical-small, 3px) var(--kd-c-button-spacing-padding-horizontal-small, 8px);
3603
+ max-width: var(--kd-c-button-sizing-max-width-small);
3603
3604
  }
3604
3605
  .kd-btn-size-small.kd-btn-icon-only {
3605
3606
  font-size: var(--kd-c-button-icon-font-size-small, 14px);
@@ -3623,6 +3624,7 @@ template {
3623
3624
  line-height: calc(var(--kd-c-button-sizing-height-middle, 28px) - (var(--kd-c-button-spacing-padding-vertical-middle, 5px) * 2) - (var(--kd-c-button-sizing-border, 1px) * 2));
3624
3625
  font-size: var(--kd-c-button-font-size-middle, var(--kd-g-font-size-small, 12px));
3625
3626
  padding: var(--kd-c-button-spacing-padding-vertical-middle, 5px) var(--kd-c-button-spacing-padding-horizontal-middle, 8px);
3627
+ max-width: var(--kd-c-button-sizing-max-width-middle);
3626
3628
  }
3627
3629
  .kd-btn-size-middle.kd-btn-icon-only {
3628
3630
  font-size: var(--kd-c-button-icon-font-size-middle, 16px);
@@ -3646,6 +3648,7 @@ template {
3646
3648
  line-height: calc(var(--kd-c-button-sizing-height-large, 32px) - (var(--kd-c-button-spacing-padding-vertical-large, 6px) * 2) - (var(--kd-c-button-sizing-border, 1px) * 2));
3647
3649
  font-size: var(--kd-c-button-font-size-large, var(--kd-g-font-size-large, 16px));
3648
3650
  padding: var(--kd-c-button-spacing-padding-vertical-large, 6px) var(--kd-c-button-spacing-padding-horizontal-large, 8px);
3651
+ max-width: var(--kd-c-button-sizing-max-width-large);
3649
3652
  }
3650
3653
  .kd-btn-size-large.kd-btn-icon-only {
3651
3654
  font-size: var(--kd-c-button-icon-font-size-large, 18px);
@@ -4987,6 +4990,7 @@ template {
4987
4990
  overflow: hidden;
4988
4991
  white-space: nowrap;
4989
4992
  text-overflow: ellipsis;
4993
+ max-width: var(--kd-c-checkbox-default-input-label-max-width);
4990
4994
  }
4991
4995
  .kd-checkbox-children .kd-input-underline {
4992
4996
  background-color: transparent;
@@ -5797,6 +5801,9 @@ template {
5797
5801
  .kd-collapse-panel:last-child {
5798
5802
  border-top: none;
5799
5803
  }
5804
+ .kd-collapse-panel:first-child {
5805
+ border-top: var(--kd-c-collapse-border-width, 1px) solid var(--kd-c-collapse-color-border-strong-2, var(--kd-g-color-border-strong-2, #d9d9d9));
5806
+ }
5800
5807
  .kd-collapse-panel {
5801
5808
  display: -webkit-inline-box;
5802
5809
  display: -ms-inline-flexbox;
@@ -8004,6 +8011,7 @@ template {
8004
8011
  white-space: nowrap;
8005
8012
  overflow: hidden;
8006
8013
  text-overflow: ellipsis;
8014
+ display: block;
8007
8015
  }
8008
8016
  .kd-filter .kd-filter-header-search {
8009
8017
  min-width: 200px;
@@ -8099,6 +8107,7 @@ template {
8099
8107
  padding: 11px 0 10px;
8100
8108
  color: var(--kd-g-color-text-third, #999);
8101
8109
  line-height: 18px;
8110
+ width: var(--kd-c-filter-body-condition-label-width);
8102
8111
  }
8103
8112
  .kd-filter .kd-filter-body-condition-options {
8104
8113
  display: -webkit-box;
@@ -8128,6 +8137,10 @@ template {
8128
8137
  border: 1px solid transparent;
8129
8138
  cursor: pointer;
8130
8139
  white-space: nowrap;
8140
+ max-width: var(--kd-c-filter-body-condition-option-max-width);
8141
+ overflow: hidden;
8142
+ display: inline-block;
8143
+ text-overflow: ellipsis;
8131
8144
  }
8132
8145
  .kd-filter .kd-filter-body-condition-option:not(:last-child) {
8133
8146
  margin-right: 24px;
@@ -8367,7 +8380,7 @@ template {
8367
8380
  flex-direction: column;
8368
8381
  }
8369
8382
  .kd-form-field-vertical .kd-form-field-label {
8370
- margin-bottom: 5px;
8383
+ margin-bottom: var(--kd-c-form-field-label-spacing-margin-bottom, 5px);
8371
8384
  }
8372
8385
  .kd-form-field-hidden {
8373
8386
  display: none !important;
@@ -10769,6 +10782,7 @@ textarea {
10769
10782
  /* 单行显示省略号 */
10770
10783
  /** 浮层箭头样式 **/
10771
10784
  .menu-hidden {
10785
+ display: none;
10772
10786
  opacity: 0;
10773
10787
  visibility: hidden;
10774
10788
  -webkit-animation: kdZoomTopLeftOut calc(var(--kd-c-menu-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -10853,7 +10867,8 @@ textarea {
10853
10867
  position: relative;
10854
10868
  width: 100%;
10855
10869
  height: 100%;
10856
- min-width: 138px;
10870
+ min-width: var(--kd-c-menu-sizing-min-width, 138px);
10871
+ max-width: var(--kd-c-menu-sizing-max-width);
10857
10872
  background-color: var(--kd-c-menu-color-background, #343848);
10858
10873
  color: var(--kd-c-menu-sub-color-text, rgba(255, 255, 255, 0.65));
10859
10874
  }
@@ -11196,6 +11211,7 @@ textarea {
11196
11211
  color: var(--kd-c-menu-sub-color-text-hover, var(--kd-g-color-white, #fff));
11197
11212
  }
11198
11213
  .kd-menu-popper.hidden {
11214
+ display: none;
11199
11215
  opacity: 0;
11200
11216
  visibility: hidden;
11201
11217
  -webkit-animation: kdZoomTopLeftOut calc(var(--kd-c-menu-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -11237,6 +11253,7 @@ textarea {
11237
11253
  transition-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
11238
11254
  }
11239
11255
  .kd-menu-popper .kd-menu-submenu-sub-hide {
11256
+ display: none;
11240
11257
  opacity: 0;
11241
11258
  visibility: hidden;
11242
11259
  -webkit-animation: kdZoomTopLeftOut calc(var(--kd-c-menu-motion-duration, var(--kd-g-duration, 0.3s)) - 0.1s) cubic-bezier(0, 0.4, 0.4, 1) forwards;
@@ -13468,6 +13485,8 @@ textarea {
13468
13485
  vertical-align: middle;
13469
13486
  color: var(--kd-c-radio-color-font, var(--kd-g-color-text-primary, #212121));
13470
13487
  font-size: var(--kd-c-radio-font-size, var(--kd-g-font-size-small, 12px));
13488
+ max-width: var(--kd-c-radio-default-label-max-width);
13489
+ overflow: hidden;
13471
13490
  }
13472
13491
  .kd-radio::before {
13473
13492
  position: absolute;
@@ -13599,6 +13618,7 @@ textarea {
13599
13618
  border: var(--kd-c-radio-radius-border-width, 1px) solid var(--kd-c-radio-color-border, var(--kd-g-color-border-strong, #d9d9d9));
13600
13619
  -webkit-transition: all 0.3s;
13601
13620
  transition: all 0.3s;
13621
+ max-width: var(--kd-c-radio-square-label-max-width);
13602
13622
  }
13603
13623
  .kd-radio-square::after {
13604
13624
  position: absolute;
@@ -13691,6 +13711,9 @@ textarea {
13691
13711
  list-style: none;
13692
13712
  -webkit-font-feature-settings: 'tnum';
13693
13713
  font-feature-settings: 'tnum';
13714
+ white-space: nowrap;
13715
+ overflow: hidden;
13716
+ text-overflow: ellipsis;
13694
13717
  position: relative;
13695
13718
  display: inline-block;
13696
13719
  height: var(--kd-c-radio-square-sizing-height, 32px);
@@ -13708,6 +13731,7 @@ textarea {
13708
13731
  border-left: none;
13709
13732
  -webkit-transition: all 0.3s;
13710
13733
  transition: all 0.3s;
13734
+ max-width: var(--kd-c-radio-button-label-max-width);
13711
13735
  }
13712
13736
  .kd-radio-button:first-child {
13713
13737
  border-radius: 2px 0 0 2px;
@@ -14340,6 +14364,7 @@ textarea {
14340
14364
  overflow: hidden;
14341
14365
  white-space: nowrap;
14342
14366
  text-overflow: ellipsis;
14367
+ max-width: var(--kd-c-search-tag-sizing-max-width);
14343
14368
  }
14344
14369
  .kd-quick-search-selection-overflow-item-del {
14345
14370
  height: 14px;
@@ -18062,6 +18087,8 @@ textarea {
18062
18087
  vertical-align: middle;
18063
18088
  padding: 0 var(--kd-c-tag-spacing-padding-horizontal-small, 6px);
18064
18089
  border-radius: calc(var(--kd-c-tag-sizing-height-small, 20px) / 2);
18090
+ max-width: var(--kd-c-tag-sizing-max-width);
18091
+ min-width: var(--kd-c-tag-sizing-min-width);
18065
18092
  }
18066
18093
  .kd-tag-size-middle {
18067
18094
  font-size: var(--kd-c-tag-font-size-middle, var(--kd-g-font-size-small, 12px));
@@ -18077,6 +18104,8 @@ textarea {
18077
18104
  vertical-align: middle;
18078
18105
  padding: 0 var(--kd-c-tag-spacing-padding-horizontal-middle, 7px);
18079
18106
  border-radius: calc(var(--kd-c-tag-sizing-height-middle, 20px) / 2);
18107
+ max-width: var(--kd-c-tag-sizing-max-width);
18108
+ min-width: var(--kd-c-tag-sizing-min-width);
18080
18109
  }
18081
18110
  .kd-tag-size-large {
18082
18111
  font-size: var(--kd-c-tag-font-size-large, var(--kd-g-font-size-middle, 14px));
@@ -18092,6 +18121,8 @@ textarea {
18092
18121
  vertical-align: middle;
18093
18122
  padding: 0 var(--kd-c-tag-spacing-padding-horizontal-large, 8px);
18094
18123
  border-radius: calc(var(--kd-c-tag-sizing-height-large, 24px) / 2);
18124
+ max-width: var(--kd-c-tag-sizing-max-width);
18125
+ min-width: var(--kd-c-tag-sizing-min-width);
18095
18126
  }
18096
18127
  .kd-tag-shape-status {
18097
18128
  border: 1px solid var(--kd-c-tag-color-process, var(--kd-g-color-ongoing, #276ff5));
@@ -18641,6 +18672,8 @@ textarea {
18641
18672
  margin: 0 0 0 calc(2 * (var(--kd-c-timeline-dot-sizing, 9px) - var(--kd-c-timeline-sizing-width, 1px)) + 8px);
18642
18673
  word-break: break-word;
18643
18674
  color: var(--kd-c-timeline-content-color-text, var(--kd-g-color-text-primary, #212121));
18675
+ max-width: var(--kd-c-timeline-content-sizing-max-width);
18676
+ min-width: var(--kd-c-timeline-content-sizing-min-width);
18644
18677
  }
18645
18678
  .kd-timeline .kd-timeline-item-content > * {
18646
18679
  margin: 0;
@@ -18749,16 +18782,15 @@ textarea {
18749
18782
  .kd-timeline.pending .kd-timeline-item.last .kd-timeline-item-tail {
18750
18783
  display: block;
18751
18784
  height: calc(100% - 14px);
18752
- border-left: 2px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
18785
+ border-left: 1px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
18753
18786
  }
18754
18787
  .kd-timeline.reverse .kd-timeline-item.last .kd-timeline-item-tail {
18755
18788
  display: none;
18756
18789
  }
18757
18790
  .kd-timeline.reverse .kd-timeline-item.pending .kd-timeline-item-tail {
18758
- top: 15px;
18759
18791
  display: block;
18760
18792
  height: calc(100% - 15px);
18761
- border-left: 2px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
18793
+ border-left: 1px dotted var(--kd-c-timeline-line-color, var(--kd-g-color-border-weak, #e5e5e5));
18762
18794
  }
18763
18795
  .kd-timeline.reverse .kd-timeline-item.pending .kd-timeline-item-content {
18764
18796
  min-height: 48px;
@@ -19096,12 +19128,12 @@ textarea {
19096
19128
  -webkit-box-direction: normal;
19097
19129
  -ms-flex-direction: column;
19098
19130
  flex-direction: column;
19099
- width: 250px;
19131
+ width: var(--kd-c-transfer-list-sizing-width, 250px);
19100
19132
  min-height: 300px;
19101
19133
  border: 1px solid var(--kd-c-transfer-color-border, var(--kd-g-color-border-strong, #d9d9d9));
19102
19134
  }
19103
19135
  .kd-transfer-list-with-pagination {
19104
- width: 250px;
19136
+ width: var(--kd-c-transfer-list-sizing-width, 250px);
19105
19137
  height: auto;
19106
19138
  }
19107
19139
  .kd-transfer-list-header {
@@ -19957,6 +19989,8 @@ textarea {
19957
19989
  color: var(--kd-c-tree-color-text, var(--kd-g-color-text-primary, #212121));
19958
19990
  margin-left: var(--kd-c-tree-spacing-margin-left, 0px);
19959
19991
  padding: var(--kd-c-tree-spacing-padding-vertical, 3px) 0;
19992
+ max-width: var(--kd-c-tree-root-sizing-max-width);
19993
+ min-width: var(--kd-c-tree-root-sizing-min-width);
19960
19994
  }
19961
19995
  .kd-tree-root {
19962
19996
  min-width: 100%;