const disabledDate = (current) => { return current < moment().subtract(29, ‘days‘) || current > moment(); }; // 只能选近30天的日期 <DatePicker disabledDate={disabledDate} />
原文地址:https://www.cnblogs.com/sameen/p/10737213.html
时间: 2024-10-24 11:29:53
const disabledDate = (current) => { return current < moment().subtract(29, ‘days‘) || current > moment(); }; // 只能选近30天的日期 <DatePicker disabledDate={disabledDate} />
原文地址:https://www.cnblogs.com/sameen/p/10737213.html