1 2 3 4

antd不可选择时间

//不能选择今天之前的日期
<DatePicker   format={this.timeFormat}   showTime   placeholder="项目结束日期"   disabledDate={this.disabledDate} />



  disabledDate(current) {
        // Can not select days before today and today
        return current && current < moment().endOf("day");
    }

  

posted @ 2019-11-15 11:29  红鲤鱼与LV  阅读(688)  评论(0编辑  收藏  举报