我想使用一个 SDP 作为开始日期,第二个作为结束日期,我正在使用以下代码。
<SingleDatePicker
date={this.state.date} // momentPropTypes.momentObj or null
onDateChange={date => this.setState({ date })} //
PropTypes.func.isRequired
focused={this.state.focused} // PropTypes.bool
onFocusChange={({ focused }) => this.setState({ focused })} //
PropTypes.func.isRequired
/>