mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 13:09:40 +08:00
fix: 添加 ant-input-number 的校验样式支持。 Closes#377。
This commit is contained in:
parent
8e00cdedf4
commit
6698341280
@ -312,6 +312,12 @@ form {
|
||||
.@{calendar-prefix-cls}-picker-icon:after {
|
||||
color: @warning-color;
|
||||
}
|
||||
|
||||
// ant-input-number
|
||||
.@{input-number-prefix-cls} {
|
||||
border-color: @warning-color;
|
||||
box-shadow: 0 0 0 2px tint(@warning-color, 80%);
|
||||
}
|
||||
}
|
||||
|
||||
.has-error {
|
||||
@ -338,6 +344,12 @@ form {
|
||||
.@{calendar-prefix-cls}-picker-icon:after {
|
||||
color: @error-color;
|
||||
}
|
||||
|
||||
// ant-input-number
|
||||
.@{input-number-prefix-cls} {
|
||||
border-color: @error-color;
|
||||
box-shadow: 0 0 0 2px tint(@error-color, 80%);
|
||||
}
|
||||
}
|
||||
|
||||
.is-validating {
|
||||
|
Loading…
Reference in New Issue
Block a user