我在用"react-big-calendar": "^0.20.3",
目前我正在使用getDrilldownView={(targetDate, currentViewName, configuredViewNames) => this.updateDate(targetDate, currentViewName, configuredViewNames)}
组件上的道具来获取大日历反应 js 中的开始和结束时间。我觉得这不是获取开始和结束日期的好方法,我也无法在文档中找到它。
https://codesandbox.io/s/vw3wlm63y
我想要的是 2019/1/27 作为开始日期和 2019/3/2 作为结束日期
并onRangeChange
在视图或日期更改时给出开始和结束日期,但我想要在页面加载时