@kdcloudjs/kdesign 1.1.3 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +39 -3
- package/dist/kdesign-complete.less +407 -261
- package/dist/kdesign.css +154 -54
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +253 -19
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +8 -8
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.js +0 -1
- package/es/anchor/anchor.js +0 -6
- package/es/anchor/style/index.css +5 -2
- package/es/anchor/style/index.less +6 -2
- package/es/anchor/style/token.less +2 -1
- package/es/button/button.d.ts +1 -1
- package/es/button/button.js +2 -2
- package/es/button/group.d.ts +21 -0
- package/es/button/group.js +130 -0
- package/es/button/index.d.ts +5 -1
- package/es/button/index.js +4 -1
- package/es/button/style/index.css +117 -21
- package/es/button/style/index.less +332 -192
- package/es/button/style/token.less +41 -25
- package/es/carousel/carousel.js +4 -0
- package/es/config-provider/compDefaultProps.d.ts +4 -0
- package/es/config-provider/compDefaultProps.js +4 -0
- package/es/empty/defaultEmptyImg.js +5 -3
- package/es/empty/illustrationEmptyImg.js +6 -4
- package/es/icon/interface.js +1 -1
- package/es/image/preview.js +1 -1
- package/es/image/style/index.css +8 -8
- package/es/image/style/index.less +5 -5
- package/es/image/style/token.less +12 -25
- package/es/rate/style/index.css +9 -9
- package/es/rate/style/token.less +6 -6
- package/es/stepper/style/index.css +1 -1
- package/es/stepper/style/token.less +1 -1
- package/es/style/icon/kdicon.css +2 -1
- package/es/style/icon/kdicon.woff +0 -0
- package/es/switch/style/index.css +11 -11
- package/es/switch/style/index.less +2 -2
- package/es/switch/style/token.less +7 -10
- package/lib/_utils/usePopper.js +0 -1
- package/lib/anchor/anchor.js +0 -6
- package/lib/anchor/style/index.css +5 -2
- package/lib/anchor/style/index.less +6 -2
- package/lib/anchor/style/token.less +2 -1
- package/lib/button/button.d.ts +1 -1
- package/lib/button/button.js +2 -2
- package/lib/button/group.d.ts +21 -0
- package/lib/button/group.js +166 -0
- package/lib/button/index.d.ts +5 -1
- package/lib/button/index.js +5 -1
- package/lib/button/style/index.css +117 -21
- package/lib/button/style/index.less +332 -192
- package/lib/button/style/token.less +41 -25
- package/lib/carousel/carousel.js +4 -0
- package/lib/config-provider/compDefaultProps.d.ts +4 -0
- package/lib/config-provider/compDefaultProps.js +4 -0
- package/lib/empty/defaultEmptyImg.js +6 -3
- package/lib/empty/illustrationEmptyImg.js +7 -4
- package/lib/icon/interface.js +1 -1
- package/lib/image/preview.js +1 -1
- package/lib/image/style/index.css +8 -8
- package/lib/image/style/index.less +5 -5
- package/lib/image/style/token.less +12 -25
- package/lib/rate/style/index.css +9 -9
- package/lib/rate/style/token.less +6 -6
- package/lib/stepper/style/index.css +1 -1
- package/lib/stepper/style/token.less +1 -1
- package/lib/style/icon/kdicon.css +2 -1
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/switch/style/index.css +11 -11
- package/lib/switch/style/index.less +2 -2
- package/lib/switch/style/token.less +7 -10
- 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
|
|
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-
|
|
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
|
-
|
|
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
|
-
|
|
910
|
-
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
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
|
-
|
|
997
|
-
|
|
998
|
-
|
|
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
|
-
|
|
1003
|
-
|
|
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
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
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
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
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
|
-
|
|
1047
|
-
|
|
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
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
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-
|
|
1139
|
-
@btn-ghost-font-color: var(~'@{button-custom-prefix}-ghost-color-text',
|
|
1140
|
-
@btn-ghost-
|
|
1141
|
-
@btn-ghost-
|
|
1142
|
-
@btn-ghost-
|
|
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-
|
|
1145
|
-
@btn-ghost-
|
|
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',
|
|
1149
|
-
@btn-second-border-color: var(~'@{button-custom-prefix}-second-color-border',
|
|
1150
|
-
@btn-second-font-color: var(~'@{button-custom-prefix}-second-color-text',
|
|
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-
|
|
1153
|
-
@btn-second-font-color-hover: var(~'@{button-custom-prefix}-second-color-text-hover', @color-
|
|
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-
|
|
1156
|
-
@btn-second-font-color-active: var(~'@{button-custom-prefix}-second-color-text-active', @color-
|
|
1157
|
-
@btn-second-background-color-disabled: var(~'@{button-custom-prefix}-second-color-background-disabled', @color-background-
|
|
1158
|
-
@btn-second-border-color-disabled: var(~'@{button-custom-prefix}-second-color-border-disabled',
|
|
1159
|
-
@btn-second-font-color-disabled: var(~'@{button-custom-prefix}-second-color-text-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-
|
|
1163
|
-
@btn-text-g-text-color-active: var(~'@{button-custom-prefix}-text-color-text-active', @color-theme-
|
|
1164
|
-
@btn-text-g-text-color-disabled: var(~'@{button-custom-prefix}-text-color-text-disabled', @color-
|
|
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
|
|
|
@@ -4225,7 +4387,7 @@
|
|
|
4225
4387
|
text-align: center;
|
|
4226
4388
|
opacity: 0;
|
|
4227
4389
|
transform: translateY(100%);
|
|
4228
|
-
transition: all
|
|
4390
|
+
transition: all 0.2s ease-out;
|
|
4229
4391
|
background-color: @image-action-background-color;
|
|
4230
4392
|
|
|
4231
4393
|
>* {
|
|
@@ -4242,7 +4404,7 @@
|
|
|
4242
4404
|
}
|
|
4243
4405
|
|
|
4244
4406
|
.@{image-preview-prefix-cls} {
|
|
4245
|
-
z-index:
|
|
4407
|
+
z-index: 3000;
|
|
4246
4408
|
position: fixed;
|
|
4247
4409
|
top: 0;
|
|
4248
4410
|
right: 0;
|
|
@@ -4251,14 +4413,14 @@
|
|
|
4251
4413
|
opacity: 0;
|
|
4252
4414
|
transform: scale(0.15);
|
|
4253
4415
|
visibility: hidden;
|
|
4254
|
-
transition: all
|
|
4416
|
+
transition: all 0.2s cubic-bezier(0.4,0,1,0.6);
|
|
4255
4417
|
-webkit-overflow-scrolling: touch;
|
|
4256
4418
|
|
|
4257
4419
|
&.show {
|
|
4258
4420
|
opacity: 1;
|
|
4259
4421
|
transform: scale(1);
|
|
4260
4422
|
visibility: visible;
|
|
4261
|
-
transition: all
|
|
4423
|
+
transition: all 0.2s cubic-bezier(0,.4,.4,1);
|
|
4262
4424
|
}
|
|
4263
4425
|
|
|
4264
4426
|
&-mask {
|
|
@@ -4288,7 +4450,7 @@
|
|
|
4288
4450
|
|
|
4289
4451
|
&:hover,
|
|
4290
4452
|
&:active {
|
|
4291
|
-
color:
|
|
4453
|
+
color: #5582f3;
|
|
4292
4454
|
}
|
|
4293
4455
|
}
|
|
4294
4456
|
|
|
@@ -4410,34 +4572,21 @@
|
|
|
4410
4572
|
|
|
4411
4573
|
@image-prefix: '--@{kd-prefix}-c-image';
|
|
4412
4574
|
|
|
4413
|
-
@image-transition-duration: var(~'@{image-prefix}-transition-duration',@transition-duration);
|
|
4414
|
-
@image-motion-ease-out: var(~'@{image-prefix}-motion-ease-out',@motion-ease-out);
|
|
4415
|
-
@image-motion-ease-in: var(~'@{image-prefix}-motion-ease-out',@motion-ease-in);
|
|
4416
|
-
@image-z-index-masker: var(~'@{image-prefix}-z-index-masker',@z-index-masker);
|
|
4417
|
-
@image-border-radius: var(~'@{image-prefix}-radius-border',@radius-border);
|
|
4418
|
-
@image-action-transition: var(~'@{image-prefix}-action-transition',@duration-quickly);
|
|
4419
|
-
|
|
4420
|
-
|
|
4421
|
-
|
|
4422
|
-
|
|
4423
4575
|
// color
|
|
4424
|
-
@image-icon-color: var(~'@{image-prefix}-icon-color'
|
|
4425
|
-
@image-close-color-background: var(~'@{image-prefix}-close-color-background'
|
|
4426
|
-
@image-action-background-color: var(~'@{image-prefix}-action-color-background',rgba(0, 0, 0, 0.5));
|
|
4427
|
-
|
|
4428
|
-
|
|
4576
|
+
@image-icon-color: var(~'@{image-prefix}-icon-color', @color-white); //图片预览 图标颜色
|
|
4577
|
+
@image-close-color-background: var(~'@{image-prefix}-close-color-background', #666666); //删除图标 背景色
|
|
4578
|
+
@image-action-background-color: var(~'@{image-prefix}-action-color-background', rgba(0, 0, 0, 0.5));
|
|
4429
4579
|
// font
|
|
4430
|
-
@image-icon-font-size: var(~'@{image-prefix}-icon-font-size',
|
|
4431
|
-
@image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size',28px);
|
|
4432
|
-
@image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large'
|
|
4433
|
-
|
|
4580
|
+
@image-icon-font-size: var(~'@{image-prefix}-icon-font-size', 26px); //图片预览 图标大小
|
|
4581
|
+
@image-preview-close-font-size: var(~'@{image-prefix}-preview-font-size', 28px);
|
|
4582
|
+
@image-font-size-x-large: var(~'@{image-prefix}-font-size-x-large', @font-size-x-large);
|
|
4583
|
+
// radius
|
|
4584
|
+
@image-border-radius: var(~'@{image-prefix}-radius-border', @radius-border);
|
|
4434
4585
|
// sizing
|
|
4435
|
-
@image-action-width: var(~'@{image-prefix}-action-sizing-width',100%);
|
|
4436
|
-
@image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width',18px);
|
|
4437
|
-
@image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height',18px);
|
|
4438
|
-
@image-action-height: var(~'@{image-prefix}-action-sizing-height',28px);
|
|
4439
|
-
|
|
4440
|
-
|
|
4586
|
+
@image-action-width: var(~'@{image-prefix}-action-sizing-width', 100%);
|
|
4587
|
+
@image-preview-close-width: var(~'@{image-prefix}-preview-sizing-width', 18px);
|
|
4588
|
+
@image-preview-close-height: var(~'@{image-prefix}-preview-sizing-height', 18px);
|
|
4589
|
+
@image-action-height: var(~'@{image-prefix}-action-sizing-height', 28px);
|
|
4441
4590
|
|
|
4442
4591
|
|
|
4443
4592
|
|
|
@@ -7804,19 +7953,19 @@ textarea {
|
|
|
7804
7953
|
@rate-prefix: '--@{kd-prefix}-c-rate';
|
|
7805
7954
|
|
|
7806
7955
|
// color
|
|
7807
|
-
@rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #
|
|
7808
|
-
@rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #
|
|
7956
|
+
@rate-selected-color: var(~'@{rate-prefix}-color-text-selected', #FEC104);
|
|
7957
|
+
@rate-not-selected-color: var(~'@{rate-prefix}-color-text-not-selected', #E5E5E5);
|
|
7809
7958
|
|
|
7810
7959
|
// font
|
|
7811
|
-
@rate-small-font-size: var(~'@{rate-prefix}-font-size-small',
|
|
7812
|
-
@rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle',
|
|
7813
|
-
@rate-large-font-size: var(~'@{rate-prefix}-font-size-large',
|
|
7960
|
+
@rate-small-font-size: var(~'@{rate-prefix}-font-size-small', 12px);
|
|
7961
|
+
@rate-middle-font-size: var(~'@{rate-prefix}-font-size-middle', 16px);
|
|
7962
|
+
@rate-large-font-size: var(~'@{rate-prefix}-font-size-large', 20px);
|
|
7814
7963
|
|
|
7815
7964
|
// motion
|
|
7816
7965
|
@rate-transition-duration: var(~'@{rate-prefix}-motion-duration', @duration-promptly);
|
|
7817
7966
|
|
|
7818
7967
|
// spacing
|
|
7819
|
-
@rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right',
|
|
7968
|
+
@rate-icon-margin: var(~'@{rate-prefix}-spacing-margin-right', 8px);
|
|
7820
7969
|
|
|
7821
7970
|
|
|
7822
7971
|
|
|
@@ -9721,7 +9870,7 @@ textarea {
|
|
|
9721
9870
|
@stepper-icon-color: var(~'@{stepper-prefix}-icon-color', @color-text-secondary);
|
|
9722
9871
|
@stepper-icon-color-hover: var(~'@{stepper-prefix}-icon-color-hover', @color-theme);
|
|
9723
9872
|
@stepper-color-border-strong: var(~'@{stepper-prefix}-color-border-strong', @color-border-strong);
|
|
9724
|
-
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background',
|
|
9873
|
+
@stepper-embed-icon-color-background: var(~'@{stepper-prefix}-embed-icon-color-background', transparent);
|
|
9725
9874
|
|
|
9726
9875
|
// font
|
|
9727
9876
|
@stepper-input-font-size: var(~'@{stepper-prefix}-input-font-size', 12px);
|
|
@@ -11797,7 +11946,7 @@ template {
|
|
|
11797
11946
|
}
|
|
11798
11947
|
|
|
11799
11948
|
&-disabled {
|
|
11800
|
-
background-color: @switch-disabled-bg;
|
|
11949
|
+
background-color: @switch-off-disabled-bg;
|
|
11801
11950
|
cursor: not-allowed;
|
|
11802
11951
|
}
|
|
11803
11952
|
|
|
@@ -11818,7 +11967,7 @@ template {
|
|
|
11818
11967
|
}
|
|
11819
11968
|
|
|
11820
11969
|
&.@{switch-prefix-cls}-disabled {
|
|
11821
|
-
|
|
11970
|
+
background-color: @switch-on-disabled-bg;
|
|
11822
11971
|
}
|
|
11823
11972
|
|
|
11824
11973
|
.@{switch-prefix-cls}-inner {
|
|
@@ -11890,11 +12039,11 @@ template {
|
|
|
11890
12039
|
|
|
11891
12040
|
@switch-prefix: '--@{kd-prefix}-c-switch';
|
|
11892
12041
|
|
|
11893
|
-
|
|
11894
12042
|
// color
|
|
11895
|
-
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme);
|
|
11896
|
-
@switch-off-color: var(~'@{switch-prefix}-color-off', #
|
|
11897
|
-
@switch-disabled-bg: var(~'@{switch-prefix}-color-background-disabled', @color-
|
|
12043
|
+
@switch-on-color: var(~'@{switch-prefix}-color-on', @color-theme-6);
|
|
12044
|
+
@switch-off-color: var(~'@{switch-prefix}-color-off', #B2B2B2);
|
|
12045
|
+
@switch-on-disabled-bg: var(~'@{switch-prefix}-color-on-background-disabled', @color-theme-4);
|
|
12046
|
+
@switch-off-disabled-bg: var(~'@{switch-prefix}-color-off-background-disabled', #D9D9D9);
|
|
11898
12047
|
@switch-loading-color: var(~'@{switch-prefix}-color-loading', @color-ongoing);
|
|
11899
12048
|
@switch-font-color: var(~'@{switch-prefix}-color-font', @color-white);
|
|
11900
12049
|
|
|
@@ -11903,19 +12052,16 @@ template {
|
|
|
11903
12052
|
@switch-large-font-size: var(~'@{switch-prefix}-large-font-size', @font-size-small);
|
|
11904
12053
|
@switch-inner-small-font-size: var(~'@{switch-prefix}-inner-font-size-small', @font-size-small);
|
|
11905
12054
|
|
|
11906
|
-
|
|
11907
12055
|
// line-height
|
|
11908
12056
|
@switch-large-line-height: var(~'@{switch-prefix}-large-line-height', 20px);
|
|
11909
12057
|
@switch-small-line-height: var(~'@{switch-prefix}-small-line-height', 14px);
|
|
11910
12058
|
|
|
11911
|
-
|
|
11912
12059
|
//radius
|
|
11913
|
-
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border',
|
|
11914
|
-
|
|
12060
|
+
@switch-small-border-radius: var(~'@{switch-prefix}-small-radius-border', 8px);
|
|
11915
12061
|
|
|
11916
12062
|
// sizing
|
|
11917
|
-
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height',
|
|
11918
|
-
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width',
|
|
12063
|
+
@switch-small-height: var(~'@{switch-prefix}-small-sizing-height', 16px);
|
|
12064
|
+
@switch-small-min-width: var(~'@{switch-prefix}-small-sizing-width', 32px);
|
|
11919
12065
|
@switch-large-height: var(~'@{switch-prefix}-large-sizing-height', 20px);
|
|
11920
12066
|
@switch-large-min-width: var(~'@{switch-prefix}-large-sizing-width', 40px);
|
|
11921
12067
|
@switch-large-border-radius: var(~'@{switch-prefix}-large-sizing-border-radius', 10px);
|