disabledStartDate = (current) => {const endValue = this.state.endValue;// if (!startValue || !endValue) {// return false;// }// return startValue.valueOf() > endValue.valueOf();return current < moment();} disabledDate={this.disabledStartDate}設(shè)置disabledDate不可選的日期,怎樣才可以把當(dāng)天變成可選的
DatePicker設(shè)置日期時(shí)怎么把當(dāng)天之前的日期禁選
蕭十郎
2018-07-12 14:19:33