const disabledDate = (current) => {
    return current < moment().subtract(29, 'days') || current > moment();
 };


// 只能选近30天的日期
<DatePicker disabledDate={disabledDate} />

  

相关文章:

  • 2021-12-14
  • 2021-07-08
  • 2022-02-23
  • 2021-08-01
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-22
相关资源
相似解决方案