@kdcloudjs/kdesign 1.1.2 → 1.2.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.
Files changed (160) hide show
  1. package/CHANGELOG.md +61 -0
  2. package/dist/kdesign-complete.less +1125 -926
  3. package/dist/kdesign.css +485 -432
  4. package/dist/kdesign.css.map +1 -1
  5. package/dist/kdesign.js +516 -251
  6. package/dist/kdesign.js.map +1 -1
  7. package/dist/kdesign.min.css +4 -4
  8. package/dist/kdesign.min.js +8 -8
  9. package/dist/kdesign.min.js.map +1 -1
  10. package/es/_utils/usePopper.js +37 -16
  11. package/es/anchor/anchor.js +0 -6
  12. package/es/anchor/style/index.css +5 -2
  13. package/es/anchor/style/index.less +6 -2
  14. package/es/anchor/style/token.less +2 -1
  15. package/es/button/button.d.ts +1 -1
  16. package/es/button/button.js +2 -2
  17. package/es/button/group.d.ts +21 -0
  18. package/es/button/group.js +130 -0
  19. package/es/button/index.d.ts +5 -1
  20. package/es/button/index.js +4 -1
  21. package/es/button/style/index.css +117 -21
  22. package/es/button/style/index.less +332 -192
  23. package/es/button/style/token.less +41 -25
  24. package/es/carousel/carousel.js +4 -0
  25. package/es/checkbox/checkbox.js +3 -4
  26. package/es/checkbox/style/index.css +36 -33
  27. package/es/checkbox/style/index.less +25 -18
  28. package/es/checkbox/style/token.less +34 -35
  29. package/es/collapse/panel.d.ts +1 -0
  30. package/es/collapse/panel.js +17 -5
  31. package/es/collapse/style/index.css +32 -6
  32. package/es/collapse/style/index.less +24 -1
  33. package/es/collapse/style/token.less +12 -10
  34. package/es/config-provider/compDefaultProps.d.ts +4 -0
  35. package/es/config-provider/compDefaultProps.js +4 -0
  36. package/es/drawer/drawer.d.ts +1 -0
  37. package/es/drawer/drawer.js +56 -21
  38. package/es/empty/defaultEmptyImg.js +5 -3
  39. package/es/empty/illustrationEmptyImg.js +6 -4
  40. package/es/icon/interface.js +1 -1
  41. package/es/image/preview.js +1 -1
  42. package/es/image/style/index.css +8 -8
  43. package/es/image/style/index.less +5 -5
  44. package/es/image/style/token.less +12 -25
  45. package/es/input/style/index.css +53 -50
  46. package/es/input/style/index.less +5 -4
  47. package/es/input/style/mixin.less +1 -0
  48. package/es/input/style/token.less +23 -20
  49. package/es/layout/style/index.css +1 -1
  50. package/es/layout/style/index.less +1 -1
  51. package/es/layout/style/token.less +5 -5
  52. package/es/menu/menu.js +1 -1
  53. package/es/menu/style/index.css +37 -31
  54. package/es/menu/style/index.less +14 -0
  55. package/es/menu/style/mixin.less +1 -1
  56. package/es/menu/style/token.less +13 -16
  57. package/es/pagination/pagination.js +4 -4
  58. package/es/pagination/style/index.css +70 -55
  59. package/es/pagination/style/index.less +61 -43
  60. package/es/pagination/style/token.less +4 -4
  61. package/es/radio/radio.js +23 -8
  62. package/es/radio/style/index.css +46 -18
  63. package/es/radio/style/index.less +27 -1
  64. package/es/radio/style/token.less +4 -4
  65. package/es/rate/style/index.css +9 -9
  66. package/es/rate/style/token.less +6 -6
  67. package/es/select/option.js +1 -1
  68. package/es/select/style/index.css +14 -5
  69. package/es/select/style/index.less +374 -368
  70. package/es/select/style/token.less +2 -2
  71. package/es/stepper/style/index.css +1 -1
  72. package/es/stepper/style/token.less +1 -1
  73. package/es/steps/style/index.css +40 -32
  74. package/es/steps/style/index.less +23 -33
  75. package/es/steps/style/token.less +6 -9
  76. package/es/style/icon/kdicon.css +225 -0
  77. package/es/style/icon/kdicon.woff +0 -0
  78. package/es/switch/style/index.css +11 -11
  79. package/es/switch/style/index.less +2 -2
  80. package/es/switch/style/token.less +7 -10
  81. package/es/tag/style/index.css +2 -147
  82. package/es/tag/style/index.less +4 -24
  83. package/es/tag/style/mixin.less +0 -13
  84. package/es/tag/style/token.less +1 -1
  85. package/lib/_utils/usePopper.js +38 -16
  86. package/lib/anchor/anchor.js +0 -6
  87. package/lib/anchor/style/index.css +5 -2
  88. package/lib/anchor/style/index.less +6 -2
  89. package/lib/anchor/style/token.less +2 -1
  90. package/lib/button/button.d.ts +1 -1
  91. package/lib/button/button.js +2 -2
  92. package/lib/button/group.d.ts +21 -0
  93. package/lib/button/group.js +166 -0
  94. package/lib/button/index.d.ts +5 -1
  95. package/lib/button/index.js +5 -1
  96. package/lib/button/style/index.css +117 -21
  97. package/lib/button/style/index.less +332 -192
  98. package/lib/button/style/token.less +41 -25
  99. package/lib/carousel/carousel.js +4 -0
  100. package/lib/checkbox/checkbox.js +3 -4
  101. package/lib/checkbox/style/index.css +36 -33
  102. package/lib/checkbox/style/index.less +25 -18
  103. package/lib/checkbox/style/token.less +34 -35
  104. package/lib/collapse/panel.d.ts +1 -0
  105. package/lib/collapse/panel.js +17 -5
  106. package/lib/collapse/style/index.css +32 -6
  107. package/lib/collapse/style/index.less +24 -1
  108. package/lib/collapse/style/token.less +12 -10
  109. package/lib/config-provider/compDefaultProps.d.ts +4 -0
  110. package/lib/config-provider/compDefaultProps.js +4 -0
  111. package/lib/drawer/drawer.d.ts +1 -0
  112. package/lib/drawer/drawer.js +61 -27
  113. package/lib/empty/defaultEmptyImg.js +6 -3
  114. package/lib/empty/illustrationEmptyImg.js +7 -4
  115. package/lib/icon/interface.js +1 -1
  116. package/lib/image/preview.js +1 -1
  117. package/lib/image/style/index.css +8 -8
  118. package/lib/image/style/index.less +5 -5
  119. package/lib/image/style/token.less +12 -25
  120. package/lib/input/style/index.css +53 -50
  121. package/lib/input/style/index.less +5 -4
  122. package/lib/input/style/mixin.less +1 -0
  123. package/lib/input/style/token.less +23 -20
  124. package/lib/layout/style/index.css +1 -1
  125. package/lib/layout/style/index.less +1 -1
  126. package/lib/layout/style/token.less +5 -5
  127. package/lib/menu/menu.js +1 -1
  128. package/lib/menu/style/index.css +37 -31
  129. package/lib/menu/style/index.less +14 -0
  130. package/lib/menu/style/mixin.less +1 -1
  131. package/lib/menu/style/token.less +13 -16
  132. package/lib/pagination/pagination.js +4 -3
  133. package/lib/pagination/style/index.css +70 -55
  134. package/lib/pagination/style/index.less +61 -43
  135. package/lib/pagination/style/token.less +4 -4
  136. package/lib/radio/radio.js +23 -8
  137. package/lib/radio/style/index.css +46 -18
  138. package/lib/radio/style/index.less +27 -1
  139. package/lib/radio/style/token.less +4 -4
  140. package/lib/rate/style/index.css +9 -9
  141. package/lib/rate/style/token.less +6 -6
  142. package/lib/select/option.js +1 -1
  143. package/lib/select/style/index.css +14 -5
  144. package/lib/select/style/index.less +374 -368
  145. package/lib/select/style/token.less +2 -2
  146. package/lib/stepper/style/index.css +1 -1
  147. package/lib/stepper/style/token.less +1 -1
  148. package/lib/steps/style/index.css +40 -32
  149. package/lib/steps/style/index.less +23 -33
  150. package/lib/steps/style/token.less +6 -9
  151. package/lib/style/icon/kdicon.css +225 -0
  152. package/lib/style/icon/kdicon.woff +0 -0
  153. package/lib/switch/style/index.css +11 -11
  154. package/lib/switch/style/index.less +2 -2
  155. package/lib/switch/style/token.less +7 -10
  156. package/lib/tag/style/index.css +2 -147
  157. package/lib/tag/style/index.less +4 -24
  158. package/lib/tag/style/mixin.less +0 -13
  159. package/lib/tag/style/token.less +1 -1
  160. package/package.json +1 -1
@@ -235,7 +235,7 @@
235
235
  overflow: hidden;
236
236
  white-space: nowrap;
237
237
  text-overflow: ellipsis;
238
- padding: 0 6px;
238
+ padding: 0 4px;
239
239
  line-height: 1.5;
240
240
  vertical-align: middle;
241
241
  }
@@ -253,7 +253,7 @@
253
253
 
254
254
  &-advanced-arrows {
255
255
  color: @anchor-advanced-arrows-color;
256
- font-size: @anchor-icon-font-size;
256
+ font-size: @anchor-advanced-arrows-font-size;
257
257
  cursor: pointer;
258
258
  &:hover {
259
259
  color: @anchor-color-theme;
@@ -317,6 +317,10 @@
317
317
  &-link {
318
318
  padding: @anchor-link-padding;
319
319
 
320
+ &>.@{anchor-prefix-cls}-link {
321
+ padding: @anchor-link-secondary-padding;
322
+ }
323
+
320
324
  &-title {
321
325
  text-decoration: none;
322
326
  color: @anchor-primary-text-color;
@@ -385,6 +389,7 @@
385
389
  @anchor-link-top: var(~'@{anchor-prefix}-spacing-vertical', 7px);
386
390
  @anchor-link-left: var(~'@{anchor-prefix}-spacing-horizontal', 7px);
387
391
  @anchor-link-padding: var(~'@{anchor-prefix}-spacing-padding', 7px 8px);
392
+ @anchor-link-secondary-padding: var(~'@{anchor-prefix}-secondary-spacing-padding', 12px 8px);
388
393
  @anchor-advanced-padding-top: var(~'@{anchor-prefix}-advanced-spacing-padding-top', 8px);
389
394
  @anchor-advanced-padding-bottom: var(~'@{anchor-prefix}-advanced-spacing-padding-bottom', 7px);
390
395
  @anchor-ink-line-width: var(~'@{anchor-prefix}-ink-line-spacing-width', 1px);
@@ -394,7 +399,7 @@
394
399
  @anchor-advanced-lock-size: var(~'@{anchor-prefix}-advanced-lock-font-size', 16px);
395
400
  @anchor-font-size: var(~'@{anchor-prefix}-font-size', @font-size-small);
396
401
  @anchor-icon-font-size: var(~'@{anchor-prefix}-icon-font-size', 16px);
397
-
402
+ @anchor-advanced-arrows-font-size: var(~'@{anchor-prefix}-advanced-arrows-font-size', 24px);
398
403
  // motion
399
404
  @anchor-transition-duration: var(~'@{anchor-prefix}-duration-duration', @duration-promptly);
400
405
 
@@ -882,199 +887,339 @@
882
887
 
883
888
 
884
889
  @btn-prefix-cls: ~'@{kd-prefix}-btn';
890
+
885
891
  .@{btn-prefix-cls} {
886
- .btn;
887
-
888
- // 按钮wave动效
889
- transition: color @transition-duration, background-color @transition-duration, border-color @transition-duration;
890
- &:not(&-text)::after{
891
- position: absolute;
892
- top: 0;
893
- right: 0;
894
- bottom: 0;
895
- left: 0;
896
- border-radius: inherit;
897
- box-shadow: 0 0 0 0 @color-theme;
898
- opacity: 0.2;
899
- content: '';
900
- pointer-events: none;
901
- clear: both;
902
- }
903
- &:not(&-text)[click-animating-wave='true']::after {
904
- animation: fadeEffect @btn-duration-fade @ease-out forwards,
905
- waveEffect @btn-duration-wave @ease-out forwards;
906
- }
892
+ .btn;
907
893
 
908
- // 次要按钮
909
- &-second {
910
- .btn-type(@btn-second-border-color, @btn-second-background-color, @btn-second-font-color);
911
- &:hover {
912
- &:not(.@{btn-prefix-cls}-loading) {
913
- background-color: @btn-second-background-color-hover;
914
- border-color: @btn-second-border-color-hover;
915
- color: @btn-second-font-color-hover;
916
- }
917
- }
918
- &:active {
919
- &:not(.@{btn-prefix-cls}-loading) {
920
- background-color: @btn-second-background-color-active;
921
- border-color: @btn-second-border-color-active;
922
- color: @btn-second-font-color-active;
923
- }
924
- }
925
- &:disabled {
926
- border-color: @btn-second-border-color-disabled !important;
927
- background-color: @btn-second-background-color-disabled !important;
928
- color: @btn-second-font-color-disabled !important;
929
- }
930
- }
931
- // 主要按钮
932
- &-primary {
933
- .btn-type(@btn-primary-border-color, @btn-primary-background-color, @btn-primary-font-color);
934
- &:hover:not(.@{btn-prefix-cls}-loading) {
935
- background-color: @btn-primary-background-color-hover;
936
- border-color: @btn-primary-border-color-hover;
937
- }
938
- &:active:not(.@{btn-prefix-cls}-loading) {
939
- border-color: @btn-primary-border-color-active;
940
- background-color: @btn-primary-background-color-active;
941
- }
942
- &:disabled {
943
- background-color: @btn-primary-background-color-disabled !important;
944
- border-color: @btn-primary-border-color-disabled !important;
945
- }
946
- }
947
- // 幽灵按钮
948
- &-ghost {
949
- .btn-type(@btn-ghost-border-color, @btn-ghost-background-color, @btn-ghost-font-color);
950
- &:hover:not(.@{btn-prefix-cls}-loading) {
951
- border-color: @btn-ghost-border-color-hover;
952
- color: @btn-ghost-font-color-hover;
953
- }
954
- &:active:not(.@{btn-prefix-cls}-loading) {
955
- border-color: @btn-ghost-border-color-hover;
956
- color: @btn-ghost-font-color-active;
957
- }
958
- &:disabled {
959
- background-color: @btn-ghost-background-color-disabled !important;
960
- border-color: @btn-ghost-border-color-disabled !important;
961
- color: @btn-ghost-border-color-disabled !important;
962
- }
963
- }
964
- &-iconWrapper-left {
965
- display: flex;
966
- align-items: center;
967
- justify-content: center;
968
- float: left;
969
- }
970
- &-iconWrapper-right {
971
- display: flex;
972
- align-items: center;
973
- justify-content: center;
974
- float: right;
975
- }
976
- &-loadingIcon {
977
- color: @btn-g-text-color-loading;
978
- }
979
- &-primary-loadingIcon {
980
- color: @btn-primary-g-text-color-loading;
981
- }
982
- // 小号尺寸按钮
983
- &-size-small {
984
- .btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width);
985
- }
986
- // 中号尺寸按钮
987
- &-size-middle {
988
- .btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width);
989
- }
990
- // 大号尺寸按钮
991
- &-size-large {
992
- .btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width);
993
- }
894
+ // 按钮wave动效
895
+ transition: color @transition-duration, background-color @transition-duration, border-color @transition-duration;
896
+ &:not(&-text)::after {
897
+ position: absolute;
898
+ top: 0;
899
+ right: 0;
900
+ bottom: 0;
901
+ left: 0;
902
+ border-radius: inherit;
903
+ box-shadow: 0 0 0 0 @color-theme;
904
+ opacity: 0.2;
905
+ content: '';
906
+ pointer-events: none;
907
+ clear: both;
908
+ }
909
+ &:not(&-text)[click-animating-wave='true']::after {
910
+ animation: fadeEffect @btn-duration-fade @ease-out forwards, waveEffect @btn-duration-wave @ease-out forwards;
911
+ }
994
912
 
995
- // 圆形按钮
996
- &-shape-circle {
997
- border-radius: 50%;
998
- min-width: auto;
999
- }
913
+ // 次要按钮
914
+ &-second {
915
+ .btn-type(@btn-second-border-color, @btn-second-background-color, @btn-second-font-color);
916
+ &:hover {
917
+ &:not(.@{btn-prefix-cls}-loading) {
918
+ background-color: @btn-second-background-color-hover;
919
+ border-color: @btn-second-border-color-hover;
920
+ color: @btn-second-font-color-hover;
921
+ }
922
+ }
923
+ &:active {
924
+ &:not(.@{btn-prefix-cls}-loading) {
925
+ background-color: @btn-second-background-color-active;
926
+ border-color: @btn-second-border-color-active;
927
+ color: @btn-second-font-color-active;
928
+ }
929
+ }
930
+ &:disabled {
931
+ border-color: @btn-second-border-color-disabled !important;
932
+ background-color: @btn-second-background-color-disabled !important;
933
+ color: @btn-second-font-color-disabled !important;
934
+ }
935
+ }
936
+ // 主要按钮
937
+ &-primary {
938
+ .btn-type(@btn-primary-border-color, @btn-primary-background-color, @btn-primary-font-color);
939
+ &:hover:not(.@{btn-prefix-cls}-loading) {
940
+ background-color: @btn-primary-background-color-hover;
941
+ border-color: @btn-primary-border-color-hover;
942
+ }
943
+ &:active:not(.@{btn-prefix-cls}-loading) {
944
+ border-color: @btn-primary-border-color-active;
945
+ background-color: @btn-primary-background-color-active;
946
+ }
947
+ &:disabled {
948
+ background-color: @btn-primary-background-color-disabled !important;
949
+ border-color: @btn-primary-border-color-disabled !important;
950
+ }
951
+ }
1000
952
 
1001
- // 圆形小号尺寸按钮宽度等同其高度
1002
- &-shape-circle&-size-small {
1003
- .btn-shape-circle-width(@btn-small-height);
1004
- }
1005
- // 圆形中号尺寸按钮宽度等同其高度
1006
- &-shape-circle&-size-middle {
1007
- .btn-shape-circle-width(@btn-middle-height);
1008
- }
1009
- // 圆形大号尺寸按钮宽度等同其高度
1010
- &-shape-circle&-size-large {
1011
- .btn-shape-circle-width(@btn-large-height);
1012
- }
953
+ // 幽灵按钮
954
+ &-ghost {
955
+ .btn-type(@btn-ghost-border-color, @btn-ghost-background-color, @btn-ghost-font-color);
1013
956
 
1014
- // 椭圆形小号尺寸按钮border-radius等同其高度
1015
- &-shape-round&-size-small {
1016
- border-radius: @btn-small-height;
1017
- }
1018
- // 椭圆形中号尺寸按钮border-radius等同其高度
1019
- &-shape-round&-size-middle {
1020
- border-radius: @btn-middle-height;
1021
- }
1022
- // 椭圆形大号尺寸按钮border-radius等同其高度
1023
- &-shape-round&-size-large {
1024
- border-radius: @btn-large-height;
1025
- }
957
+ &:hover:not(.@{btn-prefix-cls}-loading) {
958
+ background-color: @btn-ghost-background-color-hover;
959
+ border-color: @btn-ghost-border-color-hover;
960
+ color: @btn-ghost-font-color-hover;
961
+ }
1026
962
 
1027
- // 文本类型按钮
1028
- &-text {
1029
- height: auto;
1030
- width: auto;
1031
- color: @btn-text-g-text-color;
1032
- padding: 0;
1033
- min-width: auto;
1034
- &:hover {
1035
- color: @btn-text-g-text-color-hover;
1036
- }
1037
- &:active {
1038
- color: @btn-text-g-text-color-active;
1039
- }
1040
- &[disabled] {
1041
- color: @btn-text-g-text-color-disabled !important;
1042
- }
1043
- }
963
+ &:active:not(.@{btn-prefix-cls}-loading) {
964
+ background-color: @btn-ghost-background-color-active;
965
+ border-color: @btn-ghost-border-color-hover;
966
+ color: @btn-ghost-font-color-active;
967
+ }
1044
968
 
1045
- // 按钮不带边框
1046
- &-no-border {
1047
- border: none;
1048
- }
969
+ &:disabled {
970
+ background-color: @btn-ghost-background-color-disabled !important;
971
+ border-color: @btn-ghost-border-color-disabled !important;
972
+ color: @btn-ghost-font-color-disabled !important;
973
+ }
974
+ }
1049
975
 
1050
- // 不可用按钮部分样式
1051
- &:disabled, &[disabled] {
1052
- cursor: not-allowed;
1053
- }
1054
- // 按钮开启幽灵化
1055
- &-background-ghost {
1056
- &, &:hover, &:active {
1057
- background-color: transparent;
1058
- }
1059
- &.@{btn-prefix-cls}-primary {
1060
- color: @btn-background-ghost-g-text-color;
1061
- &:hover {
1062
- color: @btn-background-ghost-g-text-color-hover;
1063
- }
1064
- }
1065
- }
1066
- // 加载中按钮
1067
- &-loading {
1068
- cursor: default;
1069
- }
1070
- // 按钮开启块化撑满父元素
1071
- &-block {
1072
- width: 100%;
1073
- }
1074
- // 图标与文本之间的间隔
1075
- .btn-space {
1076
- margin-left: 5px;
1077
- }
976
+ &-iconWrapper-left {
977
+ display: flex;
978
+ align-items: center;
979
+ justify-content: center;
980
+ float: left;
981
+ }
982
+ &-iconWrapper-right {
983
+ display: flex;
984
+ align-items: center;
985
+ justify-content: center;
986
+ float: right;
987
+ }
988
+
989
+ &-loadingIcon {
990
+ color: @btn-g-text-color-loading;
991
+ }
992
+
993
+ &-primary-loadingIcon {
994
+ color: @btn-primary-g-text-color-loading;
995
+ }
996
+
997
+ // 小号尺寸按钮
998
+ &-size-small {
999
+ .btn-size(@btn-small-height, @btn-small-font-size, @btn-small-padding-vertical, @btn-small-padding-horizontal, @btn-small-min-width);
1000
+ &.@{btn-prefix-cls}-icon-only {
1001
+ font-size: @btn-icon-small-font-size;
1002
+ padding: 0 @btn-icon-padding-horizontal;
1003
+ }
1004
+
1005
+ .@{btn-prefix-cls}-group-basic-icon {
1006
+ font-size: @btn-icon-small-font-size;
1007
+ }
1008
+ }
1009
+
1010
+ // 中号尺寸按钮
1011
+ &-size-middle {
1012
+ .btn-size(@btn-middle-height, @btn-middle-font-size, @btn-middle-padding-vertical, @btn-middle-padding-horizontal, @btn-middle-min-width);
1013
+ &.@{btn-prefix-cls}-icon-only {
1014
+ font-size: @btn-icon-middle-font-size;
1015
+ padding: 0 @btn-icon-padding-horizontal;
1016
+ }
1017
+
1018
+ .@{btn-prefix-cls}-group-basic-icon {
1019
+ font-size: @btn-icon-middle-font-size;
1020
+ }
1021
+ }
1022
+
1023
+ // 大号尺寸按钮
1024
+ &-size-large {
1025
+ .btn-size(@btn-large-height, @btn-large-font-size, @btn-large-padding-vertical, @btn-large-padding-horizontal, @btn-large-min-width);
1026
+ &.@{btn-prefix-cls}-icon-only {
1027
+ font-size: @btn-icon-large-font-size;
1028
+ padding: 0 @btn-icon-padding-horizontal;
1029
+ }
1030
+
1031
+ .@{btn-prefix-cls}-group-basic-icon {
1032
+ font-size: @btn-icon-large-font-size;
1033
+ }
1034
+ }
1035
+
1036
+ // 圆形按钮
1037
+ &-shape-circle {
1038
+ border-radius: 50%;
1039
+ min-width: auto;
1040
+ }
1041
+
1042
+ // 圆形小号尺寸按钮宽度等同其高度
1043
+ &-shape-circle&-size-small {
1044
+ .btn-shape-circle-width(@btn-small-height);
1045
+ }
1046
+ // 圆形中号尺寸按钮宽度等同其高度
1047
+ &-shape-circle&-size-middle {
1048
+ .btn-shape-circle-width(@btn-middle-height);
1049
+ }
1050
+ // 圆形大号尺寸按钮宽度等同其高度
1051
+ &-shape-circle&-size-large {
1052
+ .btn-shape-circle-width(@btn-large-height);
1053
+ }
1054
+
1055
+ // 椭圆形小号尺寸按钮border-radius等同其高度
1056
+ &-shape-round&-size-small {
1057
+ border-radius: @btn-small-height;
1058
+ }
1059
+ // 椭圆形中号尺寸按钮border-radius等同其高度
1060
+ &-shape-round&-size-middle {
1061
+ border-radius: @btn-middle-height;
1062
+ }
1063
+ // 椭圆形大号尺寸按钮border-radius等同其高度
1064
+ &-shape-round&-size-large {
1065
+ border-radius: @btn-large-height;
1066
+ }
1067
+
1068
+ // 直角按钮
1069
+ &-shape-none {
1070
+ border-radius: 0;
1071
+ }
1072
+
1073
+ // 文本类型按钮
1074
+ &-text {
1075
+ height: auto;
1076
+ width: auto;
1077
+ color: @btn-text-g-text-color;
1078
+ padding: 0;
1079
+ min-width: auto;
1080
+
1081
+ &:hover {
1082
+ color: @btn-text-g-text-color-hover;
1083
+ }
1084
+
1085
+ &:active {
1086
+ color: @btn-text-g-text-color-active;
1087
+ }
1088
+
1089
+ &[disabled] {
1090
+ color: @btn-text-g-text-color-disabled !important;
1091
+ }
1092
+ }
1093
+
1094
+ // 按钮不带边框
1095
+ &-no-border {
1096
+ border: none;
1097
+ }
1098
+
1099
+ // 不可用按钮部分样式
1100
+ &:disabled,
1101
+ &[disabled] {
1102
+ cursor: not-allowed;
1103
+ }
1104
+ // 按钮开启幽灵化
1105
+ &-background-ghost {
1106
+ &,
1107
+ &:hover,
1108
+ &:active {
1109
+ background-color: transparent;
1110
+ }
1111
+
1112
+ &.@{btn-prefix-cls}-primary {
1113
+ color: @btn-background-ghost-g-text-color;
1114
+
1115
+ &:hover {
1116
+ color: @btn-background-ghost-g-text-color-hover;
1117
+ }
1118
+ }
1119
+ }
1120
+ // 加载中按钮
1121
+ &-loading {
1122
+ cursor: default;
1123
+ }
1124
+ // 按钮开启块化撑满父元素
1125
+ &-block {
1126
+ width: 100%;
1127
+ }
1128
+ // 图标与文本之间的间隔
1129
+ .btn-space {
1130
+ margin-left: 4px;
1131
+ }
1132
+ }
1133
+
1134
+ .@{btn-prefix-cls}-group {
1135
+ display: inline-block;
1136
+
1137
+ &-basic {
1138
+ .@{btn-prefix-cls} {
1139
+ padding-top: 0;
1140
+ padding-bottom: 0;
1141
+ }
1142
+
1143
+ &-icon {
1144
+ margin-left: 4px;
1145
+ }
1146
+ }
1147
+
1148
+ &-trigger {
1149
+ .@{btn-prefix-cls}-primary {
1150
+ background: @btn-group-trigger-color-background;
1151
+ &:hover {
1152
+ background: @btn-group-trigger-color-background-hover;
1153
+ border-color: @btn-group-trigger-color-background-hover;
1154
+ }
1155
+
1156
+ &:active {
1157
+ background: @btn-group-trigger-color-background-active;
1158
+ }
1159
+
1160
+ &:disabled {
1161
+ background: @btn-group-trigger-color-background-disabled !important;
1162
+ }
1163
+ }
1164
+
1165
+ .@{btn-prefix-cls} {
1166
+ margin-left: -1px;
1167
+ }
1168
+ }
1169
+
1170
+ .@{btn-prefix-cls} {
1171
+ &-size-small,
1172
+ &-size-middle,
1173
+ &-size-large {
1174
+ min-width: unset;
1175
+ }
1176
+
1177
+ &:first-child {
1178
+ border-top-right-radius: 0;
1179
+ border-bottom-right-radius: 0;
1180
+ }
1181
+
1182
+ &:last-child {
1183
+ border-top-left-radius: 0;
1184
+ border-bottom-left-radius: 0;
1185
+ }
1186
+ }
1187
+
1188
+ .@{kd-prefix}-dropdown {
1189
+ &-menu {
1190
+ padding: 0;
1191
+ }
1192
+ }
1193
+
1194
+ &-dropdown {
1195
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
1196
+ background: @btn-group-dropdown-color-background;
1197
+ color: #333333;
1198
+ min-width: @btn-group-dropdown-min-width;
1199
+
1200
+ &-item {
1201
+ height: @btn-group-dropdown-item-height;
1202
+ line-height: @btn-group-dropdown-item-height;
1203
+ cursor: pointer;
1204
+ padding: 0 @btn-group-dropdown-item-horizontal;
1205
+ &:hover {
1206
+ background: @btn-group-dropdown-item-color-background-hover;
1207
+ }
1208
+
1209
+ &:not(:last-child) {
1210
+ border-bottom: 1px solid @btn-group-dropdown-item-border-color;
1211
+ }
1212
+ }
1213
+ }
1214
+
1215
+ &.topLeft.hidden,
1216
+ &.bottomLeft.hidden,
1217
+ &.topRight.hidden,
1218
+ &.bottomRight.hidden {
1219
+ opacity: 0;
1220
+ visibility: hidden;
1221
+ transition: all calc(@transition-duration - 0.1s) @ease;
1222
+ }
1078
1223
  }
1079
1224
 
1080
1225
 
@@ -1135,33 +1280,36 @@
1135
1280
  @btn-primary-border-color-disabled: var(~'@{button-custom-prefix}-primary-color-border-disabled', @color-theme-disabled); // 基础disabled边框颜色
1136
1281
 
1137
1282
  @btn-ghost-background-color: var(~'@{button-custom-prefix}-ghost-color-background', transparent); // 幽灵背景颜色
1138
- @btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-border-strong); //幽灵边框颜色
1139
- @btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text', @color-text-secondary); // 幽灵按钮文字颜色
1140
- @btn-ghost-border-color-hover: var(~'@{button-custom-prefix}-ghost-color-border-hover', @color-theme); //幽灵hover边框颜色
1141
- @btn-ghost-font-color-hover: var(~'@{button-custom-prefix}-ghost-color-text-hover', @color-theme); // 幽灵hover按钮文字颜色
1142
- @btn-ghost-border-color-active: var(~'@{button-custom-prefix}-ghost-color-border-active', @color-theme-click); //幽灵active边框颜色
1283
+ @btn-ghost-border-color: var(~'@{button-custom-prefix}-ghost-color-border', @color-theme-6); //幽灵边框颜色
1284
+ @btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text', #5582F3); // 幽灵按钮文字颜色
1285
+ @btn-ghost-background-color-hover: var(~'@{button-custom-prefix}-ghost-color-background-hover', @color-theme-5); //幽灵hover背景颜色
1286
+ @btn-ghost-border-color-hover: var(~'@{button-custom-prefix}-ghost-color-border-hover', transparent); //幽灵hover边框颜色
1287
+ @btn-ghost-font-color-hover: var(~'@{button-custom-prefix}-ghost-color-text-hover',#ffffff); // 幽灵hover按钮文字颜色
1288
+ @btn-ghost-font-color-active: var(~'@{button-custom-prefix}-ghost-color-text-active', #ffffff); // 幽灵active按钮文字颜色
1289
+ @btn-ghost-background-color-active: var(~'@{button-custom-prefix}-ghost-color-background-active', @color-theme-7); //幽灵active背景颜色
1290
+ @btn-ghost-border-color-active: var(~'@{button-custom-prefix}-ghost-color-border-active', transparent); //幽灵active边框颜色
1291
+
1143
1292
  @btn-ghost-background-color-disabled: var(~'@{button-custom-prefix}-ghost-color-background-disabled', @color-background-contain-disabled); // 幽灵disabled背景颜色
1144
- @btn-ghost-font-color-active: var(~'@{button-custom-prefix}-ghost-color-text-active', @color-theme-click); // 幽灵active按钮文字颜色
1145
- @btn-ghost-border-color-disabled: var(~'@{button-custom-prefix}-ghost-color-border-disabled', @color-disabled); //幽灵disabled边框颜色
1146
- @btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', @color-disabled); // 幽灵disabled按钮文字颜色
1293
+ @btn-ghost-border-color-disabled: var(~'@{button-custom-prefix}-ghost-color-border-disabled', #D9D9D9); //幽灵disabled边框颜色
1294
+ @btn-ghost-font-color-disabled: var(~'@{button-custom-prefix}-ghost-color-text-disabled', #B2B2B2); // 幽灵disabled按钮文字颜色
1147
1295
 
1148
- @btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background', @color-background-3); // 次要背景颜色
1149
- @btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border', @color-border-strong-3); // 次要边框颜色
1150
- @btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text', @color-text-secondary-3); // 次要文字颜色
1296
+ @btn-second-background-color: var(~'@{button-custom-prefix}-second-color-background', transparent); // 次要背景颜色
1297
+ @btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border', #D9D9D9); // 次要边框颜色
1298
+ @btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text', #212121); // 次要文字颜色
1151
1299
  @btn-second-background-color-hover: var(~'@{button-custom-prefix}-second-color-background-hover', @color-white); // 次要hover背景颜色
1152
- @btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-border-strong); // 次要hover边框颜色
1153
- @btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-text-secondary); // 次要hover文字颜色
1300
+ @btn-second-border-color-hover: var(~'@{button-custom-prefix}-second-color-border-hover', @color-theme); // 次要hover边框颜色
1301
+ @btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-theme); // 次要hover文字颜色
1154
1302
  @btn-second-background-color-active: var(~'@{button-custom-prefix}-second-color-background-active', @color-white); // 次要active背景颜色
1155
- @btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-border-strong); // 次要active边框颜色
1156
- @btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-text-secondary); // 次要active文字颜色
1157
- @btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-3); // 次要disabled背景颜色
1158
- @btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled', @color-text-secondary-3); // 次要disabled边框颜色
1159
- @btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled', @color-text-secondary-3); // 次要disabled文字颜色
1303
+ @btn-second-border-color-active: var(~'@{button-custom-prefix}-second-color-border-active', @color-theme-click); // 次要active边框颜色
1304
+ @btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-theme-click); // 次要active文字颜色
1305
+ @btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-contain-disabled); // 次要disabled背景颜色
1306
+ @btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled', #D9D9D9); // 次要disabled边框颜色
1307
+ @btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-disabled', #B2B2B2); // 次要disabled文字颜色
1160
1308
 
1161
- @btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme);
1162
- @btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-hover);
1163
- @btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-click);
1164
- @btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-disabled);
1309
+ @btn-text-g-text-color: var(~'@{button-custom-prefix}-text-color-text', @color-theme-6);
1310
+ @btn-text-g-text-color-hover: var(~'@{button-custom-prefix}-text-color-text-hover', @color-theme-5);
1311
+ @btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-7);
1312
+ @btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-theme-4);
1165
1313
 
1166
1314
  @btn-disabled-background-color: var(~'@{button-custom-prefix}-color-background-disabled', @color-background-contain-disabled); // 禁用状态 背景颜色
1167
1315
  @btn-disabled-border-color: var(~'@{button-custom-prefix}-color-border-disabled', @color-border-strong); // 禁用状态 边框颜色
@@ -1176,6 +1324,13 @@
1176
1324
 
1177
1325
  @btn-background-ghost-g-text-color: var(~'@{button-custom-prefix}-background-ghost-color-text', @color-theme);
1178
1326
  @btn-background-ghost-g-text-color-hover: var(~'@{button-custom-prefix}-background-ghost-color-text-hover', @color-white);
1327
+ @btn-group-dropdown-item-border-color: var(~'@{button-custom-prefix}-group-dropdown-item-border-color', #E5E5E5); // 集合按钮 下拉边框颜色
1328
+ @btn-group-dropdown-item-color-background-hover: var(~'@{button-custom-prefix}-group-dropdown-item-color-background-hover', #F5F5F5); // 集合按钮 下拉hover背景颜色
1329
+ @btn-group-dropdown-color-background: var(~'@{button-custom-prefix}-group-dropdown-color-background', #fff); // 集合按钮 下拉菜单背景颜色
1330
+ @btn-group-trigger-color-background: var(~'@{button-custom-prefix}-group-trigger-color-background', #4367c1);
1331
+ @btn-group-trigger-color-background-hover: var(~'@{button-custom-prefix}-group-trigger-color-background-hover', #4c74da);
1332
+ @btn-group-trigger-color-background-active: var(~'@{button-custom-prefix}-group-trigger-color-background-active', #3B5AA9);
1333
+ @btn-group-trigger-color-background-disabled: var(~'@{button-custom-prefix}-group-trigger-color-background-disabled', #95a4c8);
1179
1334
 
1180
1335
  // font
1181
1336
  @btn-g-font-weight: var(~'@{button-custom-prefix}-font-weight', @font-weight-light);
@@ -1183,13 +1338,15 @@
1183
1338
  @btn-middle-font-size: var(~'@{button-custom-prefix}-font-size-middle', @font-size-small); // 中号 文字大小
1184
1339
  @btn-large-font-size: var(~'@{button-custom-prefix}-font-size-large', @font-size-large); // 大号 文字大小
1185
1340
 
1341
+ @btn-icon-small-font-size: var(~'@{button-custom-prefix}-icon-font-size-small', 14px); // 小号 图标大小
1342
+ @btn-icon-middle-font-size: var(~'@{button-custom-prefix}-icon-font-size-middle', 16px); // 中号 图标大小
1343
+ @btn-icon-large-font-size: var(~'@{button-custom-prefix}-icon-font-size-large', 18px); // 大号 图标大小
1344
+
1186
1345
  // motion
1187
1346
  @btn-transition-fn: var(~'@{button-custom-prefix}-motion-timing-function', cubic-bezier(0.075, 0.82, 0.165, 1));
1188
1347
  @btn-duration-fade: var(~'@{button-custom-prefix}-motion-duration-fade', @duration-slowly);
1189
1348
  @btn-duration-wave: var(~'@{button-custom-prefix}-motion-duration-wave', @duration-quickly);
1190
1349
 
1191
-
1192
-
1193
1350
  // radius
1194
1351
  @btn-g-radius-border: var(~'@{button-custom-prefix}-radius-border', @radius-border); //圆角
1195
1352
 
@@ -1201,6 +1358,8 @@
1201
1358
  @btn-middle-min-width: var(~'@{button-custom-prefix}-sizing-min-width-middle', 60px); // 中号 最小宽度
1202
1359
  @btn-large-height: var(~'@{button-custom-prefix}-sizing-height-large', 32px); // 大号 高度
1203
1360
  @btn-large-min-width: var(~'@{button-custom-prefix}-sizing-min-width-large', 80px); // 大号 最小宽度
1361
+ @btn-group-dropdown-item-height: var(~'@{button-custom-prefix}--group-dropdown-item-height', 30px);
1362
+ @btn-group-dropdown-min-width: var(~'@{button-custom-prefix}-group-dropdown-min-width', 80px);
1204
1363
 
1205
1364
  // spacing
1206
1365
  @btn-small-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-small', 3px); // 小号 内间距 纵向
@@ -1209,6 +1368,9 @@
1209
1368
  @btn-middle-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-middle', 8px); // 中号 内间距 纵向 宽度配置
1210
1369
  @btn-large-padding-vertical: var(~'@{button-custom-prefix}-spacing-padding-vertical-large', 6px); // 大号 内间距 纵向
1211
1370
  @btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
1371
+ @btn-group-dropdown-item-horizontal: var(~'@{button-custom-prefix}-group-dropdown-item-horizonta', 12px);
1372
+ @btn-icon-padding-horizontal: var(~'@{button-custom-prefix}-icon-spacing-padding-horizontal', 4px);
1373
+
1212
1374
 
1213
1375
 
1214
1376
 
@@ -1749,19 +1911,11 @@
1749
1911
  box-sizing: border-box;
1750
1912
  font-size: @checkbox-font-size;
1751
1913
  color: @checkbox-font-color;
1752
- height: @checkbox-middle-size-height;
1914
+ line-height: 18px;
1753
1915
  &-no-child {
1754
1916
  height: @checkbox-default-input-height;
1755
1917
  width: @checkbox-default-input-width;
1756
- }
1757
- &-small {
1758
- height: @checkbox-small-size-height;
1759
- }
1760
- &-middle {
1761
- height: @checkbox-middle-size-height;
1762
- }
1763
- &-large {
1764
- height: @checkbox-large-size-height;
1918
+ box-sizing: border-box;
1765
1919
  }
1766
1920
  &-group > *:not(:last-child) {
1767
1921
  margin-right: @checkbox-group-margin-right;
@@ -1789,7 +1943,7 @@
1789
1943
  .@{checkbox-prefix-cls}-square {
1790
1944
  border-radius: 2px;
1791
1945
  border: 1px solid @checkbox-border-color;
1792
- padding: @checkbox-square-padding;
1946
+ padding: @checkbox-square-padding-horizontal @checkbox-square-padding-vertical;
1793
1947
  transition: color @checkbox-transition-duration, border-color @checkbox-transition-duration;
1794
1948
  &:not(&-disabled)::after {
1795
1949
  content: '';
@@ -1844,13 +1998,14 @@
1844
1998
  animation: kdZoomLeaveEffect calc(@checkbox-transition-duration - 0.1s) cubic-bezier(0,.4,.4,1);
1845
1999
  }
1846
2000
  &-triangle-disabled {
1847
- border-bottom-color: @checkbox-disabled-bg-color;
2001
+ border-bottom-color: @checkbox-disabled-text-color;
1848
2002
  }
1849
2003
 
1850
2004
  &-disabled,
1851
2005
  &-disabled:hover {
1852
2006
  border-color: @checkbox-border-color;
1853
- color: @checkbox-font-color;
2007
+ color: @checkbox-disabled-text-color;
2008
+ background-color: @checkbox-disabled-bg-color;
1854
2009
  cursor: not-allowed !important;
1855
2010
  }
1856
2011
  &-checked {
@@ -1878,6 +2033,11 @@
1878
2033
  box-sizing: border-box;
1879
2034
  opacity: 0;
1880
2035
  }
2036
+ &.checked {
2037
+ .@{checkbox-prefix-cls}-children {
2038
+ color: @checkbox-font-color;
2039
+ }
2040
+ }
1881
2041
  }
1882
2042
 
1883
2043
  .@{checkbox-prefix-cls}-default {
@@ -1893,7 +2053,7 @@
1893
2053
  &-disabled,
1894
2054
  &-disabled:hover,
1895
2055
  &-disabled:hover &-wrapper {
1896
- color: @checkbox-font-color;
2056
+ color: @checkbox-disabled-text-color;
1897
2057
  border-color: @checkbox-border-color;
1898
2058
  cursor: not-allowed !important;
1899
2059
  }
@@ -1931,9 +2091,13 @@
1931
2091
  width: 100%;
1932
2092
  }
1933
2093
  &-checked-disabled {
1934
- background-color: @checkbox-disabled-bg-color !important;
1935
- border-color: @checkbox-disabled-bg-color !important;
2094
+ background-color: @checkbox-default-disabled-color-bg !important;
2095
+ border-color: @checkbox-default-disabled-color-border !important;
1936
2096
  cursor: not-allowed !important;
2097
+
2098
+ .@{checkbox-prefix-cls}-default-inner {
2099
+ color: @checkbox-disabled-text-color;
2100
+ }
1937
2101
  }
1938
2102
  &-checked {
1939
2103
  background-color: @checkbox-checked-border-color;
@@ -1967,64 +2131,68 @@
1967
2131
  position: absolute;
1968
2132
  top: 50%;
1969
2133
  left: 50%;
1970
- width: 8px;
1971
- height: 8px;
2134
+ width: @checkbox-default-indeterminate-square;
2135
+ height: @checkbox-default-indeterminate-square;
1972
2136
  background-color: @checkbox-checked-border-color;
1973
2137
  border: 0;
1974
2138
  transform: translate(-50%,-50%) scale(1);
1975
2139
  opacity: 1;
1976
2140
  content: " ";
1977
2141
  }
2142
+ &.checked {
2143
+ .@{checkbox-prefix-cls}-children {
2144
+ color: @checkbox-font-color;
2145
+ }
2146
+ }
1978
2147
  }
1979
2148
 
1980
2149
 
1981
2150
 
1982
2151
  @checkbox-prefix: '--@{kd-prefix}-c-checkbox';
1983
2152
 
1984
- // font-size
1985
- @checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
1986
- @checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 14px); // 勾选输入框勾勾图标大小
1987
- @checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
1988
-
1989
2153
  // colors
1990
2154
  @checkbox-color-theme: var(~'@{checkbox-prefix}-color-theme', @color-theme);
1991
- @checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', @color-text-primary);
1992
- @checkbox-border-color: var(~'@{checkbox-prefix}-color-border', @color-border-strong);
1993
- @checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
1994
- @checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
1995
- @checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
1996
- @checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
1997
- @checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
1998
- @checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-disabled);
2155
+ @checkbox-font-color: var(~'@{checkbox-prefix}-color-text-primary', #212121);
2156
+ @checkbox-border-color: var(~'@{checkbox-prefix}-color-border', #d9d9d9);
2157
+ @checkbox-checked-border-color: var(~'@{checkbox-prefix}-color-border-active', @color-theme);
2158
+ @checkbox-checked-font-color: var(~'@{checkbox-prefix}-color-text-hover', @color-theme);
2159
+ @checkbox-default-input-icon-color: var(~'@{checkbox-prefix}-default-input-icon-color', #fff); // 勾选输入框边勾勾图标颜色
2160
+ @checkbox-square-input-icon-color: var(~'@{checkbox-prefix}-square-input-icon-color', #fff); // 边框类型三角内勾选输入框勾勾图标颜色
2161
+ @checkbox-bg-color: var(~'@{checkbox-prefix}-color-background', @color-background);
2162
+ @checkbox-disabled-bg-color: var(~'@{checkbox-prefix}-color-background-disabled', @color-background-contain-disabled);
2163
+ @checkbox-disabled-border-color: var(~'@{checkbox-prefix}-color-border-disabled', @color-border-disabled);
2164
+ @checkbox-disabled-text-color: var(~'@{checkbox-prefix}-color-text-disabled', @color-disabled);
2165
+ @checkbox-default-disabled-color-bg: var(~'@{checkbox-prefix}-default-color-background-disabled', #e5e5e5);
2166
+ @checkbox-default-disabled-color-border: var(~'@{checkbox-prefix}-default-color-background-disabled', #d9d9d9);
1999
2167
 
2000
- // sizing
2001
- @checkbox-small-size-height: var(~'@{checkbox-prefix}-sizing-height-small', 32px); // 小尺寸复选框
2002
- @checkbox-middle-size-height: var(~'@{checkbox-prefix}-sizing-height-middle', 36px); // 中尺寸复选框
2003
- @checkbox-large-size-height: var(~'@{checkbox-prefix}-sizing-height-large', 40px); // 大尺寸复选框
2168
+ // font
2169
+ @checkbox-font-size: var(~'@{checkbox-prefix}-font-size', @font-size-small); //默认字体大小
2170
+ @checkbox-default-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 勾选输入框勾勾图标大小
2171
+ @checkbox-square-input-icon-size: var(~'@{checkbox-prefix}-default-input-icon-font-size', 12px); // 边框类型三角内勾选输入框勾勾图标大小
2004
2172
 
2005
- // @checkbox-border-width: 1px; // 边框类型边框大小
2006
- @checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
2173
+ // motion
2174
+ @checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
2007
2175
 
2008
- @checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 16px); // 勾选输入框高度
2009
- @checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 16px); // 勾选输入框宽度
2176
+ // radius
2177
+ @checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
2010
2178
 
2011
- // @checkbox-default-input-border-width: 1px; // 勾选输入框边框大小
2012
- @checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
2179
+ // sizing
2180
+ @checkbox-border-width: var(~'@{checkbox-prefix}-border-width', 1px); // 边框类型边框大小
2181
+ @checkbox-default-input-height: var(~'@{checkbox-prefix}-default-input-sizing-height', 14px); // 勾选输入框高度
2182
+ @checkbox-default-input-width: var(~'@{checkbox-prefix}-default-input-sizing-width', 14px); // 勾选输入框宽度
2183
+ @checkbox-default-input-border-width: var(~'@{checkbox-prefix}-default-input-border-width', 1px); // 勾选输入框边框大小 不需要
2184
+ @checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
2185
+ @checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
2186
+ @checkbox-default-indeterminate-square: var(~'@{checkbox-prefix}-default-indeterminate-sizing-square', 6px); // 半选框的大小
2013
2187
 
2014
- @checkbox-square-triangle-height: var(~'@{checkbox-prefix}-square-triangle-sizing-height', 18px); // 边框类型右下角三角高度
2015
- @checkbox-square-triangle-width: var(~'@{checkbox-prefix}-square-triangle-sizing-width', 18px); // 边框类型右下角三角宽度
2016
2188
 
2017
2189
  // spacing
2018
- @checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 8px); // 按钮组的间距
2019
- @checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
2020
- @checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 8px); // 勾选输入框与右侧内容间距
2021
- @checkbox-square-padding: var(~'@{checkbox-prefix}-square-spacing-padding', 0 20px); // 边框类型内边距
2022
-
2023
- // radius
2024
- @checkbox-default-input-border-radius: var(~'@{checkbox-prefix}-default-input-radius-border', 2px); // 勾选输入框圆角
2190
+ @checkbox-group-margin-right: var(~'@{checkbox-prefix}-group-spacing-margin-right', 12px); // 按钮组的间距
2191
+ @checkbox-default-padding: var(~'@{checkbox-prefix}-default-spacing-padding', 0); // 默认类型复选框内边距
2192
+ @checkbox-default-input-margin-right: var(~'@{checkbox-prefix}-default-input-spacing-margin-right', 4px); // 勾选输入框与右侧内容间距
2193
+ @checkbox-square-padding-horizontal: var(~'@{checkbox-prefix}-square-spacing-padding-horizontal', 7px); // 边框类型内边距
2194
+ @checkbox-square-padding-vertical: var(~'@{checkbox-prefix}-square-spacing-padding-vertical', 12px); // 边框类型内边距
2025
2195
 
2026
- // motion
2027
- @checkbox-transition-duration: var(~'@{checkbox-prefix}-motion-duration', @duration-promptly);
2028
2196
 
2029
2197
 
2030
2198
 
@@ -2368,11 +2536,23 @@
2368
2536
  &-left {
2369
2537
  display: inline-flex;
2370
2538
  align-items: center;
2371
- flex-grow: 1;
2539
+ line-height: 1.5;
2540
+ }
2541
+ &-middle {
2542
+ display: inline-flex;
2543
+ align-items: center;
2544
+ flex: 1;
2545
+ margin-left: 22px;
2546
+ color: @collapse-header-font-color-secondary;
2547
+ white-space: nowrap;
2548
+ overflow: hidden;
2549
+ text-overflow: ellipsis;
2372
2550
  }
2373
2551
  &-right {
2552
+ margin-left: 40px;
2374
2553
  display: inline-flex;
2375
2554
  align-items: center;
2555
+ white-space: nowrap;
2376
2556
  }
2377
2557
  &-extra,
2378
2558
  &-header {
@@ -2381,10 +2561,21 @@
2381
2561
  color: @collapse-header-font-color;
2382
2562
  font-size: @collapse-header-font-size;
2383
2563
  }
2564
+
2565
+ &-header {
2566
+ display: inline-block;
2567
+ white-space: nowrap;
2568
+ overflow: hidden;
2569
+ text-overflow: ellipsis;
2570
+ &:hover {
2571
+ color: @collapse-header-color-text-hover;
2572
+ }
2573
+ }
2384
2574
  &-icon {
2385
2575
  align-items: center;
2386
2576
  display: inline-flex;
2387
2577
  margin-right: @collapse-icon-margin-right;
2578
+ font-size: @collapse-icon-font-size;
2388
2579
  }
2389
2580
  &-icon:hover,
2390
2581
  &-left:hover {
@@ -2432,29 +2623,31 @@
2432
2623
 
2433
2624
  @collapse-prefix: '--@{kd-prefix}-c-collapse';
2434
2625
 
2435
- // sizing
2436
- @collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
2437
- @collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
2438
- @collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 12px);
2439
- @collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
2440
- @collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 16px);
2441
-
2442
2626
  // color
2443
2627
  @collapse-border-color: var(~'@{collapse-prefix}-color-border-strong-2', @color-border-strong-2);
2444
2628
  @collapse-header-font-color: var(~'@{collapse-prefix}-header-color-text-primary', @color-text-primary);
2629
+ @collapse-header-font-color-secondary: var(~'@{collapse-prefix}-header-color-text-secondary', @color-text-secondary);
2445
2630
  @collapse-content-font-color: var(~'@{collapse-prefix}-content-color-text-primary', @color-text-primary);
2446
2631
  @collapse-disabled-color: var(~'@{collapse-prefix}-color-disabled', raba(178, 178, 178, 1));
2447
2632
  @collapse-header-color-background: var(~'@{collapse-prefix}-header-color-background', rgba(0, 0, 0, 0));
2448
2633
  @collapse-content-color-background: var(~'@{collapse-prefix}-content-color-background', rgba(0, 0, 0, 0));
2449
-
2634
+ @collapse-header-color-text-hover: var(~'@{collapse-prefix}-header-color-text-hover', #666666);
2450
2635
 
2451
2636
  // font
2452
- @collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size', @font-size-middle);
2637
+ @collapse-header-font-size: var(~'@{collapse-prefix}-header-font-size', 16px);
2453
2638
  @collapse-content-font-size: var(~'@{collapse-prefix}-content-font-size', @font-size-middle);
2639
+ @collapse-icon-font-size: var(~'@{collapse-prefix}-icon-font-size', 16px);
2454
2640
 
2455
2641
  // motion
2456
2642
  @collapse-transition-duration: var(~'@{collapse-prefix}-motion-duration', @duration-promptly);
2457
2643
 
2644
+ // sizing
2645
+ @collapse-border-width: var(~'@{collapse-prefix}-border-width', 1px);
2646
+ @collapse-icon-margin-right: var(~'@{collapse-prefix}-spacing-margin-right', 6px);
2647
+ @collapse-header-padding: var(~'@{collapse-prefix}-header-spacing-padding', 8px 50px 8px 28px);
2648
+ @collapse-content-bordered-padding: var(~'@{collapse-prefix}-content-bordered-spacing-padding', 12px);
2649
+ @collapse-content-padding: var(~'@{collapse-prefix}-content-spacing-padding', 0 50px);
2650
+
2458
2651
 
2459
2652
 
2460
2653
 
@@ -4219,7 +4412,7 @@
4219
4412
  text-align: center;
4220
4413
  opacity: 0;
4221
4414
  transform: translateY(100%);
4222
- transition: all @image-action-transition ease-out;
4415
+ transition: all 0.2s ease-out;
4223
4416
  background-color: @image-action-background-color;
4224
4417
 
4225
4418
  >* {
@@ -4236,7 +4429,7 @@
4236
4429
  }
4237
4430
 
4238
4431
  .@{image-preview-prefix-cls} {
4239
- z-index: @image-z-index-masker;
4432
+ z-index: 3000;
4240
4433
  position: fixed;
4241
4434
  top: 0;
4242
4435
  right: 0;
@@ -4245,14 +4438,14 @@
4245
4438
  opacity: 0;
4246
4439
  transform: scale(0.15);
4247
4440
  visibility: hidden;
4248
- transition: all calc(@image-transition-duration - 0.1s) @image-motion-ease-in;
4441
+ transition: all 0.2s cubic-bezier(0.4,0,1,0.6);
4249
4442
  -webkit-overflow-scrolling: touch;
4250
4443
 
4251
4444
  &.show {
4252
4445
  opacity: 1;
4253
4446
  transform: scale(1);
4254
4447
  visibility: visible;
4255
- transition: all calc(@image-transition-duration - 0.1s) @image-motion-ease-out;
4448
+ transition: all 0.2s cubic-bezier(0,.4,.4,1);
4256
4449
  }
4257
4450
 
4258
4451
  &-mask {
@@ -4282,7 +4475,7 @@
4282
4475
 
4283
4476
  &:hover,
4284
4477
  &:active {
4285
- color: @theme-color;
4478
+ color: #5582f3;
4286
4479
  }
4287
4480
  }
4288
4481
 
@@ -4404,34 +4597,21 @@
4404
4597
 
4405
4598
  @image-prefix: '--@{kd-prefix}-c-image';
4406
4599
 
4407
- @image-transition-duration: var(~'@{image-prefix}-transition-duration',@transition-duration);
4408
- @image-motion-ease-out: var(~'@{image-prefix}-motion-ease-out',@motion-ease-out);
4409
- @image-motion-ease-in: var(~'@{image-prefix}-motion-ease-out',@motion-ease-in);
4410
- @image-z-index-masker: var(~'@{image-prefix}-z-index-masker',@z-index-masker);
4411
- @image-border-radius: var(~'@{image-prefix}-radius-border',@radius-border);
4412
- @image-action-transition: var(~'@{image-prefix}-action-transition',@duration-quickly);
4413
-
4414
-
4415
-
4416
-
4417
4600
  // color
4418
- @image-icon-color: var(~'@{image-prefix}-icon-color',@color-white);//图片预览 图标颜色
4419
- @image-close-color-background: var(~'@{image-prefix}-close-color-background',#666666);//删除图标 背景色
4420
- @image-action-background-color: var(~'@{image-prefix}-action-color-background',rgba(0, 0, 0, 0.5));
4421
-
4422
-
4601
+ @image-icon-color: var(~'@{image-prefix}-icon-color', @color-white); //图片预览 图标颜色
4602
+ @image-close-color-background: var(~'@{image-prefix}-close-color-background', #666666); //删除图标 背景色
4603
+ @image-action-background-color: var(~'@{image-prefix}-action-color-background', rgba(0, 0, 0, 0.5));
4423
4604
  // font
4424
- @image-icon-font-size: var(~'@{image-prefix}-icon-font-size',27px);//图片预览 图标大小
4425
- @image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size',28px);
4426
- @image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large',@font-size-x-large);
4427
-
4605
+ @image-icon-font-size: var(~'@{image-prefix}-icon-font-size', 26px); //图片预览 图标大小
4606
+ @image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size', 28px);
4607
+ @image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large', @font-size-x-large);
4608
+ // radius
4609
+ @image-border-radius: var(~'@{image-prefix}-radius-border', @radius-border);
4428
4610
  // sizing
4429
- @image-action-width: var(~'@{image-prefix}-action-sizing-width',100%);
4430
- @image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width',18px);
4431
- @image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height',18px);
4432
- @image-action-height: var(~'@{image-prefix}-action-sizing-height',28px);
4433
-
4434
-
4611
+ @image-action-width: var(~'@{image-prefix}-action-sizing-width', 100%);
4612
+ @image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width', 18px);
4613
+ @image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height', 18px);
4614
+ @image-action-height: var(~'@{image-prefix}-action-sizing-height', 28px);
4435
4615
 
4436
4616
 
4437
4617
 
@@ -4819,12 +4999,13 @@ textarea {
4819
4999
  &-disabled {
4820
5000
  background-color: @input-background-color-disabled-inner;
4821
5001
  border-color: @input-border-color-disabled-inner;
4822
- color: @input-color-disabled-inner;
5002
+ color: @input-affix-color;
4823
5003
  cursor: not-allowed;
4824
5004
  }
4825
5005
  &-underline&-disabled {
5006
+ color: @input-color-disabled-inner;
4826
5007
  background-color: @input-background-color-inner;
4827
- border-color: @input-border-color-disabled-inner;
5008
+ border-color: @input-underline-border-color-disabled-inner;
4828
5009
  }
4829
5010
  &-size-small {
4830
5011
  .input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
@@ -4854,6 +5035,7 @@ textarea {
4854
5035
  align-items: center;
4855
5036
  justify-content: center;
4856
5037
  word-break: keep-all;
5038
+ color: @input-affix-color;
4857
5039
  }
4858
5040
  &-suffix {
4859
5041
  margin-left: 4px;
@@ -4942,7 +5124,7 @@ textarea {
4942
5124
  }
4943
5125
  .@{input-prefix-cls}-group-addon {
4944
5126
  position: relative;
4945
- color: @input-font-color-inner;
5127
+ color: @input-affix-color;
4946
5128
  padding: 0 9px;
4947
5129
  font-weight: 400;
4948
5130
  font-size: 14px;
@@ -4974,7 +5156,6 @@ textarea {
4974
5156
  &-disabled {
4975
5157
  background-color: @input-background-color-disabled-inner;
4976
5158
  border-color: @input-border-color-disabled-inner;
4977
- color: @input-color-disabled-inner;
4978
5159
  cursor: not-allowed;
4979
5160
  }
4980
5161
  }
@@ -5066,6 +5247,7 @@ textarea {
5066
5247
  border: none;
5067
5248
  border-bottom: 1px solid @input-color-border;
5068
5249
  border-radius: 0 !important;
5250
+ padding-left: 0;
5069
5251
  }
5070
5252
 
5071
5253
 
@@ -5074,40 +5256,43 @@ textarea {
5074
5256
 
5075
5257
 
5076
5258
  // color
5077
- @input-font-color-inner: var(~'@{input-prefix}-color', @color-text-secondary);
5078
- @input-placeholder-color-inner: var(~'@{input-prefix}-color-placeholder', @color-text-third);
5259
+ @input-font-color-inner: var(~'@{input-prefix}-color-text', @color-text-primary);
5260
+ @input-placeholder-color-inner: var(~'@{input-prefix}-placeholder-color-text', @color-text-placeholder);
5079
5261
  @input-color-border: var(~'@{input-prefix}-color-border', #999);
5080
5262
  @input-background-color-inner: var(~'@{input-prefix}-color-background', @color-white);
5081
5263
  @input-background-color-disabled-inner: var(~'@{input-prefix}-color-background-disabled', @color-background-contain-disabled);
5082
5264
  @input-border-color-focused: var(~'@{input-prefix}-color-border-focused', @color-theme);
5083
5265
  @input-border-color-disabled-inner: var(~'@{input-prefix}-color-border-disabled', @color-border-strong);
5266
+ @input-underline-border-color-disabled-inner: var(~'@{input-prefix}-underline-color-border-disabled', @color-border-weak);
5084
5267
  @input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
5268
+ @input-affix-color: var(~'@{input-prefix}-affix-color-text', @color-text-primary);
5085
5269
 
5086
- // sizing
5087
- @input-small-height-inner: var(~'@{input-prefix}-small-sizing-height', 20px);
5088
- @input-middle-height-inner: var(~'@{input-prefix}-middle-sizing-height', 30px);
5089
- @input-large-height-inner: var(~'@{input-prefix}-large-sizing-height', 36px);
5090
- @input-border-width-inner: var(~'@{input-prefix}-sizing-border', 1px);
5091
-
5092
- // spacing
5093
- @input-small-padding-vertical-inner: var(~'@{input-prefix}-small-spacing-padding-vertical', 3px);
5094
- @input-small-padding-horizontal-inner: var(~'@{input-prefix}-small-spacing-padding-horizontal', 9px);
5095
- @input-middle-padding-vertical-inner: var(~'@{input-prefix}-middle-spacing-padding-vertical', 5px);
5096
- @input-middle-padding-horizontal-inner: var(~'@{input-prefix}-middle-spacing-padding-horizontal', 9px);
5097
- @input-large-padding-vertical-inner: var(~'@{input-prefix}-large-spacing-padding-vertical', 8px);
5098
- @input-large-padding-horizontal-inner: var(~'@{input-prefix}-large-spacing-padding-horizontal', 9px);
5270
+ // font
5271
+ @input-small-font-size-inner: var(~'@{input-prefix}-font-size-small', @font-size-small);
5272
+ @input-middle-font-size-inner: var(~'@{input-prefix}-font-size-middle', @font-size-middle);
5273
+ @input-large-font-size-inner: var(~'@{input-prefix}-font-size-large', @font-size-large);
5099
5274
 
5100
5275
  // motion
5101
5276
  @transition-duration-inner: var(~'@{input-prefix}-motion-duration', @duration-promptly);
5102
5277
 
5103
- // font
5104
- @input-small-font-size-inner: var(~'@{input-prefix}-small-font-size', @font-size-small);
5105
- @input-middle-font-size-inner: var(~'@{input-prefix}-middle-font-size', @font-size-middle);
5106
- @input-large-font-size-inner: var(~'@{input-prefix}-large-font-size', @font-size-large);
5107
-
5108
5278
  // radius
5109
5279
  @input-border-radius-inner: var(~'@{input-prefix}-radius-border', @radius-border);
5110
5280
 
5281
+ // sizing
5282
+ @input-small-height-inner: var(~'@{input-prefix}-sizing-height-small', 20px);
5283
+ @input-middle-height-inner: var(~'@{input-prefix}-sizing-height-middle', 30px);
5284
+ @input-large-height-inner: var(~'@{input-prefix}-sizing-height-large', 36px);
5285
+ @input-border-width-inner: var(~'@{input-prefix}-sizing-border', 1px);
5286
+
5287
+ // spacing
5288
+ @input-small-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-small', 3px);
5289
+ @input-small-padding-horizontal-inner: var(~'@{input-prefix}-spacing-padding-horizontal-small', 9px);
5290
+ @input-middle-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-middle', 5px);
5291
+ @input-middle-padding-horizontal-inner: var(~'@{input-prefix}-spacing-padding-horizontal-middle', 9px);
5292
+ @input-large-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-large', 8px);
5293
+ @input-large-padding-horizontal-inner: var(~'@{input-prefix}-spacing-padding-horizontal-large', 9px);
5294
+
5295
+
5111
5296
 
5112
5297
 
5113
5298
 
@@ -5300,7 +5485,7 @@ textarea {
5300
5485
  padding: 0 16px;
5301
5486
  color: @layout-trigger-color;
5302
5487
  height: @layout-trigger-height;
5303
- line-height: calc(@layout-trigger-height - 2px);
5488
+ line-height: calc(@layout-trigger-height - 4px);
5304
5489
  font-size: 20px;
5305
5490
  background: @layout-trigger-background;
5306
5491
  cursor: pointer;
@@ -5386,16 +5571,17 @@ textarea {
5386
5571
  @layout-trigger-background-light: var(~'@{layout-custom-prefix}-trigger-color-background-light', @color-background);
5387
5572
  @layout-trigger-color-light: var(~'@{layout-custom-prefix}-trigger-color-text-light', @color-text-primary);
5388
5573
 
5389
- // spacing
5390
- @layout-header-padding: var(~'@{layout-custom-prefix}-header-spacing-padding', 0 20px 0 35px);
5391
- @layout-footer-padding: var(~'@{layout-custom-prefix}-footer-spacing-padding', 24px 50px);
5392
-
5393
5574
  // sizing
5394
5575
  @layout-header-height: var(~'@{layout-custom-prefix}-header-sizing-height', 52px);
5395
5576
  @layout-trigger-height: var(~'@{layout-custom-prefix}-trigger-sizing-height', 50px);
5396
5577
  @layout-zero-trigger-width: var(~'@{layout-custom-prefix}-trigger-sizing-width', 36px);
5397
5578
  @layout-zero-trigger-height: var(~'@{layout-custom-prefix}-trigger-sizing-height', 42px);
5398
5579
 
5580
+ // spacing
5581
+ @layout-header-padding: var(~'@{layout-custom-prefix}-header-spacing-padding', 0 20px 0 35px);
5582
+ @layout-footer-padding: var(~'@{layout-custom-prefix}-footer-spacing-padding', 24px 50px);
5583
+
5584
+
5399
5585
 
5400
5586
 
5401
5587
  @wrapper-prefix-cls: ~'@{kd-prefix}-link-wrapper';
@@ -5561,6 +5747,7 @@ textarea {
5561
5747
 
5562
5748
  &-collapsed {
5563
5749
  width: 50px;
5750
+ min-width: auto;
5564
5751
  }
5565
5752
 
5566
5753
  &-light {
@@ -5713,6 +5900,19 @@ textarea {
5713
5900
  }
5714
5901
  }
5715
5902
 
5903
+ .@{menu-prefix-cls}-dark {
5904
+ .@{submenu-prefix-cls}-sub {
5905
+ background: @menu-sub-inline-color-background;
5906
+ }
5907
+
5908
+ .@{submenu-prefix-cls}-sub-second,.@{submenu-prefix-cls}-sub-third {
5909
+ background: @menu-sub-color-background;
5910
+ }
5911
+ }
5912
+
5913
+
5914
+
5915
+
5716
5916
 
5717
5917
 
5718
5918
  // 菜单默认样式
@@ -5720,6 +5920,7 @@ textarea {
5720
5920
  position: relative;
5721
5921
  width: 100%;
5722
5922
  height: 100%;
5923
+ min-width: 138px;
5723
5924
  background-color: @menu-color-background;
5724
5925
  color: @menu-sub-color;
5725
5926
  }
@@ -5793,7 +5994,6 @@ textarea {
5793
5994
  .light-hover {
5794
5995
  background-color: @menu-light-color-background;
5795
5996
  color: @menu-light-color-hover;
5796
- border-right: 2px solid @menu-light-color-active;
5797
5997
  }
5798
5998
 
5799
5999
  .light-default {
@@ -5815,32 +6015,29 @@ textarea {
5815
6015
 
5816
6016
  @menu-prefix: '--@{kd-prefix}-c-menu';
5817
6017
 
5818
- // shadow
5819
6018
  // color
5820
6019
  @menu-color-disabled: var(~'@{menu-prefix}-color-disabled', @color-disabled);
5821
- @menu-sub-color: var(~'@{menu-prefix}-sub-color', rgba(255, 255, 255, 0.65));
5822
- @menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-hover', @color-white);
5823
- @menu-sub-color-active: var(~'@{menu-prefix}-sub-color-active', @color-theme);
5824
- @menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #21242d);
6020
+ @menu-sub-color: var(~'@{menu-prefix}-sub-color-text', rgba(255, 255, 255, 0.65));
6021
+ @menu-sub-color-hover: var(~'@{menu-prefix}-sub-color-text-hover', @color-white);
6022
+ @menu-sub-color-active: var(~'@{menu-prefix}-sub-color-text-active', @color-white);
6023
+ @menu-sub-color-background: var(~'@{menu-prefix}-sub-color-background', #121319);
6024
+ @menu-sub-inline-color-background: var(~'@{menu-prefix}-sub-inline-color-background', #1f212b);
5825
6025
  @menu-inline-color-active: var(~'@{menu-prefix}-inline-color-active', @color-white);
5826
6026
  @menu-color-background: var(~'@{menu-prefix}-color-background', #343848);
5827
-
5828
- @menu-light-color: var(~'@{menu-prefix}-light-color', @color-text-primary);
5829
- @menu-light-color-hover: var(~'@{menu-prefix}-light-color-hover', @color-ongoing);
5830
- @menu-light-color-active: var(~'@{menu-prefix}-light-color-active', @color-theme);
6027
+ @menu-light-color: var(~'@{menu-prefix}-light-color-text', @color-text-primary);
6028
+ @menu-light-color-hover: var(~'@{menu-prefix}-light-color-text-hover', @color-ongoing);
6029
+ @menu-light-color-active: var(~'@{menu-prefix}-light-color-text-active', @color-theme);
5831
6030
  @menu-light-color-background: var(~'@{menu-prefix}-light-color-background', @color-background-ongoing);
5832
6031
 
5833
- // sizing
5834
- @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
5835
- // spacing
6032
+ // font
6033
+ @menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
6034
+
5836
6035
  // motion
5837
6036
  @menu-motion-duration: var(~'@{menu-prefix}-motion-duration', @duration-promptly);
5838
6037
 
5839
- // font
5840
- @menu-icon-font-size: var(~'@{menu-prefix}-icon-font-size', @font-size-xx-large);
6038
+ // sizing
6039
+ @menu-item-height: var(~'@{menu-prefix}-item-sizing-height', 50px);
5841
6040
 
5842
- // radius
5843
- // line-height
5844
6041
  // z-index
5845
6042
  @menu-z-index: var(~'@{menu-prefix}-z-index', @z-index-dialog);
5846
6043
 
@@ -6378,6 +6575,7 @@ textarea {
6378
6575
 
6379
6576
 
6380
6577
  @pagination-prefix-cls: ~'@{kd-prefix}-pagination';
6578
+ @dropdown-prefix-cls: ~'@{kd-prefix}-dropdown';
6381
6579
  @pagination-action-prefix-cls: ~'@{pagination-prefix-cls}-action';
6382
6580
  @pagination-selector-prefix-cls: ~'@{pagination-prefix-cls}-selector';
6383
6581
  @pagination-pages-prefix-cls: ~'@{pagination-prefix-cls}-pages';
@@ -6397,11 +6595,11 @@ textarea {
6397
6595
 
6398
6596
  .@{pagination-prefix-cls}-current {
6399
6597
  display: inline-block;
6400
- margin-right: 15px;
6598
+ margin-right: 12px;
6401
6599
  vertical-align: middle;
6402
6600
  .@{pagination-prefix-cls}-current-input {
6403
6601
  box-sizing: border-box;
6404
- width: 32px;
6602
+ width: 44px;
6405
6603
  height: @pagination-size;
6406
6604
  margin: 0 3px;
6407
6605
  padding: 0;
@@ -6421,7 +6619,7 @@ textarea {
6421
6619
  }
6422
6620
 
6423
6621
  &:disabled {
6424
- color: @color-disabled;
6622
+ color: @pagination-disabled-color;
6425
6623
  border: @pagination-border-size solid @pagination-border-disabled-color;
6426
6624
  background: @pagination-button-disabled-background-color;
6427
6625
  cursor: not-allowed;
@@ -6482,7 +6680,7 @@ textarea {
6482
6680
  cursor: not-allowed;
6483
6681
 
6484
6682
  i {
6485
- color: @pagination-icon-disabled-color;
6683
+ color: @pagination-disabled-color;
6486
6684
  }
6487
6685
  }
6488
6686
 
@@ -6516,6 +6714,7 @@ textarea {
6516
6714
  .@{pagination-selector-prefix-cls}-size {
6517
6715
  box-sizing: border-box;
6518
6716
  display: inline-block;
6717
+ padding: 0;
6519
6718
  line-height: @pagination-size;
6520
6719
  font-size: @pagination-font-size;
6521
6720
  color: @color-text-primary;
@@ -6535,21 +6734,34 @@ textarea {
6535
6734
  &.disabled,
6536
6735
  &.disabled > i {
6537
6736
  cursor: not-allowed;
6538
- color: @color-border-disabled;
6737
+ color: @pagination-disabled-color;
6539
6738
  }
6540
6739
 
6541
6740
  i {
6542
- margin-left: 5px;
6741
+ margin-left: 4px;
6543
6742
  line-height: @pagination-size;
6544
6743
  font-size: @pagination-icon-size;
6545
6744
  color: @pagination-text-color;
6546
6745
  }
6547
6746
  }
6747
+
6748
+ .@{dropdown-prefix-cls}-menu-item {
6749
+ text-align: right;
6750
+ padding-right: @pagination-dropdown-item-spacing-horizontal;
6751
+ padding-left: @pagination-dropdown-item-spacing-horizontal;
6752
+
6753
+ span {
6754
+ white-space: nowrap;
6755
+ }
6756
+ }
6548
6757
  }
6549
6758
 
6550
6759
  // 简化版分页
6551
6760
  &.simple {
6552
- display: inline-block;
6761
+ display: inline-flex;
6762
+ justify-content: space-around;
6763
+ align-items: center;
6764
+ height: @pagination-size;
6553
6765
  border-radius: @radius-border;
6554
6766
  border: @pagination-border-size solid transparent;
6555
6767
 
@@ -6568,15 +6780,17 @@ textarea {
6568
6780
  }
6569
6781
 
6570
6782
  &.disabled > .@{pagination-prefix-cls}-item {
6571
- color: @color-border-disabled;
6783
+ color: @pagination-disabled-color;
6572
6784
  }
6573
6785
 
6574
6786
  .@{pagination-prefix-cls}-item {
6575
6787
  .reset-component;
6576
6788
  display: inline-block;
6789
+ height: @pagination-size;
6790
+ overflow: hidden;
6791
+ margin: 0 8px;
6577
6792
  vertical-align: middle;
6578
6793
  color: @color-text-primary;
6579
- margin: 0 18px;
6580
6794
 
6581
6795
  &:first-child,
6582
6796
  &:last-child {
@@ -6591,7 +6805,7 @@ textarea {
6591
6805
  margin: 0;
6592
6806
 
6593
6807
  &:disabled {
6594
- color: @color-disabled;
6808
+ color: @pagination-disabled-color;
6595
6809
  cursor: not-allowed;
6596
6810
  }
6597
6811
  }
@@ -6618,7 +6832,7 @@ textarea {
6618
6832
  &:hover,
6619
6833
  &:active {
6620
6834
  &:not(:disabled) {
6621
- border-color: @pagination-border-hover-color
6835
+ border-color: @pagination-border-hover-color;
6622
6836
  }
6623
6837
 
6624
6838
  i {
@@ -6630,7 +6844,7 @@ textarea {
6630
6844
  cursor: not-allowed;
6631
6845
 
6632
6846
  i {
6633
- color: @pagination-icon-disabled-color;
6847
+ color: @pagination-disabled-color;
6634
6848
  }
6635
6849
  }
6636
6850
 
@@ -6693,7 +6907,7 @@ textarea {
6693
6907
  border-color: @pagination-border-hover-color;
6694
6908
 
6695
6909
  &:disabled {
6696
- border-color: @pagination-border-disabled-color
6910
+ border-color: @pagination-border-disabled-color;
6697
6911
  }
6698
6912
  }
6699
6913
  }
@@ -6714,7 +6928,7 @@ textarea {
6714
6928
 
6715
6929
  &:disabled {
6716
6930
  cursor: not-allowed;
6717
- color: @color-disabled;
6931
+ color: @pagination-disabled-color;
6718
6932
  }
6719
6933
  }
6720
6934
  }
@@ -6752,11 +6966,8 @@ textarea {
6752
6966
  background-color: @color-background-contain;
6753
6967
  }
6754
6968
 
6755
- &:hover,
6756
- &:active,
6757
6969
  &.active,
6758
- &:first-child,
6759
- &:last-child {
6970
+ &:hover {
6760
6971
  button {
6761
6972
  color: @color-theme;
6762
6973
 
@@ -6769,16 +6980,16 @@ textarea {
6769
6980
  &:first-child,
6770
6981
  &:last-child {
6771
6982
  button {
6772
- width: @pagination-nicety-size;
6983
+ width: @pagination-size;
6773
6984
  padding: 0;
6774
- line-height: calc(@pagination-nicety-size - 2px);
6985
+ line-height: calc(@pagination-size - 2px);
6775
6986
  }
6776
6987
  }
6777
6988
 
6778
6989
  button {
6779
6990
  .reset-component;
6780
- min-width: @pagination-nicety-size;
6781
- height: @pagination-nicety-size;
6991
+ min-width: @pagination-size;
6992
+ height: @pagination-size;
6782
6993
  padding: 0 6px;
6783
6994
  cursor: pointer;
6784
6995
  outline: none;
@@ -6791,7 +7002,11 @@ textarea {
6791
7002
 
6792
7003
  &:disabled {
6793
7004
  cursor: not-allowed;
6794
- color: @color-disabled;
7005
+ color: @pagination-disabled-color;
7006
+ }
7007
+
7008
+ > i {
7009
+ font-size: 16px;
6795
7010
  }
6796
7011
 
6797
7012
  .@{pagination-pages-prefix-cls}-jumper-icon {
@@ -6802,7 +7017,7 @@ textarea {
6802
7017
  width: 100%;
6803
7018
  height: 100%;
6804
7019
  color: @color-theme;
6805
- line-height: @pagination-nicety-size;
7020
+ line-height: @pagination-size;
6806
7021
  background-color: @color-background;
6807
7022
  transition: opacity @duration-promptly;
6808
7023
  }
@@ -6812,13 +7027,13 @@ textarea {
6812
7027
 
6813
7028
  .@{pagination-jumper-prefix-cls} {
6814
7029
  display: inline-block;
6815
- margin-left: 12px;
7030
+ margin-left: 4px;
6816
7031
  vertical-align: middle;
6817
7032
 
6818
7033
  .@{pagination-jumper-prefix-cls}-input {
6819
7034
  box-sizing: border-box;
6820
- width: 48px;
6821
- height: @pagination-nicety-size;
7035
+ width: 40px;
7036
+ height: @pagination-size;
6822
7037
  padding: 0;
6823
7038
  outline: none;
6824
7039
  text-align: center;
@@ -6836,7 +7051,7 @@ textarea {
6836
7051
  }
6837
7052
 
6838
7053
  &:disabled {
6839
- color: @color-disabled;
7054
+ color: @pagination-disabled-color;
6840
7055
  border: @pagination-border-size solid @pagination-border-disabled-color;
6841
7056
  background: @pagination-button-disabled-background-color;
6842
7057
  cursor: not-allowed;
@@ -6845,14 +7060,14 @@ textarea {
6845
7060
 
6846
7061
  .@{pagination-jumper-prefix-cls}-button {
6847
7062
  .reset-component;
6848
- width: @pagination-nicety-size;
6849
- height: @pagination-nicety-size;
7063
+ width: @pagination-size;
7064
+ height: @pagination-size;
6850
7065
  margin-left: @pagination-button-spacing;
6851
- line-height: @pagination-nicety-size;
7066
+ line-height: @pagination-size;
6852
7067
  vertical-align: top;
6853
7068
  cursor: pointer;
6854
7069
  outline: none;
6855
- color: @color-theme;
7070
+ color: @color-text-primary;
6856
7071
  font-size: @pagination-font-size;
6857
7072
  border-radius: @radius-border;
6858
7073
  border: @pagination-border-size solid @color-border-strong;
@@ -6860,8 +7075,8 @@ textarea {
6860
7075
  transition: border-color @duration-promptly;
6861
7076
 
6862
7077
  &:hover,
6863
- &:active,
6864
- &.active {
7078
+ &:active {
7079
+ color: @color-theme;
6865
7080
  border-color: @pagination-border-hover-color;
6866
7081
 
6867
7082
  &:disabled {
@@ -6870,7 +7085,7 @@ textarea {
6870
7085
  }
6871
7086
 
6872
7087
  &:disabled {
6873
- color: @color-disabled;
7088
+ color: @pagination-disabled-color;
6874
7089
  cursor: not-allowed;
6875
7090
  }
6876
7091
  }
@@ -6880,9 +7095,9 @@ textarea {
6880
7095
  .reset-component;
6881
7096
  position: relative;
6882
7097
  display: inline-block;
6883
- margin-left: 40px;
7098
+ margin-left: 22px;
6884
7099
  outline: none;
6885
- height: @pagination-nicety-size;
7100
+ height: @pagination-size;
6886
7101
  color: @color-text-primary;
6887
7102
  vertical-align: middle;
6888
7103
 
@@ -6890,11 +7105,11 @@ textarea {
6890
7105
  position: relative;
6891
7106
  box-sizing: border-box;
6892
7107
  display: inline-block;
6893
- width: 67px;
6894
- height: @pagination-nicety-size;
7108
+ min-width: 64px;
7109
+ height: @pagination-size;
6895
7110
  margin-right: 8px;
6896
- padding: 0 8px;
6897
- line-height: @pagination-nicety-size;
7111
+ padding: 0 24px 0 4px;
7112
+ line-height: @pagination-size;
6898
7113
  font-size: @pagination-font-size;
6899
7114
  color: @color-text-primary;
6900
7115
  text-align: left;
@@ -6917,7 +7132,7 @@ textarea {
6917
7132
  &.disabled,
6918
7133
  &.disabled > i {
6919
7134
  cursor: not-allowed;
6920
- color: @color-border-disabled;
7135
+ color: @pagination-disabled-color;
6921
7136
  }
6922
7137
 
6923
7138
  i {
@@ -6929,7 +7144,7 @@ textarea {
6929
7144
  color: @pagination-hover-color;
6930
7145
  transform: translateY(-50%);
6931
7146
  }
6932
-
7147
+
6933
7148
  .@{pagination-prefix-cls}-dropdown-icon-open {
6934
7149
  transform: rotate(180deg) translateY(50%);
6935
7150
  }
@@ -6951,11 +7166,10 @@ textarea {
6951
7166
  // color
6952
7167
  @pagination-text-color: var(~'@{pagination-custom-prefix}-text-color', @color-text-secondary);
6953
7168
  @pagination-hover-color: var(~'@{pagination-custom-prefix}-color-text-hover', @color-theme);
6954
- @pagination-disabled-color: var(~'@{pagination-custom-prefix}-color-text-disabled', @color-border-disabled);
6955
7169
  @pagination-icon-color: var(~'@{pagination-custom-prefix}-button-color', @color-text-secondary);
6956
- @pagination-icon-disabled-color: var(~'@{pagination-custom-prefix}-button-color-disabled', @color-border-disabled);
7170
+ @pagination-disabled-color: var(~'@{pagination-custom-prefix}-color-disabled', @color-disabled);
6957
7171
  @pagination-border-color: var(~'@{pagination-custom-prefix}-color-border', @color-border-strong);
6958
- @pagination-border-hover-color: var(~'@{pagination-custom-prefix}-color-border-hover', @color-theme);
7172
+ @pagination-border-hover-color: var(~'@{pagination-custom-prefix}-color-border-hover', @color-theme-7);
6959
7173
  @pagination-border-disabled-color: var(~'@{pagination-custom-prefix}-color-border-disabled', @color-border-strong);
6960
7174
  @pagination-button-disabled-background-color: var(~'@{pagination-custom-prefix}-button-color-background-disabled', @color-background-contain-disabled);
6961
7175
 
@@ -6963,13 +7177,14 @@ textarea {
6963
7177
  @pagination-font-size: var(~'@{pagination-custom-prefix}-font-size', @font-size-small);
6964
7178
  @pagination-icon-size: var(~'@{pagination-custom-prefix}-icon-font-size', @font-size-large);
6965
7179
 
7180
+
6966
7181
  // sizing
6967
7182
  @pagination-size: var(~'@{pagination-custom-prefix}-sizing-square', 24px);
6968
- @pagination-nicety-size: var(~'@{pagination-custom-prefix}-nicety-sizing-square', 30px);
6969
7183
  @pagination-border-size: var(~'@{pagination-custom-prefix}-sizing-border-width', 1px);
6970
7184
 
6971
7185
  // spacing
6972
7186
  @pagination-button-spacing: var(~'@{pagination-custom-prefix}-button-spacing', 4px);
7187
+ @pagination-dropdown-item-spacing-horizontal: var(~'@{pagination-custom-prefix}-dropdown-item-spacing-padding-horizontal', 24px);
6973
7188
 
6974
7189
 
6975
7190
 
@@ -7319,6 +7534,7 @@ textarea {
7319
7534
 
7320
7535
 
7321
7536
 
7537
+
7322
7538
  @radio-prefix-cls: ~'@{kd-prefix}-radio';
7323
7539
  @radio-square-prefix-cls: ~'@{radio-prefix-cls}-square';
7324
7540
  @radio-button-prefix-cls: ~'@{radio-prefix-cls}-button';
@@ -7328,6 +7544,7 @@ textarea {
7328
7544
  // 默认类型(单选项)
7329
7545
  .@{radio-prefix-cls} {
7330
7546
  .reset-component();
7547
+ .ellipsis();
7331
7548
 
7332
7549
  // 默认状态
7333
7550
  position: relative;
@@ -7383,7 +7600,7 @@ textarea {
7383
7600
  // 悬停状态
7384
7601
  &:hover {
7385
7602
 
7386
- // color: @radio-color-theme;
7603
+ color: @radio-color-theme;
7387
7604
  &::before {
7388
7605
  border-color: @radio-color-theme;
7389
7606
  }
@@ -7432,6 +7649,14 @@ textarea {
7432
7649
  background-color: @radio-color-disabled;
7433
7650
  animation: none;
7434
7651
  }
7652
+
7653
+ &.@{radio-prefix-cls}-checked {
7654
+ color: @radio-font-color;
7655
+ }
7656
+ }
7657
+
7658
+ &-text {
7659
+ line-height: 1.5;
7435
7660
  }
7436
7661
  }
7437
7662
 
@@ -7439,6 +7664,8 @@ textarea {
7439
7664
  .@{radio-square-prefix-cls} {
7440
7665
  .reset-component();
7441
7666
 
7667
+ .ellipsis();
7668
+
7442
7669
  // 默认状态
7443
7670
  position: relative;
7444
7671
  display: inline-block;
@@ -7530,6 +7757,14 @@ textarea {
7530
7757
  background-color: @radio-color-disabled;
7531
7758
  animation: none;
7532
7759
  }
7760
+
7761
+ &.@{radio-square-prefix-cls}-checked {
7762
+ color: @radio-font-color;
7763
+ }
7764
+ }
7765
+
7766
+ &-text {
7767
+ line-height: 1.5;
7533
7768
  }
7534
7769
  }
7535
7770
 
@@ -7643,6 +7878,12 @@ textarea {
7643
7878
  // background-color: @radio-color-background-disabled;
7644
7879
  cursor: not-allowed;
7645
7880
  }
7881
+
7882
+ &-text {
7883
+ .ellipsis();
7884
+ display: block;
7885
+ line-height: 1.5;
7886
+ }
7646
7887
  }
7647
7888
 
7648
7889
 
@@ -7667,14 +7908,14 @@ textarea {
7667
7908
  @radio-border-width: var(~'@{radio-prefix}-radius-border-width',1px);
7668
7909
 
7669
7910
  // sizing
7670
- @radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',13px);//单选图标大小
7911
+ @radio-circle-size:var(~'@{radio-prefix}-square-sizing-width-height',14px);//单选图标大小
7671
7912
  @radio-square-height: var(~'@{radio-prefix}-square-sizing-height',32px);//单选框 高度
7672
7913
 
7673
7914
  // spacing
7674
7915
  @radio-margin-right: var(~'@{radio-prefix}-spacing-margin-right',8px);
7675
- @radio-square-padding-vertical: var(~'@{radio-prefix}-square-spacing-padding-vertical',0px); //内间距 纵向
7676
- @radio-square-padding-horizontal: var(~'@{radio-prefix}-square-spacing-padding-horizontal',20px);//内间距 横向 /单选框 宽度
7677
- @radio-padding-left: var(~'@{radio-prefix}-spacing-padding-left',6px);//图标与文字间距
7916
+ @radio-square-padding-vertical: var(~'@{radio-prefix}-square-spacing-padding-vertical',6px); //内间距 纵向
7917
+ @radio-square-padding-horizontal: var(~'@{radio-prefix}-square-spacing-padding-horizontal',12px);//内间距 横向 /单选框 宽度
7918
+ @radio-padding-left: var(~'@{radio-prefix}-spacing-padding-left',4px);//图标与文字间距
7678
7919
 
7679
7920
 
7680
7921
 
@@ -7763,19 +8004,19 @@ textarea {
7763
8004
  @rate-prefix: '--@{kd-prefix}-c-rate';
7764
8005
 
7765
8006
  // color
7766
- @rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #fdc200);
7767
- @rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #d9d9d9);
8007
+ @rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #FEC104);
8008
+ @rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #E5E5E5);
7768
8009
 
7769
8010
  // font
7770
- @rate-small-font-size: var(~'@{rate-prefix}-font-size-small', @font-size-small);
7771
- @rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', @font-size-middle);
7772
- @rate-large-font-size: var(~'@{rate-prefix}-font-size-large', @font-size-large);
8011
+ @rate-small-font-size: var(~'@{rate-prefix}-font-size-small', 12px);
8012
+ @rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', 16px);
8013
+ @rate-large-font-size: var(~'@{rate-prefix}-font-size-large', 20px);
7773
8014
 
7774
8015
  // motion
7775
8016
  @rate-transition-duration: var(~'@{rate-prefix}-motion-duration', @duration-promptly);
7776
8017
 
7777
8018
  // spacing
7778
- @rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 10px);
8019
+ @rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 8px);
7779
8020
 
7780
8021
 
7781
8022
 
@@ -8321,440 +8562,446 @@ textarea {
8321
8562
  50% {
8322
8563
  transform: scale(1.5, 1.5);
8323
8564
  }
8324
-
8325
- 100% {
8326
- transform: scale(1, 1);
8565
+
8566
+ 100% {
8567
+ transform: scale(1, 1);
8568
+ }
8569
+ }
8570
+
8571
+
8572
+
8573
+ @search-prefix: '--@{kd-prefix}-c-search';
8574
+
8575
+ // sizing
8576
+ @search-icon-font-size: var(~'@{search-prefix}-icon-font-size', 16px);
8577
+ @search-small-width: var(~'@{search-prefix}-sizing-width-small', 200px);
8578
+ @search-middle-width: var(~'@{search-prefix}-sizing-width-middle', 260px);
8579
+ @search-large-width: var(~'@{search-prefix}-sizing-width-large', 320px);
8580
+ @quick-search-default-width: var(~'@{search-prefix}-sizing-width-default', 200px);
8581
+ @quick-search-default-height: var(~'@{search-prefix}-sizing-height-default', 24px);
8582
+ @quick-search-max-width: var(~'@{search-prefix}-sizing-width-max', 400px);
8583
+ @search-panel-width: var(~'@{search-prefix}-panel-sizing-width', 800px);
8584
+ @search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
8585
+ @quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
8586
+ @search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
8587
+
8588
+ // color
8589
+ @search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
8590
+ @search-color-theme: var(~'@{search-prefix}-color-theme', @color-theme);
8591
+ @search-hover-color: var(~'@{search-prefix}-color-hover', #5582F3);
8592
+ @quick-search-input-color: var(~'@{search-prefix}-input-color-text', @color-disabled);
8593
+ @quick-search-border-bottom-color: var(~'@{search-prefix}-color-border', @color-border-strong-2);
8594
+ @quick-search-dropdown-desc-color: var(~'@{search-prefix}-dropdown-desc-color-text', #999999);
8595
+ @quick-search-npl-border-color: var(~'@{search-prefix}-npl-color-border', #D8D8D8);
8596
+ @quick-search-selection-placeholder-color: var(~'@{search-prefix}-selection-placeholder-color-text', #B2B2B2);
8597
+ @search-panel-hover-color: var(~'@{search-prefix}-panel-color-hover', #597cfc);
8598
+ @search-panel-border-color: var(~'@{search-prefix}-panel-color-border', #E6E8ED);
8599
+ @search-end-color: var(~'@{search-prefix}-color-end', @color-end);
8600
+ @search-color-text-primary: var(~'@{search-prefix}-color-text-primary', @color-text-primary);
8601
+ @search-color-text-secondary: var(~'@{search-prefix}-color-text-secondary', @color-text-secondary);
8602
+ @search-color-text-third: var(~'@{search-prefix}-color-text-third', @color-text-third);
8603
+ @search-dot-color-first: var(~'@{search-prefix}-dot-color-first', @color-logo-1);
8604
+ @search-dot-color-second: var(~'@{search-prefix}-dot-color-second', @color-logo-2);
8605
+ @search-dot-color-third: var(~'@{search-prefix}-dot-color-third', @color-logo-3);
8606
+ @search-dot-color-fourth: var(~'@{search-prefix}-dot-color-fourth', @color-logo-4);
8607
+ @search-placeholder-color-text: var(~'@{search-prefix}-placeholder-color-text', #B2B2B2);
8608
+ @quick-search-selected-tags-del-hover-bg: var(~'@{search-prefix}-selected-tags-del-color-background-hover', #999999);
8609
+ @quick-search-dropdown-selected-bg: var(~'@{search-prefix}-dropdown-tags-color-background-selected', #F2F6FF);
8610
+ @quick-search-dropdown-hover-bg: var(~'@{search-prefix}-dropdown-color-background-hover', @color-hover);
8611
+ @search-panel-hover-bg: var(~'@{search-prefix}-panel-color-background-hover', #eef3fe);
8612
+ @search-color-background: var(~'@{search-prefix}-color-background', @color-background);
8613
+ @search-disabled-contain-bg: var(~'@{search-prefix}-color-background-contain-disabled', @color-background-contain-disabled);
8614
+
8615
+ // font
8616
+ @quick-search-dropdown-font-size: var(~'@{search-prefix}-dropdown-font-size', 12px);
8617
+ @search-middle-font-size: var(~'@{search-prefix}-font-size-middle', @font-size-middle);
8618
+ @search-small-font-size: var(~'@{search-prefix}-font-size-small', @font-size-small);
8619
+ @search-placeholder-font-size: var(~'@{search-prefix}-placeholder-font-size', 12px);
8620
+ @search-dropdown-desc-font-size: var(~'@{search-prefix}-dropdown-desc-font-size', 12px);
8621
+ @search-input-font-size: var(~'@{search-prefix}-input-font-size', 12px);
8622
+
8623
+ // spacing
8624
+ @quick-search-dropdown-option-padding-horizontal: var(~'@{search-prefix}-dropdown-option-spacing-padding-horizontal', 12px);
8625
+
8626
+ // motion
8627
+ @search-transition-duration: var(~'@{search-prefix}-motion-duration', @duration-promptly);
8628
+
8629
+ // radius
8630
+ @search-radius-size: var(~'@{search-prefix}-radius-border', @radius-border);
8631
+
8632
+
8633
+
8634
+
8635
+ @select-prefix-cls: ~'@{kd-prefix}-select';
8636
+
8637
+ .@{select-prefix-cls} {
8638
+ position: relative;
8639
+ display: inline-block;
8640
+ box-sizing: border-box;
8641
+ background-color: transparent;
8642
+ cursor: pointer;
8643
+ margin: 0 8px 2px 0;
8644
+ vertical-align: middle;
8645
+
8646
+ &-selector:hover {
8647
+ .@{select-prefix-cls}-icon-active {
8648
+ color: #3761ca;
8649
+ }
8650
+ }
8651
+ &-visible {
8652
+ .@{select-prefix-cls}-icon-active {
8653
+ color: #3761ca;
8654
+ }
8655
+ }
8656
+
8657
+ &-icon {
8658
+ &-arrow {
8659
+ display: inline-flex;
8660
+ align-items: center;
8661
+ vertical-align: middle;
8662
+ &-up {
8663
+ transform: rotate(180deg);
8664
+ transition: transform calc(@transition-duration - 0.1s) @ease;
8665
+ }
8666
+
8667
+ &-down {
8668
+ transform: rotate(0deg);
8669
+ transition: transform calc(@transition-duration - 0.1s) @ease;
8670
+ }
8671
+
8672
+ &-focus {
8673
+ color: #3761ca;
8674
+ }
8675
+ }
8676
+
8677
+ &-clear {
8678
+ opacity: 0;
8679
+ transition: opacity 0.15s ease;
8680
+ &:hover {
8681
+ color: @select-g-color-border-hover;
8682
+ }
8683
+ }
8684
+ }
8685
+
8686
+ &-selection-search {
8687
+ position: absolute;
8688
+ top: 0;
8689
+ bottom: 0;
8690
+ left: 11px;
8691
+ &-input {
8692
+ opacity: 0;
8693
+ margin: 0;
8694
+ padding: 0;
8695
+ background: 0 0;
8696
+ border: none;
8697
+ outline: none;
8698
+ appearance: none;
8699
+ &:hover {
8700
+ cursor: pointer;
8701
+ }
8702
+ }
8703
+ }
8704
+
8705
+ &-focused {
8706
+ .focusColor();
8707
+ // border-bottom: 1px solid #5582F3 ;
8708
+ }
8709
+ &-placeholder {
8710
+ color: @select-placeholder-color;
8711
+ overflow: hidden;
8712
+ white-space: nowrap;
8713
+ text-overflow: ellipsis;
8714
+ }
8715
+
8716
+ &-borderless {
8717
+ border: none;
8718
+ }
8719
+
8720
+ &-underline {
8721
+ border-bottom: 1px solid @select-g-color-border;
8722
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
8723
+ border-bottom: 1px solid @select-g-color-border-hover;
8724
+ }
8725
+ }
8726
+
8727
+ &-bordered {
8728
+ border: 1px solid @select-border-g-color-border;
8729
+ padding-left: 8px !important;
8730
+ border-radius: 2px;
8731
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
8732
+ border: 1px solid @select-g-color-border-hover;
8733
+ }
8734
+
8735
+ .@{select-prefix-cls}-suffix {
8736
+ right: 10px;
8737
+ }
8738
+ }
8739
+
8740
+ &-wrapper {
8741
+ transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
8742
+ padding: 1px 28px 1px 0;
8743
+ max-width: 100%;
8744
+ color: #212121;
8745
+ display: flex;
8746
+ flex-wrap: wrap;
8747
+ align-items: center;
8748
+ cursor: pointer;
8749
+ box-sizing: border-box;
8750
+ overflow-y: auto;
8751
+ overflow-x: hidden;
8752
+ }
8753
+
8754
+ &-dropdown {
8755
+ display: block;
8756
+ left: 0;
8757
+ z-index: @select-z-index;
8758
+ box-sizing: border-box;
8759
+ padding: 4px 0; // update
8760
+ margin: 0;
8761
+ overflow: auto;
8762
+ font-size: @select-list-font-size; // update
8763
+ font-variant: initial;
8764
+ background-color: @select-dropdown-bg;
8765
+ border-radius: @select-g-radius-border;
8766
+ outline: none;
8767
+ box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
8768
+
8769
+ &-scroll {
8770
+ overflow-y: auto;
8771
+ }
8772
+
8773
+ &-empty {
8774
+ padding: 5px 12px;
8775
+ }
8776
+
8777
+ // 搜索框
8778
+ &-search {
8779
+ padding: 5px 6px;
8780
+ &-hidden {
8781
+ display: none;
8782
+ }
8783
+ }
8784
+ }
8785
+
8786
+ // 下拉列表选项
8787
+ &-item {
8788
+ .item();
8789
+ cursor: pointer;
8790
+ transition: background 0.3s ease;
8791
+
8792
+ &-option {
8793
+ display: flex;
8794
+ min-width: 75px;
8795
+
8796
+ &-content {
8797
+ display: flex;
8798
+ align-items: center;
8799
+ flex: auto;
8800
+ .over();
8801
+ }
8802
+
8803
+ &:hover:not(&-selected):not(&-disabled) {
8804
+ background-color: @select-item-active-bg;
8805
+ }
8806
+
8807
+ &-active:not(&-disabled) {
8808
+ background-color: @select-item-active-bg;
8809
+ }
8810
+
8811
+ &-selected:not(&-disabled) {
8812
+ color: @select-item-selected-color;
8813
+ // font-weight: @select-item-selected-font-weight;
8814
+ background-color: @select-item-selected-bg;
8815
+ }
8816
+
8817
+ &-disabled {
8818
+ color: @select-g-item-text-color-disabled;
8819
+ cursor: not-allowed;
8820
+ background-color: @select-disabled-option-bg;
8821
+ }
8822
+ }
8823
+ }
8824
+
8825
+ // 选择器框大小
8826
+ &-size-small {
8827
+ .select-input-size(@select-small-height, @select-small-height, @select-small-line-height, @select-small-font-size);
8828
+ }
8829
+
8830
+ &-size-middle {
8831
+ .select-input-size(@select-middle-height, @select-middle-height, @select-middle-line-height, @select-middle-font-size);
8832
+ }
8833
+
8834
+ &-size-large {
8835
+ .select-input-size(@select-large-height, @select-large-height, @select-large-line-height, @select-large-font-size);
8836
+ }
8837
+
8838
+ &-suffix {
8839
+ right: 0;
8840
+ position: absolute;
8841
+ display: flex;
8842
+ flex: 0;
8843
+ flex-wrap: wrap;
8844
+ align-items: center;
8845
+ justify-content: center;
8846
+ margin-left: 8px;
8847
+ }
8848
+ &-single {
8849
+ &-focused {
8850
+ .focusColor();
8851
+ }
8852
+ &-disabled {
8853
+ background-color: @disabled-contain-bg;
8854
+ color: @disabled-color;
8855
+ &:hover {
8856
+ cursor: not-allowed;
8857
+ }
8858
+ }
8859
+ &:hover .@{select-prefix-cls}-icon-clear {
8860
+ opacity: 1;
8861
+ }
8862
+ &-text {
8863
+ color: #666;
8864
+ .over();
8865
+ }
8866
+ &-disabled-text {
8867
+ color: @disabled-color;
8868
+ }
8327
8869
  }
8328
- }
8329
8870
 
8871
+ .@{select-prefix-cls}-selection-item {
8872
+ // position: relative;
8873
+ display: inline-flex;
8874
+ box-sizing: border-box;
8875
+ align-items: center;
8876
+ vertical-align: middle;
8877
+ max-width: 100%;
8878
+ height: 20px;
8879
+ line-height: 20px;
8880
+ margin: 2px 8px 2px 0;
8881
+ // margin: 2px 4px 2px 0;
8882
+ // margin-right: 4px;
8883
+ // padding-left: 8px;
8884
+ // background: #fafafa;
8885
+ // border: 1px solid #d9d9d9;
8886
+ // border-radius: 2px;
8887
+ cursor: default;
8888
+ user-select: none;
8889
+ &-small {
8890
+ height: 18px;
8891
+ line-height: 18px;
8892
+ font-size: 12px;
8893
+ }
8330
8894
 
8895
+ &-middle {
8896
+ font-size: 12px;
8897
+ height: 18px;
8898
+ line-height: 18px;
8899
+ }
8331
8900
 
8332
- @search-prefix: '--@{kd-prefix}-c-search';
8901
+ &-large {
8902
+ font-size: 14px;
8903
+ line-height: 22px;
8904
+ height: 22px;
8905
+ }
8333
8906
 
8334
- // sizing
8335
- @search-icon-font-size: var(~'@{search-prefix}-icon-font-size', 16px);
8336
- @search-small-width: var(~'@{search-prefix}-sizing-width-small', 200px);
8337
- @search-middle-width: var(~'@{search-prefix}-sizing-width-middle', 260px);
8338
- @search-large-width: var(~'@{search-prefix}-sizing-width-large', 320px);
8339
- @quick-search-default-width: var(~'@{search-prefix}-sizing-width-default', 200px);
8340
- @quick-search-default-height: var(~'@{search-prefix}-sizing-height-default', 24px);
8341
- @quick-search-max-width: var(~'@{search-prefix}-sizing-width-max', 400px);
8342
- @search-panel-width: var(~'@{search-prefix}-panel-sizing-width', 800px);
8343
- @search-panel-height: var(~'@{search-prefix}-panel-sizing-height', 60px);
8344
- @quick-search-dropdown-option-height: var(~'@{search-prefix}-dropdown-option-sizing-height', 32px);
8345
- @search-sizing-border-width: var(~'@{search-prefix}-sizing-border-width', 1px);
8907
+ &-content {
8908
+ display: inline-flex;
8909
+ align-items: center;
8910
+ vertical-align: middle;
8911
+ padding: 0 7px;
8912
+ overflow: hidden;
8913
+ white-space: nowrap;
8914
+ text-overflow: ellipsis;
8915
+ border: 1px solid #ccc;
8916
+ color: #212121;
8917
+ }
8918
+ // &-remove {
8919
+ // text-align: center;
8920
+ // text-transform: none;
8921
+ // display: inline-flex;
8922
+ // color: rgba(0, 0, 0, 0.45);
8923
+ // line-height: inherit;
8924
+ // cursor: pointer;
8925
+ // &:hover {
8926
+ // color: #212121;
8927
+ // }
8928
+ // }
8929
+ &-span {
8930
+ position: relative;
8931
+ margin-left: 0.5px;
8932
+ box-sizing: border-box;
8933
+ }
8934
+ &-input {
8935
+ // opacity: 0;
8936
+ cursor: text;
8937
+ margin: 0;
8938
+ padding: 0;
8939
+ background: 0 0;
8940
+ border: none;
8941
+ outline: none;
8942
+ appearance: none;
8943
+ width: 100%;
8944
+ min-width: 20px;
8945
+ }
8946
+ }
8346
8947
 
8347
- // color
8348
- @search-icon-color: var(~'@{search-prefix}-icon-color', #B2B2B2);
8349
- @search-color-theme: var(~'@{search-prefix}-color-theme', @color-theme);
8350
- @search-hover-color: var(~'@{search-prefix}-color-hover', #5582F3);
8351
- @quick-search-input-color: var(~'@{search-prefix}-input-color-text', @color-disabled);
8352
- @quick-search-border-bottom-color: var(~'@{search-prefix}-color-border', @color-border-strong-2);
8353
- @quick-search-dropdown-desc-color: var(~'@{search-prefix}-dropdown-desc-color-text', #999999);
8354
- @quick-search-npl-border-color: var(~'@{search-prefix}-npl-color-border', #D8D8D8);
8355
- @quick-search-selection-placeholder-color: var(~'@{search-prefix}-selection-placeholder-color-text', #B2B2B2);
8356
- @search-panel-hover-color: var(~'@{search-prefix}-panel-color-hover', #597cfc);
8357
- @search-panel-border-color: var(~'@{search-prefix}-panel-color-border', #E6E8ED);
8358
- @search-end-color: var(~'@{search-prefix}-color-end', @color-end);
8359
- @search-color-text-primary: var(~'@{search-prefix}-color-text-primary', @color-text-primary);
8360
- @search-color-text-secondary: var(~'@{search-prefix}-color-text-secondary', @color-text-secondary);
8361
- @search-color-text-third: var(~'@{search-prefix}-color-text-third', @color-text-third);
8362
- @search-dot-color-first: var(~'@{search-prefix}-dot-color-first', @color-logo-1);
8363
- @search-dot-color-second: var(~'@{search-prefix}-dot-color-second', @color-logo-2);
8364
- @search-dot-color-third: var(~'@{search-prefix}-dot-color-third', @color-logo-3);
8365
- @search-dot-color-fourth: var(~'@{search-prefix}-dot-color-fourth', @color-logo-4);
8366
- @search-placeholder-color-text: var(~'@{search-prefix}-placeholder-color-text', #B2B2B2);
8367
- @quick-search-selected-tags-del-hover-bg: var(~'@{search-prefix}-selected-tags-del-color-background-hover', #999999);
8368
- @quick-search-dropdown-selected-bg: var(~'@{search-prefix}-dropdown-tags-color-background-selected', #F2F6FF);
8369
- @quick-search-dropdown-hover-bg: var(~'@{search-prefix}-dropdown-color-background-hover', @color-hover);
8370
- @search-panel-hover-bg: var(~'@{search-prefix}-panel-color-background-hover', #eef3fe);
8371
- @search-color-background: var(~'@{search-prefix}-color-background', @color-background);
8372
- @search-disabled-contain-bg: var(~'@{search-prefix}-color-background-contain-disabled', @color-background-contain-disabled);
8948
+ // 多选
8949
+ &-multiple {
8950
+ &-disabled {
8951
+ cursor: not-allowed;
8952
+ background-color: @disabled-contain-bg;
8953
+ color: @disabled-color;
8954
+ }
8955
+ &:hover .@{select-prefix-cls}-icon-clear {
8956
+ opacity: 1;
8957
+ }
8958
+ &-selector {
8959
+ position: relative;
8960
+ cursor: text;
8961
+ padding-right: 24px;
8962
+ display: flex;
8963
+ flex-wrap: wrap;
8964
+ align-items: center;
8965
+ }
8966
+ .@{select-prefix-cls}-wrapper {
8967
+ &:hover:not(.@{select-prefix-cls}-multiple-disabled) {
8968
+ border-bottom: 1px solid @select-g-color-border-hover;
8969
+ }
8970
+ }
8373
8971
 
8374
- // font
8375
- @quick-search-dropdown-font-size: var(~'@{search-prefix}-dropdown-font-size', 12px);
8376
- @search-middle-font-size: var(~'@{search-prefix}-font-size-middle', @font-size-middle);
8377
- @search-small-font-size: var(~'@{search-prefix}-font-size-small', @font-size-small);
8378
- @search-placeholder-font-size: var(~'@{search-prefix}-placeholder-font-size', 12px);
8379
- @search-dropdown-desc-font-size: var(~'@{search-prefix}-dropdown-desc-font-size', 12px);
8380
- @search-input-font-size: var(~'@{search-prefix}-input-font-size', 12px);
8972
+ &-footer {
8973
+ color: @select-font-color;
8974
+ display: inline-flex;
8975
+ align-items: center;
8976
+ width: 100%;
8977
+ padding: 0 12px;
8978
+ height: 32px;
8979
+ line-height: 32px;
8980
+ border-top: 1px solid #d9d9d9;
8981
+ box-sizing: border-box;
8381
8982
 
8382
- // spacing
8383
- @quick-search-dropdown-option-padding-horizontal: var(~'@{search-prefix}-dropdown-option-spacing-padding-horizontal', 12px);
8983
+ &-hadSelected {
8984
+ color: #999999;
8985
+ padding-left: 12px;
8986
+ > span {
8987
+ color: @select-footer-g-text-color-selected;
8988
+ padding: 0 2px;
8989
+ }
8990
+ }
8991
+ }
8992
+ }
8993
+
8994
+ &.topLeft.hidden,
8995
+ &.bottomLeft.hidden,
8996
+ &.topRight.hidden,
8997
+ &.bottomRight.hidden {
8998
+ opacity: 0;
8999
+ visibility: hidden;
9000
+ transition: all calc(@transition-duration - 0.1s) @ease;
9001
+ }
9002
+ }
8384
9003
 
8385
- // motion
8386
- @search-transition-duration: var(~'@{search-prefix}-motion-duration', @duration-promptly);
8387
9004
 
8388
- // radius
8389
- @search-radius-size: var(~'@{search-prefix}-radius-border', @radius-border);
8390
-
8391
-
8392
-
8393
-
8394
- @select-prefix-cls: ~'@{kd-prefix}-select';
8395
-
8396
- .@{select-prefix-cls} {
8397
- position: relative;
8398
- display: inline-block;
8399
- box-sizing: border-box;
8400
- background-color: transparent;
8401
- cursor: pointer;
8402
- margin: 0 8px 2px 0;
8403
- vertical-align: middle;
8404
-
8405
- &-selector:hover {
8406
- .@{select-prefix-cls}-icon-active {
8407
- color: #3761ca;
8408
- }
8409
- }
8410
- &-visible {
8411
- .@{select-prefix-cls}-icon-active {
8412
- color: #3761ca;
8413
- }
8414
- }
8415
-
8416
- &-icon {
8417
- &-arrow {
8418
- display: inline-flex;
8419
- align-items: center;
8420
- vertical-align: middle;
8421
- &-up {
8422
- transform: rotate(180deg);
8423
- transition: transform calc(@transition-duration - 0.1s) @ease;
8424
- }
8425
-
8426
- &-down {
8427
- transform: rotate(0deg);
8428
- transition: transform calc(@transition-duration - 0.1s) @ease;
8429
- }
8430
-
8431
- &-focus {
8432
- color: #3761ca;
8433
- }
8434
- }
8435
-
8436
- &-clear {
8437
- opacity: 0;
8438
- transition: opacity 0.15s ease;
8439
- &:hover {
8440
- color: @select-g-color-border-hover;
8441
- }
8442
- }
8443
- }
8444
-
8445
- &-selection-search {
8446
- position: absolute;
8447
- top: 0;
8448
- bottom: 0;
8449
- left: 11px;
8450
- &-input {
8451
- opacity: 0;
8452
- margin: 0;
8453
- padding: 0;
8454
- background: 0 0;
8455
- border: none;
8456
- outline: none;
8457
- appearance: none;
8458
- &:hover {
8459
- cursor: pointer;
8460
- }
8461
- }
8462
- }
8463
-
8464
- &-focused {
8465
- .focusColor();
8466
- // border-bottom: 1px solid #5582F3 ;
8467
- }
8468
- &-placeholder {
8469
- color: @select-placeholder-color;
8470
- overflow: hidden;
8471
- white-space: nowrap;
8472
- text-overflow: ellipsis;
8473
- }
8474
-
8475
- &-borderless {
8476
- border: none;
8477
- }
8478
-
8479
- &-underline {
8480
- border-bottom: 1px solid @select-g-color-border;
8481
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
8482
- border-bottom: 1px solid @select-g-color-border-hover;
8483
- }
8484
- }
8485
-
8486
- &-bordered {
8487
- border: 1px solid @select-border-g-color-border;
8488
- padding-left: 8px !important;
8489
- border-radius: 2px;
8490
- &:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
8491
- border: 1px solid @select-g-color-border-hover;
8492
- }
8493
- }
8494
-
8495
- &-wrapper {
8496
- transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
8497
- padding: 1px 28px 1px 0;
8498
- max-width: 100%;
8499
- color: #212121;
8500
- display: flex;
8501
- flex-wrap: wrap;
8502
- align-items: center;
8503
- cursor: pointer;
8504
- box-sizing: border-box;
8505
- overflow-y: auto;
8506
- overflow-x: hidden;
8507
- }
8508
-
8509
- &-dropdown {
8510
- display: block;
8511
- left: 0;
8512
- z-index: @select-z-index;
8513
- box-sizing: border-box;
8514
- padding: 4px 0; // update
8515
- margin: 0;
8516
- overflow: auto;
8517
- font-size: @select-list-font-size; // update
8518
- font-variant: initial;
8519
- background-color: @select-dropdown-bg;
8520
- border-radius: @select-g-radius-border;
8521
- outline: none;
8522
- box-shadow: 0 4px 10px 0 rgba(0, 0, 0, 0.2);
8523
-
8524
- &-scroll {
8525
- overflow-y: auto;
8526
- }
8527
-
8528
- &-empty {
8529
- padding: 5px 12px;
8530
- }
8531
-
8532
- // 搜索框
8533
- &-search {
8534
- padding: 5px 6px;
8535
- &-hidden {
8536
- display: none;
8537
- }
8538
- }
8539
- }
8540
-
8541
- // 下拉列表选项
8542
- &-item {
8543
- .item();
8544
- cursor: pointer;
8545
- transition: background 0.3s ease;
8546
-
8547
- &-option {
8548
- display: flex;
8549
- min-width: 75px;
8550
-
8551
- &-content {
8552
- flex: auto;
8553
- .over();
8554
- }
8555
-
8556
- &:hover:not(&-selected):not(&-disabled) {
8557
- background-color: @select-item-active-bg;
8558
- }
8559
-
8560
- &-active:not(&-disabled) {
8561
- background-color: @select-item-active-bg;
8562
- }
8563
-
8564
- &-selected:not(&-disabled) {
8565
- color: @select-item-selected-color;
8566
- // font-weight: @select-item-selected-font-weight;
8567
- background-color: @select-item-selected-bg;
8568
- }
8569
-
8570
- &-disabled {
8571
- color: @select-g-item-text-color-disabled;
8572
- cursor: not-allowed;
8573
- background-color: @select-disabled-option-bg;
8574
- }
8575
- }
8576
- }
8577
-
8578
- // 选择器框大小
8579
- &-size-small {
8580
- .select-input-size(@select-small-height, @select-small-height, @select-small-line-height, @select-small-font-size);
8581
- }
8582
-
8583
- &-size-middle {
8584
- .select-input-size(@select-middle-height, @select-middle-height, @select-middle-line-height, @select-middle-font-size);
8585
- }
8586
-
8587
- &-size-large {
8588
- .select-input-size(@select-large-height, @select-large-height, @select-large-line-height, @select-large-font-size);
8589
- }
8590
-
8591
- &-suffix {
8592
- right: 10px;
8593
- position: absolute;
8594
- display: flex;
8595
- flex: 0;
8596
- flex-wrap: wrap;
8597
- align-items: center;
8598
- justify-content: center;
8599
- margin-left: 4px;
8600
- }
8601
- &-single {
8602
- &-focused {
8603
- .focusColor();
8604
- }
8605
- &-disabled {
8606
- background-color: @disabled-contain-bg;
8607
- color: @disabled-color;
8608
- &:hover {
8609
- cursor: not-allowed;
8610
- }
8611
- }
8612
- &:hover .@{select-prefix-cls}-icon-clear {
8613
- opacity: 1;
8614
- }
8615
- &-text {
8616
- color: #666;
8617
- .over();
8618
- }
8619
- &-disabled-text {
8620
- color: @disabled-color;
8621
- }
8622
- }
8623
-
8624
- .@{select-prefix-cls}-selection-item {
8625
- // position: relative;
8626
- display: inline-flex;
8627
- box-sizing: border-box;
8628
- align-items: center;
8629
- vertical-align: middle;
8630
- max-width: 100%;
8631
- height: 20px;
8632
- line-height: 20px;
8633
- margin: 2px 8px 2px 0;
8634
- // margin: 2px 4px 2px 0;
8635
- // margin-right: 4px;
8636
- // padding-left: 8px;
8637
- // background: #fafafa;
8638
- // border: 1px solid #d9d9d9;
8639
- // border-radius: 2px;
8640
- cursor: default;
8641
- user-select: none;
8642
- &-small {
8643
- height: 18px;
8644
- line-height: 18px;
8645
- font-size: 12px;
8646
- }
8647
-
8648
- &-middle {
8649
- font-size: 12px;
8650
- height: 18px;
8651
- line-height: 18px;
8652
- }
8653
-
8654
- &-large {
8655
- font-size: 14px;
8656
- line-height: 22px;
8657
- height: 22px;
8658
- }
8659
-
8660
- &-content {
8661
- display: inline-flex;
8662
- align-items: center;
8663
- vertical-align: middle;
8664
- padding: 0 7px;
8665
- overflow: hidden;
8666
- white-space: nowrap;
8667
- text-overflow: ellipsis;
8668
- border: 1px solid #ccc;
8669
- color: #212121;
8670
- }
8671
- // &-remove {
8672
- // text-align: center;
8673
- // text-transform: none;
8674
- // display: inline-flex;
8675
- // color: rgba(0, 0, 0, 0.45);
8676
- // line-height: inherit;
8677
- // cursor: pointer;
8678
- // &:hover {
8679
- // color: #212121;
8680
- // }
8681
- // }
8682
- &-span {
8683
- position: relative;
8684
- margin-left: 0.5px;
8685
- box-sizing: border-box;
8686
- }
8687
- &-input {
8688
- // opacity: 0;
8689
- cursor: text;
8690
- margin: 0;
8691
- padding: 0;
8692
- background: 0 0;
8693
- border: none;
8694
- outline: none;
8695
- appearance: none;
8696
- width: 100%;
8697
- min-width: 20px;
8698
- }
8699
- }
8700
-
8701
- // 多选
8702
- &-multiple {
8703
- &-disabled {
8704
- cursor: not-allowed;
8705
- background-color: @disabled-contain-bg;
8706
- color: @disabled-color;
8707
- }
8708
- &:hover .@{select-prefix-cls}-icon-clear {
8709
- opacity: 1;
8710
- }
8711
- &-selector {
8712
- position: relative;
8713
- cursor: text;
8714
- padding-right: 24px;
8715
- display: flex;
8716
- flex-wrap: wrap;
8717
- align-items: center;
8718
- }
8719
- .@{select-prefix-cls}-wrapper {
8720
- &:hover:not(.@{select-prefix-cls}-multiple-disabled) {
8721
- border-bottom: 1px solid @select-g-color-border-hover;
8722
- }
8723
- }
8724
-
8725
- &-footer {
8726
- color: @select-font-color;
8727
- display: inline-flex;
8728
- align-items: center;
8729
- width: 100%;
8730
- padding: 0 12px;
8731
- height: 32px;
8732
- line-height: 32px;
8733
- border-top: 1px solid #d9d9d9;
8734
- box-sizing: border-box;
8735
-
8736
- &-hadSelected {
8737
- color: #999999;
8738
- padding-left: 12px;
8739
- > span {
8740
- color: @select-footer-g-text-color-selected;
8741
- padding: 0 2px;
8742
- }
8743
- }
8744
- }
8745
- }
8746
-
8747
- &.topLeft.hidden,
8748
- &.bottomLeft.hidden,
8749
- &.topRight.hidden,
8750
- &.bottomRight.hidden {
8751
- opacity: 0;
8752
- visibility: hidden;
8753
- transition: all calc(@transition-duration - 0.1s) @ease;
8754
- }
8755
- }
8756
-
8757
-
8758
9005
 
8759
9006
 
8760
9007
 
@@ -8846,7 +9093,7 @@ textarea {
8846
9093
  // color
8847
9094
  @select-dropdown-bg: var(~'@{select-custom-prefix}-dropdown-color-background', @color-background);
8848
9095
  @select-disabled-option-bg: var(~'@{select-custom-prefix}-item-color-background-disabled', @color-background-contain-disabled);
8849
- @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', @color-hover);
9096
+ @select-item-active-bg: var(~'@{select-custom-prefix}-color-background', #f5f5f5);
8850
9097
  @select-item-selected-bg: var(~'@{select-custom-prefix}-color-background-selected', @color-theme-3);
8851
9098
  @select-g-color-border: var(~'@{select-custom-prefix}-color-border', @color-input);
8852
9099
  @select-g-color-border-foucs: var(~'@{select-custom-prefix}-color-border-foucs', @color-theme);
@@ -8855,7 +9102,7 @@ textarea {
8855
9102
  @select-placeholder-color: var(~'@{select-custom-prefix}-placeholder-color-text', @color-text-third);
8856
9103
  @select-item-selected-color: var(~'@{select-custom-prefix}-item-color-text-selected', @color-theme);
8857
9104
  @select-font-color: var(~'@{select-custom-prefix}-footer-color-text', @color-text-primary);
8858
- @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', @color-text-link);
9105
+ @select-footer-g-text-color-selected: var(~'@{select-custom-prefix}-footer-color-text-selected', #0e5fd8);
8859
9106
  @select-g-item-text-color-disabled: var(~'@{select-custom-prefix}-item-color-text-disabled', @color-disabled);
8860
9107
 
8861
9108
  // font
@@ -9680,7 +9927,7 @@ textarea {
9680
9927
  @stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
9681
9928
  @stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
9682
9929
  @stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
9683
- @stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', #f6f7f9);
9930
+ @stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', transparent);
9684
9931
 
9685
9932
  // font
9686
9933
  @stepper-input-font-size: var(~'@{stepper-prefix}-input-font-size', 12px);
@@ -9702,16 +9949,19 @@ textarea {
9702
9949
 
9703
9950
 
9704
9951
 
9705
-
9706
9952
  @steps-prefix-cls: ~'@{kd-prefix}-steps';
9707
9953
 
9708
9954
  .@{steps-prefix-cls} {
9709
9955
  display: flex;
9710
9956
  justify-content: space-between;
9711
- align-items: baseline;
9712
9957
 
9713
- &-iconSize {
9714
- // font-size: @steps-font-size;
9958
+ .@{steps-prefix-cls}-icon {
9959
+ border: 2px solid;
9960
+ padding-top: 1px;
9961
+ }
9962
+
9963
+ .@{kd-prefix}icon-exclamatory {
9964
+ font-size: 30px;
9715
9965
  }
9716
9966
 
9717
9967
  &-item {
@@ -9732,25 +9982,21 @@ textarea {
9732
9982
  }
9733
9983
 
9734
9984
  &-clickable&-wait {
9735
-
9736
9985
  .@{steps-prefix-cls}-icon,
9737
9986
  .@{steps-prefix-cls}-item-title {
9738
9987
  transition: all @steps-duration-promptly;
9739
9988
  }
9740
9989
 
9741
-
9742
9990
  &:hover {
9743
9991
  .@{steps-prefix-cls}-icon {
9744
- // background-color: @steps-color-background-wait-icon-hover;
9745
-
9746
9992
  background-color: @steps-color-white;
9747
- color: @steps-color-completed;
9748
- border: 2px solid @steps-color-completed;
9993
+ color: @steps-color-hover;
9994
+ border-color: @steps-color-hover;
9749
9995
  }
9750
9996
 
9751
9997
  .@{steps-prefix-cls}-item-title,
9752
9998
  .@{steps-prefix-cls}-item-description {
9753
- color: @steps-color-completed;
9999
+ color: @steps-color-hover;
9754
10000
  }
9755
10001
  }
9756
10002
  }
@@ -9783,11 +10029,12 @@ textarea {
9783
10029
  content: '';
9784
10030
  width: 100%;
9785
10031
  height: @steps-line-sizing-height;
9786
- background-color: @steps-color-wait;
10032
+ border-bottom: 1px dashed @steps-color-wait;
10033
+ border-left: 1px dashed @steps-color-wait;
9787
10034
  position: absolute;
9788
10035
  left: 50%;
9789
10036
  top: calc(50% - @steps-line-sizing-height / 2);
9790
- transition: width @steps-duration-promptly @steps-transition-fn, background-color @steps-duration-promptly @steps-transition-fn
10037
+ transition: width @steps-duration-promptly cubic-bezier(0.48, 0.04, 0.52, 0.96), background-color @steps-duration-promptly cubic-bezier(0.48, 0.04, 0.52, 0.96)
9791
10038
  }
9792
10039
 
9793
10040
  &:last-child {
@@ -9804,7 +10051,6 @@ textarea {
9804
10051
  justify-content: center;
9805
10052
  align-items: center;
9806
10053
 
9807
- // background-color:@steps-color-white;
9808
10054
  .@{steps-prefix-cls}-icon {
9809
10055
  width: @steps-icon-sizing-width;
9810
10056
  height: @steps-icon-sizing-width;
@@ -9815,7 +10061,7 @@ textarea {
9815
10061
  color: @steps-color-wait;
9816
10062
  font-size: calc(@steps-icon-sizing-width - 13px);
9817
10063
  border-radius: 50%;
9818
- border: 2px solid @steps-color-wait;
10064
+ border-color: @steps-color-wait;
9819
10065
  box-sizing: border-box;
9820
10066
  }
9821
10067
  }
@@ -9836,7 +10082,6 @@ textarea {
9836
10082
  }
9837
10083
 
9838
10084
  .@{steps-prefix-cls}-item-description {
9839
-
9840
10085
  line-height: 20px;
9841
10086
  font-size: @steps-font-size;
9842
10087
  color: @steps-color-wait;
@@ -9845,19 +10090,21 @@ textarea {
9845
10090
  word-break: break-word;
9846
10091
  display: -webkit-box;
9847
10092
  -webkit-box-orient: vertical;
9848
-
9849
10093
  width: @steps-vertical-description-sizing-width;
9850
-
9851
10094
  }
9852
10095
  }
9853
10096
 
9854
10097
  &-process {
10098
+ color: @steps-color-hover;
10099
+
9855
10100
  .@{steps-prefix-cls}-icon {
9856
- background-color: @steps-color-background-process-icon;
10101
+ background-color: @steps-color-white;
10102
+ color: @steps-color-hover;
10103
+ border-color: @steps-color-hover;
9857
10104
  }
9858
10105
 
9859
- .@{steps-prefix-cls}-item-title {
9860
- color: @steps-color-wait;
10106
+ .@{steps-prefix-cls}-item-title, .@{steps-prefix-cls}-item-description {
10107
+ color: @steps-color-hover;
9861
10108
  }
9862
10109
  }
9863
10110
 
@@ -9873,12 +10120,11 @@ textarea {
9873
10120
  .@{steps-prefix-cls}-icon {
9874
10121
  background-color: @steps-color-white;
9875
10122
  color: @steps-color-completed;
9876
- border: 2px solid @steps-color-completed;
10123
+ border-color: @steps-color-completed;
9877
10124
  box-sizing: border-box;
9878
10125
  }
9879
10126
 
9880
10127
  .@{steps-prefix-cls}-item-content {
9881
-
9882
10128
  .@{steps-prefix-cls}-item-title,
9883
10129
  .@{steps-prefix-cls}-item-description {
9884
10130
  color: @steps-color-completed;
@@ -9886,31 +10132,22 @@ textarea {
9886
10132
  }
9887
10133
  }
9888
10134
 
9889
- &-iconContainer-finish {
9890
- &::after {
9891
- background-color: @steps-color-completed;
9892
- }
9893
- }
9894
10135
 
9895
10136
  &-error {
9896
10137
  .@{steps-prefix-cls}-icon {
9897
10138
  color: @steps-color-error;
9898
- border: 2px solid @steps-color-error;
10139
+ border-color: @steps-color-error;
9899
10140
  }
9900
10141
 
9901
10142
  .@{steps-prefix-cls}-item-content {
9902
-
9903
10143
  .@{steps-prefix-cls}-item-title,
9904
10144
  .@{steps-prefix-cls}-item-description {
9905
10145
  color: @steps-color-error;
9906
10146
  }
9907
10147
  }
9908
-
9909
-
9910
10148
  }
9911
10149
  }
9912
10150
 
9913
-
9914
10151
  &-bottomLable {
9915
10152
  .@{steps-prefix-cls}-item-iconContainer {
9916
10153
  margin-bottom: 4px;
@@ -9988,26 +10225,23 @@ textarea {
9988
10225
 
9989
10226
  @steps-prefix: '--@{kd-prefix}-c-steps';
9990
10227
 
9991
- @steps-duration-promptly: var(~'@{steps-prefix}-duration-promptly', @duration-promptly);
9992
- @steps-transition-fn: cubic-bezier(0.48, 0.04, 0.52, 0.96);
9993
-
9994
-
9995
-
9996
10228
  // color
9997
- @steps-color-completed: var(~'@{steps-prefix}-color-completed', @color-theme);//已经完成
10229
+ @steps-color-completed: var(~'@{steps-prefix}-color-completed', @color-success);//已经完成
10230
+ @steps-color-hover: var(~'@{steps-prefix}-color-hover', @color-theme);
9998
10231
  @steps-color-error: var(~'@{steps-prefix}-color-error', @color-error);
9999
- @steps-color-wait: var(~'@{steps-prefix}-color-wait', @color-text-secondary);//未开始 等待
10232
+ @steps-color-wait: var(~'@{steps-prefix}-color-wait', #999);//未开始 等待
10000
10233
  @steps-color-white: var(~'@{steps-prefix}-color-white',@color-white);
10001
10234
  @steps-color-background-process-icon: var(~'@{steps-prefix}-icon-color-background', @color-theme);//图标的颜色
10002
10235
 
10003
-
10004
10236
  // font
10005
10237
  @steps-font-size: var(~'@{steps-prefix}-font-size', @font-size-small); // 文字大小
10006
10238
 
10239
+ // motion
10240
+ @steps-duration-promptly: var(~'@{steps-prefix}-motion-duration', @duration-promptly);
10007
10241
 
10008
10242
  // sizing
10009
10243
  @steps-icon-sizing-width: var(~'@{steps-prefix}-icon-sizing-width', 28px);//图标的大小
10010
- @steps-line-sizing-height: var(~'@{steps-prefix}-line-sizing-height', 4px);//连接线高度
10244
+ @steps-line-sizing-height: var(~'@{steps-prefix}-line-sizing-height', 1px);//连接线高度
10011
10245
  @steps-horizontal-description-sizing-height: var(~'@{steps-prefix}-horizontal-description-sizing-height', 60px);//内容部分高度 横向
10012
10246
  @steps-vertical-description-sizing-width: var(~'@{steps-prefix}-vertical-description-sizing-width', 200px);//内容部分宽度 纵向
10013
10247
 
@@ -11756,7 +11990,7 @@ template {
11756
11990
  }
11757
11991
 
11758
11992
  &-disabled {
11759
- background-color: @switch-disabled-bg;
11993
+ background-color: @switch-off-disabled-bg;
11760
11994
  cursor: not-allowed;
11761
11995
  }
11762
11996
 
@@ -11777,7 +12011,7 @@ template {
11777
12011
  }
11778
12012
 
11779
12013
  &.@{switch-prefix-cls}-disabled {
11780
- opacity: 0.5;
12014
+ background-color: @switch-on-disabled-bg;
11781
12015
  }
11782
12016
 
11783
12017
  .@{switch-prefix-cls}-inner {
@@ -11849,11 +12083,11 @@ template {
11849
12083
 
11850
12084
  @switch-prefix: '--@{kd-prefix}-c-switch';
11851
12085
 
11852
-
11853
12086
  // color
11854
- @switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme);
11855
- @switch-off-color: var(~'@{switch-prefix}-color-off', #999);
11856
- @switch-disabled-bg: var(~'@{switch-prefix}-color-background-disabled', @color-disabled);
12087
+ @switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme-6);
12088
+ @switch-off-color: var(~'@{switch-prefix}-color-off', #B2B2B2);
12089
+ @switch-on-disabled-bg: var(~'@{switch-prefix}-color-on-background-disabled', @color-theme-4);
12090
+ @switch-off-disabled-bg: var(~'@{switch-prefix}-color-off-background-disabled', #D9D9D9);
11857
12091
  @switch-loading-color: var(~'@{switch-prefix}-color-loading', @color-ongoing);
11858
12092
  @switch-font-color: var(~'@{switch-prefix}-color-font', @color-white);
11859
12093
 
@@ -11862,19 +12096,16 @@ template {
11862
12096
  @switch-large-font-size: var(~'@{switch-prefix}-large-font-size', @font-size-small);
11863
12097
  @switch-inner-small-font-size: var(~'@{switch-prefix}-inner-font-size-small', @font-size-small);
11864
12098
 
11865
-
11866
12099
  // line-height
11867
12100
  @switch-large-line-height: var(~'@{switch-prefix}-large-line-height', 20px);
11868
12101
  @switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 14px);
11869
12102
 
11870
-
11871
12103
  //radius
11872
- @switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 7px);
11873
-
12104
+ @switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 8px);
11874
12105
 
11875
12106
  // sizing
11876
- @switch-small-height: var(~'@{switch-prefix}-small-sizing-height', 14px);
11877
- @switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 28px);
12107
+ @switch-small-height: var(~'@{switch-prefix}-small-sizing-height', 16px);
12108
+ @switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 32px);
11878
12109
  @switch-large-height: var(~'@{switch-prefix}-large-sizing-height', 20px);
11879
12110
  @switch-large-min-width: var(~'@{switch-prefix}-large-sizing-width', 40px);
11880
12111
  @switch-large-border-radius: var(~'@{switch-prefix}-large-sizing-border-radius', 10px);
@@ -12377,7 +12608,7 @@ template {
12377
12608
  &-size-large {
12378
12609
  .tag-size(@tag-large-font-size, @tag-large-height, @tag-large-padding-horizontal);
12379
12610
  }
12380
-
12611
+
12381
12612
  transition: all @tag-g-motion-duration;
12382
12613
  // 状态标签
12383
12614
  &-shape-status {
@@ -12401,16 +12632,6 @@ template {
12401
12632
  // 文本标签
12402
12633
  &-shape-text {
12403
12634
  .tag-text-color(@tag-process-color);
12404
- .tag-text-padding(@tag-small-padding-horizontal)
12405
- }
12406
- &-shape-text.@{tag-prefix-cls}-size-small {
12407
- .tag-text-padding(@tag-small-padding-horizontal)
12408
- }
12409
- &-shape-text.@{tag-prefix-cls}-size-middle {
12410
- .tag-text-padding(@tag-middle-padding-horizontal)
12411
- }
12412
- &-shape-text.@{tag-prefix-cls}-size-large {
12413
- .tag-text-padding(@tag-large-padding-horizontal)
12414
12635
  }
12415
12636
  each(@types, {
12416
12637
  &-shape-text.@{tag-prefix-cls}-@{value} {
@@ -12435,13 +12656,13 @@ template {
12435
12656
  &:not(.@{tag-prefix-cls}-closable-disabled):hover {
12436
12657
  border-color: @tag-edit-g-color-border-hover;
12437
12658
  .@{tag-prefix-cls}-closeWrapper {
12438
- background-color: @tag-edit-cloesWrapper-g-color-background-hover;
12659
+ // background-color: @tag-edit-cloesWrapper-g-color-background-hover;
12439
12660
  color: @tag-edit-cloesWrapper-g-text-color-hover;
12440
12661
  }
12441
12662
  }
12442
12663
 
12443
12664
  &.@{tag-prefix-cls}-closable {
12444
- padding-right: 0;
12665
+ padding-right: 8px;
12445
12666
  }
12446
12667
  }
12447
12668
 
@@ -12468,28 +12689,18 @@ template {
12468
12689
  }
12469
12690
  &-closable.@{tag-prefix-cls}-size-middle {
12470
12691
  line-height: @tag-middle-height;
12471
-
12472
- .@{tag-prefix-cls}-closeWrapper {
12473
- width: calc(@tag-middle-height - 2px);
12474
- height: calc(@tag-middle-height - 2px);
12475
- }
12476
12692
  }
12477
12693
  &-closable.@{tag-prefix-cls}-size-large {
12478
12694
  line-height: @tag-large-height;
12479
12695
  padding-left: @tag-large-padding-horizontal;
12480
12696
 
12481
12697
  .@{tag-prefix-cls}-closeWrapper {
12482
- width: calc(@tag-large-height - 2px);
12483
- height: calc(@tag-large-height - 2px);
12484
-
12485
12698
  .@{tag-prefix-cls}-close-icon {
12486
12699
  font-size: 14px;
12487
12700
  }
12488
12701
  }
12489
12702
  }
12490
12703
  &-closeWrapper {
12491
- width: calc(@tag-middle-height - 2px);
12492
- height: calc(@tag-middle-height - 2px);
12493
12704
  margin-left: 4px;
12494
12705
  display: inline-flex;
12495
12706
  justify-content: center;
@@ -12503,6 +12714,7 @@ template {
12503
12714
  }
12504
12715
 
12505
12716
 
12717
+
12506
12718
  // code component mixin here
12507
12719
  .tag-size(@size, @height, @padding) {
12508
12720
  font-size: @size;
@@ -12532,19 +12744,6 @@ template {
12532
12744
  align-items: center;
12533
12745
  padding: 0;
12534
12746
  border-radius: 0;
12535
- &::before{
12536
- content: '';
12537
- display: block;
12538
- background-color: @color;
12539
- border-radius: 50%;
12540
- }
12541
- }
12542
- .tag-text-padding(@padding) {
12543
- &::before{
12544
- width: @padding;
12545
- height: @padding;
12546
- margin-right: @padding;
12547
- }
12548
12747
  }
12549
12748
 
12550
12749
 
@@ -12564,7 +12763,7 @@ template {
12564
12763
  @tag-edit-g-text-color: var(~'@{tag-custom-prefix}-edit-color-text', @color-text-primary);
12565
12764
  @tag-edit-g-color-border-hover: var(~'@{tag-custom-prefix}-edit-color-border-hover', @color-theme);
12566
12765
  @tag-edit-cloesWrapper-g-color-background-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-background-hover', @color-theme);
12567
- @tag-edit-cloesWrapper-g-text-color-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-text-hover', @color-white);
12766
+ @tag-edit-cloesWrapper-g-text-color-hover: var(~'@{tag-custom-prefix}-edit-cloesWrapper-color-text-hover', @color-theme);
12568
12767
  @tag-edit-g-color-background-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-background-contain-disabled);
12569
12768
  @tag-edit-g-color-border-disabled: var(~'@{tag-custom-prefix}-edit-color-background-disabled', @color-border-strong);
12570
12769
  @tag-edit-g-text-color-disabled: var(~'@{tag-custom-prefix}-edit-color-text-disabled', @color-border-strong);