import styled from 'styled-components';
const CommonButton = styled(Button)`
background-color: ${props => props.color} !important;
color: #fff;
border-color: ${props => props.color} !important;
&:hover{
background-color: ${props => props.hovercolor} !important;
border-color: ${props => props.hovercolor} !important;
}
`;
<CommonButton type='primary' color='#7A87B9' hovercolor='rgba(122,135,185,.7)'>导入</CommonButton>
styled-components
最新推荐文章于 2024-07-08 10:41:57 发布