现在有那么一个less
.has-error{
.ant-form-explain{
color: @error-color !important
}
.ant-select-selection{
border-color: @error-color !important;
}
.ant-input {
border-color: @error-color !important;
}
.ant-input-number {
border-color: @error-color !important;
}
}
有没有办法设置 .has-error
下 所有ant
开头的class?
或者是传入 form-explain select-selection
等参数, 不用每次都复制一遍。
用
&
连接