这种方式可以有效的解决动态样式的问题;. const HomeWrapper = styled.div` color: ${props => props.color}; }. 添加attrs属性.
確定! 回上一頁