我一直在尝试使用style -components -
const StyledButton = styled(Button)`
.and-btn-primary[disabled] {
background-color: red;
color: red;
}
`;
但是它不起作用
请查看此主题你可以这样重写你的css:
.ant-btn-default:disabled{
background-color: blue;
}
我最终使用-
:disabled {
background-color: blue !important;
}
重写and