Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Airbnb 的 react-dates 包,但我无法为其设置 CSS 样式。所以,如果你使用它,请帮助我。如何为反应日期设置 CSS 样式?
“实际的”
我希望日期选择器是
react-dates 依赖于格式化日期的时刻。如果您只需要显示一个完整的日期,则需要使用 displayFormat 属性格式化您的日期,如下例所示:
static defaultProps = { Wrapper: styles.Wrapper, displayFormat: 'MMM DD YYYY', invalid: false, disabled: false, };