<a-date-picker :disabledDate="disabledEndDate"  style="width: 100%" placeholder="请输入出生日期" />
//
设置可选最大日期 disabledEndDate (endValue) { const startValue = new Date() if (!endValue || !startValue) { return false } return startValue.valueOf() <= endValue.valueOf() }

 

相关文章:

  • 2021-12-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-15
  • 2021-12-04
  • 2021-12-04
  • 2021-12-04
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-12-12
相关资源
相似解决方案