const disabledDate = (current) => { return current < moment().subtract(29, 'days') || current > moment(); }; // 只能选近30天的日期 <DatePicker disabledDate={disabledDate} />