<FormItem label="登记时间" className="four-word-padding">
{getFieldDecorator('dates', {
initialValue: dates,
})(<RangePicker disabledDate={disabledDate} format="YYYY-MM-DD" />)}
</FormItem>
const disabledDate = current => {
// return current.valueOf() > Date.now();
// return moment() < moment(current);//当天之前
return !(current < moment().endOf('day') && current > moment().subtract(3, 'month')); // 近三月
};