@kdcloudjs/kdesign 1.6.13 → 1.6.15
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 +26 -0
- package/dist/kdesign-complete.less +326 -249
- package/dist/kdesign.css +88 -17
- package/dist/kdesign.css.map +1 -1
- package/dist/kdesign.js +732 -399
- package/dist/kdesign.js.map +1 -1
- package/dist/kdesign.min.css +4 -4
- package/dist/kdesign.min.js +5 -5
- package/dist/kdesign.min.js.map +1 -1
- package/es/_utils/usePopper.d.ts +1 -0
- package/es/_utils/usePopper.js +3 -1
- package/es/button/button.js +1 -1
- package/es/button/style/index.css +3 -0
- package/es/button/style/index.less +4 -0
- package/es/button/style/token.less +1 -0
- package/es/carousel/carousel.d.ts +1 -0
- package/es/carousel/carousel.js +66 -3
- package/es/carousel/style/index.css +39 -0
- package/es/carousel/style/index.less +40 -0
- package/es/carousel/style/token.less +2 -0
- package/es/config-provider/compDefaultProps.d.ts +2 -0
- package/es/config-provider/compDefaultProps.js +4 -2
- package/es/date-picker/range-picker.js +6 -17
- package/es/date-picker/style/index.css +9 -9
- package/es/date-picker/style/index.less +1 -1
- package/es/date-picker/style/token.less +1 -1
- package/es/form/Field.js +67 -33
- package/es/form/FieldContext.js +1 -1
- package/es/form/hooks/useForm.js +29 -42
- package/es/form/interface.d.ts +7 -3
- package/es/icon/icon.js +23 -4
- package/es/image/preview.d.ts +1 -0
- package/es/image/preview.js +31 -6
- package/es/input/style/index.css +4 -3
- package/es/input/style/index.less +230 -227
- package/es/input/style/token.less +11 -12
- package/es/modal/modal.js +4 -8
- package/es/modal/style/index.css +7 -0
- package/es/modal/style/index.less +8 -0
- package/es/select/select.js +11 -8
- package/es/select/style/index.css +6 -3
- package/es/select/style/index.less +9 -3
- package/es/select/style/token.less +10 -5
- package/es/style/core/motion/other.less +9 -0
- package/es/style/icon/kdicon.css +3 -1
- package/es/style/icon/kdicon.woff +0 -0
- package/es/style/index.css +16 -0
- package/es/table/interface.d.ts +1 -0
- package/es/tooltip/tooltip.d.ts +1 -1
- package/es/tooltip/tooltip.js +9 -2
- package/es/tree/tree.d.ts +8 -0
- package/es/tree/tree.js +32 -17
- package/es/tree/treeHooks.d.ts +3 -3
- package/es/tree/treeHooks.js +7 -7
- package/es/tree/utils/treeUtils.d.ts +19 -6
- package/es/tree/utils/treeUtils.js +183 -33
- package/lib/_utils/usePopper.d.ts +1 -0
- package/lib/_utils/usePopper.js +3 -1
- package/lib/button/button.js +1 -1
- package/lib/button/style/index.css +3 -0
- package/lib/button/style/index.less +4 -0
- package/lib/button/style/token.less +1 -0
- package/lib/carousel/carousel.d.ts +1 -0
- package/lib/carousel/carousel.js +69 -2
- package/lib/carousel/style/index.css +39 -0
- package/lib/carousel/style/index.less +40 -0
- package/lib/carousel/style/token.less +2 -0
- package/lib/config-provider/compDefaultProps.d.ts +2 -0
- package/lib/config-provider/compDefaultProps.js +4 -2
- package/lib/date-picker/range-picker.js +6 -17
- package/lib/date-picker/style/index.css +9 -9
- package/lib/date-picker/style/index.less +1 -1
- package/lib/date-picker/style/token.less +1 -1
- package/lib/form/Field.js +68 -33
- package/lib/form/FieldContext.js +1 -1
- package/lib/form/hooks/useForm.js +28 -42
- package/lib/form/interface.d.ts +7 -3
- package/lib/icon/icon.js +22 -4
- package/lib/image/preview.d.ts +1 -0
- package/lib/image/preview.js +31 -6
- package/lib/input/style/index.css +4 -3
- package/lib/input/style/index.less +230 -227
- package/lib/input/style/token.less +11 -12
- package/lib/modal/modal.js +4 -8
- package/lib/modal/style/index.css +7 -0
- package/lib/modal/style/index.less +8 -0
- package/lib/select/select.js +11 -11
- package/lib/select/style/index.css +6 -3
- package/lib/select/style/index.less +9 -3
- package/lib/select/style/token.less +10 -5
- package/lib/style/core/motion/other.less +9 -0
- package/lib/style/icon/kdicon.css +3 -1
- package/lib/style/icon/kdicon.woff +0 -0
- package/lib/style/index.css +16 -0
- package/lib/table/interface.d.ts +1 -0
- package/lib/tooltip/tooltip.d.ts +1 -1
- package/lib/tooltip/tooltip.js +15 -5
- package/lib/tree/tree.d.ts +8 -0
- package/lib/tree/tree.js +30 -16
- package/lib/tree/treeHooks.d.ts +3 -3
- package/lib/tree/treeHooks.js +6 -6
- package/lib/tree/utils/treeUtils.d.ts +19 -6
- package/lib/tree/utils/treeUtils.js +193 -33
- package/package.json +1 -1
|
@@ -1115,6 +1115,10 @@
|
|
|
1115
1115
|
padding: 0;
|
|
1116
1116
|
min-width: auto;
|
|
1117
1117
|
|
|
1118
|
+
.@{btn-prefix-cls}-iconWrapper-left {
|
|
1119
|
+
margin-right: @btn-text-icon-margin-right;
|
|
1120
|
+
}
|
|
1121
|
+
|
|
1118
1122
|
&:hover {
|
|
1119
1123
|
color: @btn-text-g-text-color-hover;
|
|
1120
1124
|
}
|
|
@@ -1415,6 +1419,7 @@
|
|
|
1415
1419
|
@btn-large-padding-horizontal: var(~'@{button-custom-prefix}-spacing-padding-horizontal-large', 8px); // 大号 内间距 横向
|
|
1416
1420
|
@btn-group-dropdown-item-horizontal: var(~'@{button-custom-prefix}-group-dropdown-item-horizonta', 12px);
|
|
1417
1421
|
@btn-icon-padding-horizontal: var(~'@{button-custom-prefix}-icon-spacing-padding-horizontal', 4px);
|
|
1422
|
+
@btn-text-icon-margin-right: var(~'@{button-custom-prefix}-text-icon-spacing-margin-right', 4px);
|
|
1418
1423
|
|
|
1419
1424
|
|
|
1420
1425
|
|
|
@@ -1697,6 +1702,46 @@
|
|
|
1697
1702
|
}
|
|
1698
1703
|
}
|
|
1699
1704
|
}
|
|
1705
|
+
|
|
1706
|
+
&-jump {
|
|
1707
|
+
position: absolute;
|
|
1708
|
+
top: 50%;
|
|
1709
|
+
left: unset;
|
|
1710
|
+
right: 16px;
|
|
1711
|
+
transform: translateY(-50%);
|
|
1712
|
+
|
|
1713
|
+
&-left {
|
|
1714
|
+
left: 16px;
|
|
1715
|
+
right: unset;
|
|
1716
|
+
}
|
|
1717
|
+
|
|
1718
|
+
&:not(.@{carousel-prefix-cls}-jump-disabled) {
|
|
1719
|
+
cursor: pointer;
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1722
|
+
> *:first-child {
|
|
1723
|
+
display: flex;
|
|
1724
|
+
align-items: center;
|
|
1725
|
+
justify-content: center;
|
|
1726
|
+
}
|
|
1727
|
+
|
|
1728
|
+
&-icon {
|
|
1729
|
+
font-size: 20px;
|
|
1730
|
+
color: @carousel-jump-icon-color;
|
|
1731
|
+
|
|
1732
|
+
&:hover {
|
|
1733
|
+
color: @carousel-jump-icon-color-hover;
|
|
1734
|
+
}
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
&-disabled {
|
|
1738
|
+
cursor: not-allowed;
|
|
1739
|
+
|
|
1740
|
+
.@{carousel-prefix-cls}-jump-icon:hover {
|
|
1741
|
+
color: @carousel-jump-icon-color;
|
|
1742
|
+
}
|
|
1743
|
+
}
|
|
1744
|
+
}
|
|
1700
1745
|
}
|
|
1701
1746
|
.vertical {
|
|
1702
1747
|
display: flex;
|
|
@@ -1729,6 +1774,8 @@
|
|
|
1729
1774
|
// color
|
|
1730
1775
|
@carousel-dots-color-background: var(~'@{carousel-prefix}-dots-color-background', #D8D8D8); // 面板指示点的背景色
|
|
1731
1776
|
@carousel-dots-color-background-active: var(~'@{carousel-prefix}-dots-color-hover', #666666); // 面板指示点的背景色
|
|
1777
|
+
@carousel-jump-icon-color: var(~'@{carousel-prefix}-jump-icon-color', #D9D9D9);
|
|
1778
|
+
@carousel-jump-icon-color-hover: var(~'@{carousel-prefix}-jump-icon-color-hover', #666666);
|
|
1732
1779
|
|
|
1733
1780
|
// radius
|
|
1734
1781
|
@carousel-dots-boder-radius: var(~'@{carousel-prefix}-dots-border-radius', 2px); // 面板指示点的圆角
|
|
@@ -2781,7 +2828,7 @@
|
|
|
2781
2828
|
}
|
|
2782
2829
|
|
|
2783
2830
|
&::placeholder {
|
|
2784
|
-
color: @date-input-color-
|
|
2831
|
+
color: @date-input-color-placeholder;
|
|
2785
2832
|
}
|
|
2786
2833
|
}
|
|
2787
2834
|
|
|
@@ -3643,7 +3690,7 @@
|
|
|
3643
3690
|
@date-color-background-checked: var(~'@{date-picker-custom-prefix}-color-background-checked', @color-theme);
|
|
3644
3691
|
@date-wrapper-color-background: var(~'@{date-picker-custom-prefix}-wrapper-color-background', @color-background);
|
|
3645
3692
|
@date-input-color: var(~'@{date-picker-custom-prefix}-input-color', @color-text-primary);
|
|
3646
|
-
@date-input-color-placeholder: var(~'@{date-picker-custom-prefix}-input-color-placeholder',
|
|
3693
|
+
@date-input-color-placeholder: var(~'@{date-picker-custom-prefix}-input-color-placeholder', #f2f2f2);
|
|
3647
3694
|
@date-input-underline-color: var(~'@{date-picker-custom-prefix}-input-underline-color', #999);
|
|
3648
3695
|
@date-input-color-border: var(~'@{date-picker-custom-prefix}-input-color-border', @color-border-strong);
|
|
3649
3696
|
@date-input-color-disabled: var(~'@{date-picker-custom-prefix}-input-color-disabled', @color-disabled);
|
|
@@ -5012,260 +5059,263 @@
|
|
|
5012
5059
|
@input-prefix-cls: ~'@{kd-prefix}-input';
|
|
5013
5060
|
@wrapper-prefix-cls: ~'@{input-prefix-cls}-wrapper';
|
|
5014
5061
|
|
|
5015
|
-
|
|
5016
5062
|
textarea {
|
|
5017
|
-
|
|
5018
|
-
|
|
5019
|
-
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5063
|
+
margin: 0;
|
|
5064
|
+
padding: 0;
|
|
5065
|
+
color: inherit;
|
|
5066
|
+
font-size: inherit;
|
|
5067
|
+
font-family: inherit;
|
|
5068
|
+
line-height: inherit;
|
|
5069
|
+
-webkit-appearance: none;
|
|
5070
|
+
overflow: auto;
|
|
5071
|
+
resize: vertical;
|
|
5026
5072
|
}
|
|
5027
5073
|
.@{input-prefix-cls} {
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5036
|
-
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5044
|
-
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5074
|
+
.input(@input-prefix-cls);
|
|
5075
|
+
transition: border-color @transition-duration-inner;
|
|
5076
|
+
&-countWrapper {
|
|
5077
|
+
position: relative;
|
|
5078
|
+
display: inline-block;
|
|
5079
|
+
width: 100%;
|
|
5080
|
+
}
|
|
5081
|
+
&-textarea {
|
|
5082
|
+
.input(@input-prefix-cls);
|
|
5083
|
+
transition: border-color @transition-duration-inner;
|
|
5084
|
+
max-width: 100%;
|
|
5085
|
+
height: auto;
|
|
5086
|
+
vertical-align: bottom;
|
|
5087
|
+
&-mark {
|
|
5088
|
+
position: absolute;
|
|
5089
|
+
right: 0;
|
|
5090
|
+
top: ~'calc(100% + 1px)';
|
|
5091
|
+
z-index: 1;
|
|
5092
|
+
color: @input-placeholder-color-inner;
|
|
5093
|
+
font-size: @input-small-font-size-inner;
|
|
5048
5094
|
line-height: 18px;
|
|
5049
5095
|
background-color: #fff;
|
|
5050
|
-
|
|
5096
|
+
}
|
|
5051
5097
|
&-mark-inner {
|
|
5052
5098
|
top: auto;
|
|
5053
5099
|
bottom: 5px;
|
|
5054
5100
|
right: 8px;
|
|
5055
5101
|
}
|
|
5056
|
-
|
|
5057
|
-
|
|
5058
|
-
|
|
5059
|
-
|
|
5060
|
-
|
|
5061
|
-
|
|
5062
|
-
|
|
5063
|
-
|
|
5064
|
-
|
|
5065
|
-
|
|
5066
|
-
|
|
5067
|
-
|
|
5068
|
-
|
|
5069
|
-
|
|
5070
|
-
|
|
5071
|
-
|
|
5072
|
-
|
|
5073
|
-
|
|
5074
|
-
|
|
5075
|
-
|
|
5102
|
+
}
|
|
5103
|
+
&-no-resize {
|
|
5104
|
+
resize: none;
|
|
5105
|
+
}
|
|
5106
|
+
&-borderless {
|
|
5107
|
+
border: 0;
|
|
5108
|
+
padding-left: 0 !important;
|
|
5109
|
+
&:focus {
|
|
5110
|
+
border: 0;
|
|
5111
|
+
}
|
|
5112
|
+
}
|
|
5113
|
+
&-underline {
|
|
5114
|
+
border: none;
|
|
5115
|
+
border-bottom: 1px solid @input-color-border;
|
|
5116
|
+
border-radius: 0;
|
|
5117
|
+
padding-left: 0 !important;
|
|
5118
|
+
}
|
|
5119
|
+
&-disabled {
|
|
5120
|
+
background-color: @input-background-color-disabled-inner;
|
|
5121
|
+
border-color: @input-border-color-disabled-inner;
|
|
5076
5122
|
color: @input-affix-color;
|
|
5077
|
-
|
|
5078
|
-
|
|
5079
|
-
|
|
5123
|
+
cursor: not-allowed;
|
|
5124
|
+
}
|
|
5125
|
+
&-underline&-disabled {
|
|
5080
5126
|
color: @input-color-disabled-inner;
|
|
5081
|
-
|
|
5082
|
-
|
|
5083
|
-
|
|
5084
|
-
|
|
5085
|
-
|
|
5086
|
-
|
|
5087
|
-
|
|
5088
|
-
|
|
5089
|
-
|
|
5090
|
-
|
|
5091
|
-
|
|
5092
|
-
|
|
5093
|
-
|
|
5094
|
-
|
|
5095
|
-
|
|
5096
|
-
|
|
5097
|
-
|
|
5098
|
-
|
|
5099
|
-
|
|
5100
|
-
|
|
5101
|
-
|
|
5102
|
-
|
|
5103
|
-
|
|
5104
|
-
|
|
5105
|
-
|
|
5106
|
-
|
|
5107
|
-
|
|
5108
|
-
|
|
5109
|
-
|
|
5110
|
-
|
|
5111
|
-
|
|
5127
|
+
background-color: @input-background-color-inner;
|
|
5128
|
+
border-color: @input-underline-border-color-disabled-inner;
|
|
5129
|
+
}
|
|
5130
|
+
&-size-small {
|
|
5131
|
+
.input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
5132
|
+
}
|
|
5133
|
+
&-size-middle {
|
|
5134
|
+
.input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
5135
|
+
}
|
|
5136
|
+
&-size-large {
|
|
5137
|
+
.input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
5138
|
+
}
|
|
5139
|
+
&-wrapper {
|
|
5140
|
+
padding-left: @input-wrapper-padding-left !important;
|
|
5141
|
+
.input(@wrapper-prefix-cls);
|
|
5142
|
+
transition: border-color @transition-duration-inner;
|
|
5143
|
+
display: inline-flex;
|
|
5144
|
+
position: relative;
|
|
5145
|
+
padding-top: 0 !important;
|
|
5146
|
+
padding-bottom: 0 !important;
|
|
5147
|
+
overflow: hidden;
|
|
5148
|
+
.@{input-prefix-cls} {
|
|
5149
|
+
border: none;
|
|
5150
|
+
padding-left: @input-padding-left;
|
|
5151
|
+
padding-right: 0;
|
|
5152
|
+
height: 100%;
|
|
5153
|
+
&-suffix,
|
|
5154
|
+
&-prefix {
|
|
5155
|
+
display: flex;
|
|
5156
|
+
flex: 0;
|
|
5157
|
+
align-items: center;
|
|
5158
|
+
justify-content: center;
|
|
5159
|
+
word-break: keep-all;
|
|
5112
5160
|
color: @input-affix-color;
|
|
5113
|
-
|
|
5114
|
-
|
|
5115
|
-
|
|
5116
|
-
|
|
5117
|
-
|
|
5118
|
-
|
|
5119
|
-
|
|
5120
|
-
|
|
5121
|
-
|
|
5122
|
-
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5126
|
-
|
|
5127
|
-
|
|
5128
|
-
|
|
5129
|
-
|
|
5130
|
-
|
|
5131
|
-
|
|
5132
|
-
|
|
5133
|
-
|
|
5134
|
-
|
|
5135
|
-
|
|
5161
|
+
}
|
|
5162
|
+
&-suffix {
|
|
5163
|
+
margin-left: 4px;
|
|
5164
|
+
}
|
|
5165
|
+
&-prefix {
|
|
5166
|
+
margin-right: 4px;
|
|
5167
|
+
}
|
|
5168
|
+
}
|
|
5169
|
+
&-size-small {
|
|
5170
|
+
.input-size(@input-small-height-inner, @input-small-font-size-inner, @input-small-padding-vertical-inner, @input-small-padding-horizontal-inner);
|
|
5171
|
+
}
|
|
5172
|
+
&-size-middle {
|
|
5173
|
+
.input-size(@input-middle-height-inner, @input-middle-font-size-inner, @input-small-padding-vertical-inner, @input-middle-padding-horizontal-inner);
|
|
5174
|
+
}
|
|
5175
|
+
&-size-large {
|
|
5176
|
+
.input-size(@input-large-height-inner, @input-large-font-size-inner, @input-small-padding-vertical-inner, @input-large-padding-horizontal-inner);
|
|
5177
|
+
}
|
|
5178
|
+
&-borderless {
|
|
5179
|
+
.border-less;
|
|
5180
|
+
}
|
|
5181
|
+
&-underline {
|
|
5182
|
+
.underline;
|
|
5183
|
+
}
|
|
5136
5184
|
|
|
5137
|
-
|
|
5138
|
-
|
|
5139
|
-
|
|
5185
|
+
&-focused {
|
|
5186
|
+
border-color: @input-border-color-focused;
|
|
5187
|
+
}
|
|
5140
5188
|
|
|
5141
5189
|
&-disabled {
|
|
5142
5190
|
background-color: @input-background-color-disabled-inner;
|
|
5143
5191
|
border-color: @input-border-color-disabled-inner;
|
|
5144
5192
|
cursor: not-allowed;
|
|
5145
5193
|
|
|
5146
|
-
.@{input-prefix-cls}-suffix,
|
|
5194
|
+
.@{input-prefix-cls}-suffix,
|
|
5195
|
+
.@{input-prefix-cls}-prefix {
|
|
5147
5196
|
color: @input-color-disabled-inner;
|
|
5148
5197
|
}
|
|
5149
5198
|
}
|
|
5150
|
-
|
|
5151
|
-
|
|
5152
|
-
|
|
5153
|
-
|
|
5154
|
-
|
|
5155
|
-
|
|
5156
|
-
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5199
|
+
}
|
|
5200
|
+
&-wrapper-textarea {
|
|
5201
|
+
.input(@input-prefix-cls);
|
|
5202
|
+
border: none !important;
|
|
5203
|
+
padding: 0 !important;
|
|
5204
|
+
position: relative;
|
|
5205
|
+
display: inline-block;
|
|
5206
|
+
.@{input-prefix-cls} {
|
|
5207
|
+
&-textarea-clear-icon {
|
|
5208
|
+
position: absolute;
|
|
5160
5209
|
z-index: 2;
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5166
|
-
|
|
5167
|
-
|
|
5168
|
-
|
|
5169
|
-
|
|
5170
|
-
|
|
5171
|
-
|
|
5172
|
-
|
|
5173
|
-
|
|
5174
|
-
|
|
5210
|
+
right: 8px;
|
|
5211
|
+
top: 3px;
|
|
5212
|
+
}
|
|
5213
|
+
}
|
|
5214
|
+
}
|
|
5215
|
+
&-clear-icon,
|
|
5216
|
+
&-textarea-clear-icon {
|
|
5217
|
+
.input-clear-icon;
|
|
5218
|
+
}
|
|
5219
|
+
&-clear-icon-hidden {
|
|
5220
|
+
visibility: hidden;
|
|
5221
|
+
}
|
|
5222
|
+
&-clear-icon-rightSpace {
|
|
5223
|
+
margin-right: 4px;
|
|
5224
|
+
}
|
|
5175
5225
|
|
|
5176
|
-
|
|
5177
|
-
|
|
5178
|
-
|
|
5179
|
-
|
|
5180
|
-
|
|
5181
|
-
|
|
5182
|
-
|
|
5183
|
-
|
|
5184
|
-
|
|
5185
|
-
|
|
5186
|
-
|
|
5187
|
-
|
|
5188
|
-
|
|
5189
|
-
|
|
5190
|
-
|
|
5191
|
-
|
|
5192
|
-
|
|
5193
|
-
|
|
5194
|
-
|
|
5195
|
-
|
|
5196
|
-
|
|
5197
|
-
|
|
5198
|
-
|
|
5199
|
-
|
|
5200
|
-
|
|
5201
|
-
|
|
5202
|
-
|
|
5203
|
-
|
|
5204
|
-
|
|
5205
|
-
|
|
5206
|
-
|
|
5207
|
-
|
|
5208
|
-
|
|
5209
|
-
|
|
5210
|
-
|
|
5211
|
-
|
|
5212
|
-
|
|
5213
|
-
|
|
5214
|
-
|
|
5215
|
-
|
|
5216
|
-
|
|
5217
|
-
|
|
5218
|
-
|
|
5219
|
-
|
|
5220
|
-
|
|
5221
|
-
|
|
5222
|
-
|
|
5223
|
-
|
|
5224
|
-
|
|
5225
|
-
|
|
5226
|
-
|
|
5227
|
-
|
|
5228
|
-
|
|
5229
|
-
|
|
5230
|
-
|
|
5231
|
-
|
|
5232
|
-
|
|
5233
|
-
|
|
5234
|
-
|
|
5235
|
-
|
|
5236
|
-
|
|
5237
|
-
|
|
5238
|
-
|
|
5239
|
-
|
|
5240
|
-
|
|
5241
|
-
|
|
5242
|
-
|
|
5243
|
-
|
|
5226
|
+
&-group-wrapper {
|
|
5227
|
+
display: inline-block;
|
|
5228
|
+
width: 100%;
|
|
5229
|
+
text-align: start;
|
|
5230
|
+
vertical-align: top;
|
|
5231
|
+
.@{input-prefix-cls} {
|
|
5232
|
+
&-group {
|
|
5233
|
+
box-sizing: border-box;
|
|
5234
|
+
margin: 0;
|
|
5235
|
+
padding: 0;
|
|
5236
|
+
color: rgba(0, 0, 0, 0.85);
|
|
5237
|
+
font-size: 14px;
|
|
5238
|
+
font-variant: tabular-nums;
|
|
5239
|
+
// line-height: 1.5715;
|
|
5240
|
+
list-style: none;
|
|
5241
|
+
font-feature-settings: 'tnum';
|
|
5242
|
+
position: relative;
|
|
5243
|
+
display: flex;
|
|
5244
|
+
width: 100%;
|
|
5245
|
+
border-collapse: separate;
|
|
5246
|
+
border-spacing: 0;
|
|
5247
|
+
& > .@{input-prefix-cls}-wrapper {
|
|
5248
|
+
&:not(:first-child):not(:last-child) {
|
|
5249
|
+
border-radius: 0;
|
|
5250
|
+
}
|
|
5251
|
+
&:first-child:not(:last-child) {
|
|
5252
|
+
border-top-right-radius: 0;
|
|
5253
|
+
border-bottom-right-radius: 0;
|
|
5254
|
+
}
|
|
5255
|
+
&:not(:first-child):last-child {
|
|
5256
|
+
border-top-left-radius: 0;
|
|
5257
|
+
border-bottom-left-radius: 0;
|
|
5258
|
+
}
|
|
5259
|
+
}
|
|
5260
|
+
.@{input-prefix-cls}-group-addon {
|
|
5261
|
+
position: relative;
|
|
5262
|
+
color: @input-affix-color;
|
|
5263
|
+
padding: 0 9px;
|
|
5264
|
+
font-weight: 400;
|
|
5265
|
+
font-size: 14px;
|
|
5266
|
+
text-align: center;
|
|
5267
|
+
border: 1px solid @input-border-color-disabled-inner;
|
|
5268
|
+
border-radius: @input-border-radius-inner;
|
|
5269
|
+
white-space: nowrap;
|
|
5270
|
+
box-sizing: border-box;
|
|
5271
|
+
display: flex;
|
|
5272
|
+
align-items: center;
|
|
5273
|
+
height: @input-middle-height-inner;
|
|
5274
|
+
&:first-child {
|
|
5275
|
+
border-top-right-radius: 0;
|
|
5276
|
+
border-bottom-right-radius: 0;
|
|
5277
|
+
border-right: none;
|
|
5278
|
+
}
|
|
5279
|
+
&:last-child {
|
|
5280
|
+
border-top-left-radius: 0;
|
|
5281
|
+
border-bottom-left-radius: 0;
|
|
5282
|
+
border-left: none;
|
|
5283
|
+
}
|
|
5284
|
+
|
|
5285
|
+
&-borderless {
|
|
5286
|
+
.border-less;
|
|
5287
|
+
}
|
|
5288
|
+
&-underline {
|
|
5289
|
+
.underline;
|
|
5290
|
+
}
|
|
5291
|
+
&-disabled {
|
|
5292
|
+
background-color: @input-background-color-disabled-inner;
|
|
5293
|
+
border-color: @input-border-color-disabled-inner;
|
|
5244
5294
|
color: @input-color-disabled-inner;
|
|
5245
|
-
|
|
5246
|
-
|
|
5247
|
-
|
|
5248
|
-
|
|
5249
|
-
|
|
5250
|
-
|
|
5251
|
-
|
|
5252
|
-
|
|
5253
|
-
|
|
5254
|
-
|
|
5255
|
-
|
|
5256
|
-
|
|
5257
|
-
|
|
5258
|
-
|
|
5259
|
-
|
|
5260
|
-
|
|
5261
|
-
|
|
5262
|
-
|
|
5263
|
-
|
|
5264
|
-
|
|
5265
|
-
|
|
5266
|
-
|
|
5267
|
-
|
|
5268
|
-
|
|
5295
|
+
cursor: not-allowed;
|
|
5296
|
+
}
|
|
5297
|
+
}
|
|
5298
|
+
}
|
|
5299
|
+
&-group-size-small {
|
|
5300
|
+
.@{input-prefix-cls}-group-addon {
|
|
5301
|
+
height: @input-small-height-inner;
|
|
5302
|
+
}
|
|
5303
|
+
}
|
|
5304
|
+
&-group-middle-small {
|
|
5305
|
+
.@{input-prefix-cls}-group-addon {
|
|
5306
|
+
height: @input-middle-height-inner;
|
|
5307
|
+
}
|
|
5308
|
+
}
|
|
5309
|
+
&-group-large-small {
|
|
5310
|
+
.@{input-prefix-cls}-group-addon {
|
|
5311
|
+
height: @input-large-height-inner;
|
|
5312
|
+
}
|
|
5313
|
+
}
|
|
5314
|
+
}
|
|
5315
|
+
}
|
|
5316
|
+
&-allowClear-spacing {
|
|
5317
|
+
padding-right: 20px;
|
|
5318
|
+
}
|
|
5269
5319
|
}
|
|
5270
5320
|
|
|
5271
5321
|
|
|
@@ -5345,7 +5395,6 @@ textarea {
|
|
|
5345
5395
|
|
|
5346
5396
|
@input-prefix: '--@{kd-prefix}-c-input';
|
|
5347
5397
|
|
|
5348
|
-
|
|
5349
5398
|
// color
|
|
5350
5399
|
@input-font-color-inner: var(~'@{input-prefix}-color-text', @color-text-primary);
|
|
5351
5400
|
@input-placeholder-color-inner: var(~'@{input-prefix}-placeholder-color-text', @color-text-placeholder);
|
|
@@ -5353,10 +5402,16 @@ textarea {
|
|
|
5353
5402
|
@input-clear-color: var(~'@{input-prefix}-clear-color', #d9d9d9);
|
|
5354
5403
|
@input-clear-color-hover: var(~'@{input-prefix}-clear-color-hover', #999);
|
|
5355
5404
|
@input-background-color-inner: var(~'@{input-prefix}-color-background', @color-white);
|
|
5356
|
-
@input-background-color-disabled-inner: var(
|
|
5405
|
+
@input-background-color-disabled-inner: var(
|
|
5406
|
+
~'@{input-prefix}-color-background-disabled',
|
|
5407
|
+
@color-background-contain-disabled
|
|
5408
|
+
);
|
|
5357
5409
|
@input-border-color-focused: var(~'@{input-prefix}-color-border-focused', @color-theme);
|
|
5358
5410
|
@input-border-color-disabled-inner: var(~'@{input-prefix}-color-border-disabled', @color-border-strong);
|
|
5359
|
-
@input-underline-border-color-disabled-inner: var(
|
|
5411
|
+
@input-underline-border-color-disabled-inner: var(
|
|
5412
|
+
~'@{input-prefix}-underline-color-border-disabled',
|
|
5413
|
+
@color-border-weak
|
|
5414
|
+
);
|
|
5360
5415
|
@input-color-disabled-inner: var(~'@{input-prefix}-color-disabled', @color-disabled);
|
|
5361
5416
|
@input-affix-color: var(~'@{input-prefix}-affix-color-text', #666);
|
|
5362
5417
|
|
|
@@ -5376,6 +5431,8 @@ textarea {
|
|
|
5376
5431
|
@input-middle-height-inner: var(~'@{input-prefix}-sizing-height-middle', 30px);
|
|
5377
5432
|
@input-large-height-inner: var(~'@{input-prefix}-sizing-height-large', 36px);
|
|
5378
5433
|
@input-border-width-inner: var(~'@{input-prefix}-sizing-border', 1px);
|
|
5434
|
+
@input-wrapper-padding-left: var(~'@{input-prefix}-wrapper-padding-left', 0px);
|
|
5435
|
+
@input-padding-left: var(~'@{input-prefix}-padding-left', 9px);
|
|
5379
5436
|
|
|
5380
5437
|
// spacing
|
|
5381
5438
|
@input-small-padding-vertical-inner: var(~'@{input-prefix}-spacing-padding-vertical-small', 3px);
|
|
@@ -5387,14 +5444,6 @@ textarea {
|
|
|
5387
5444
|
|
|
5388
5445
|
|
|
5389
5446
|
|
|
5390
|
-
|
|
5391
|
-
|
|
5392
|
-
|
|
5393
|
-
|
|
5394
|
-
|
|
5395
|
-
|
|
5396
|
-
|
|
5397
|
-
|
|
5398
5447
|
@inputNumber-prefix-cls: ~'@{kd-prefix}-inputNumber';
|
|
5399
5448
|
.@{inputNumber-prefix-cls} {
|
|
5400
5449
|
&-baseStep {
|
|
@@ -6381,6 +6430,14 @@ textarea {
|
|
|
6381
6430
|
&-container {
|
|
6382
6431
|
position: relative;
|
|
6383
6432
|
z-index: @modal-z-index-dialog;
|
|
6433
|
+
|
|
6434
|
+
&-show {
|
|
6435
|
+
animation: kdModalEffect calc(@transition-duration - 0.1s) @ease both;
|
|
6436
|
+
}
|
|
6437
|
+
|
|
6438
|
+
&-hidden {
|
|
6439
|
+
display: none
|
|
6440
|
+
}
|
|
6384
6441
|
}
|
|
6385
6442
|
&-mask {
|
|
6386
6443
|
.overlay(@modal-mask-color-background, 0);
|
|
@@ -8908,8 +8965,8 @@ textarea {
|
|
|
8908
8965
|
|
|
8909
8966
|
&-bordered {
|
|
8910
8967
|
border: 1px solid @select-border-g-color-border;
|
|
8911
|
-
padding-left:
|
|
8912
|
-
border-radius:
|
|
8968
|
+
padding-left: @select-bordered !important;
|
|
8969
|
+
border-radius: @select-border-radius-border;
|
|
8913
8970
|
&:hover:not(.@{select-prefix-cls}-multiple-disabled):not(.@{select-prefix-cls}-single-disabled) {
|
|
8914
8971
|
border: 1px solid @select-g-color-border-hover;
|
|
8915
8972
|
}
|
|
@@ -8917,11 +8974,17 @@ textarea {
|
|
|
8917
8974
|
.@{select-prefix-cls}-suffix {
|
|
8918
8975
|
padding-right: 8px;
|
|
8919
8976
|
}
|
|
8977
|
+
|
|
8978
|
+
&.@{select-prefix-cls}-single {
|
|
8979
|
+
.@{select-prefix-cls}-selection-search {
|
|
8980
|
+
left: @select-bordered;
|
|
8981
|
+
}
|
|
8982
|
+
}
|
|
8920
8983
|
}
|
|
8921
8984
|
|
|
8922
8985
|
&-wrapper {
|
|
8923
8986
|
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
|
|
8924
|
-
padding:
|
|
8987
|
+
padding: @select-wrapper-padding;
|
|
8925
8988
|
max-width: 100%;
|
|
8926
8989
|
color: #212121;
|
|
8927
8990
|
display: flex;
|
|
@@ -9335,20 +9398,25 @@ textarea {
|
|
|
9335
9398
|
@select-middle-font-size: var(~'@{select-custom-prefix}-font-size-middle', 14px); // 中号高度
|
|
9336
9399
|
@select-small-font-size: var(~'@{select-custom-prefix}-font-size-small', 12px); // 小号高度
|
|
9337
9400
|
|
|
9401
|
+
// line-height
|
|
9402
|
+
@select-dropdown-line-height: var(~'@{select-custom-prefix}-dropdown-line-height', 22px);
|
|
9403
|
+
@select-large-line-height: var(~'@{select-custom-prefix}-line-height-large', 28px);
|
|
9404
|
+
@select-middle-line-height: var(~'@{select-custom-prefix}-line-height-middle', 22px);
|
|
9405
|
+
@select-small-line-height: var(~'@{select-custom-prefix}-line-height-small', 14px);
|
|
9406
|
+
|
|
9338
9407
|
// sizing
|
|
9339
9408
|
@select-dropdown-height: var(~'@{select-custom-prefix}-item-sizing-height', 22px);
|
|
9340
9409
|
@select-large-height: var(~'@{select-custom-prefix}-sizing-height-large', 36px); // 大号高度 lh:28px
|
|
9341
9410
|
@select-middle-height: var(~'@{select-custom-prefix}-sizing-height-middle', 30px); // 中号高度lh:22px
|
|
9342
9411
|
@select-small-height: var(~'@{select-custom-prefix}-sizing-height-small', 24px); // 小号高度lh:12px
|
|
9343
9412
|
|
|
9344
|
-
//
|
|
9345
|
-
@select-
|
|
9346
|
-
@select-
|
|
9347
|
-
@select-middle-line-height: var(~'@{select-custom-prefix}-line-height-middle', 22px);
|
|
9348
|
-
@select-small-line-height: var(~'@{select-custom-prefix}-line-height-small', 14px);
|
|
9413
|
+
// spacing
|
|
9414
|
+
@select-bordered: var(~'@{select-custom-prefix}-bordered-spacing-padding-left', 8px);
|
|
9415
|
+
@select-wrapper-padding: var(~'@{select-custom-prefix}-wrapper-spacing-padding', 1px 28px 1px 0);
|
|
9349
9416
|
|
|
9350
9417
|
// radius
|
|
9351
9418
|
@select-g-radius-border: var(~'@{select-custom-prefix}-radius-border', @radius-border);
|
|
9419
|
+
@select-border-radius-border: var(~'@{select-custom-prefix}-bordered-radius-border', 2px);
|
|
9352
9420
|
|
|
9353
9421
|
// z-index
|
|
9354
9422
|
@select-z-index: var(~'@{select-custom-prefix}-z-index', @z-index-popper);
|
|
@@ -10598,6 +10666,15 @@ textarea {
|
|
|
10598
10666
|
opacity: 0;
|
|
10599
10667
|
}
|
|
10600
10668
|
}
|
|
10669
|
+
|
|
10670
|
+
@keyframes kdModalEffect {
|
|
10671
|
+
0% {
|
|
10672
|
+
opacity: 0;
|
|
10673
|
+
}
|
|
10674
|
+
100% {
|
|
10675
|
+
opacity: 1;
|
|
10676
|
+
}
|
|
10677
|
+
}
|
|
10601
10678
|
.slide-motion(@className, @keyframeName, @componentName, @duration: calc(@transition-duration - 0.1s)) {
|
|
10602
10679
|
.@{className} {
|
|
10603
10680
|
.@{componentName}&-active {
|