ProFormDatePicker组件-禁用时间选择器的部分日期
1. 只能选择当月或上一个月
const disabledDate = current => { return current && (current > moment().endOf('day') || current < moment().subtract(1, "months")); };
<ProFormDatePicker name="monthDate" label="时间" placeholder='请选择时间' format={'YYYY-MM'} picker="month" fieldProps={{ disabledDate: disabledDate }} />