ant-design-vue a-range-picker 限制时间区间


          
        
pickTime_task: [],
methods: {
      moment,
      calendarChange(dates){
        this.pickTime_task = dates;
      },
      disabledDate(current){
        if (this.pickTime_task && this.pickTime_task[0]) {
          return (
            current < moment(this.pickTime_task[0]).subtract(90, "days") ||
            current > moment(this.pickTime_task[0]).add(90, "days")
          );
        } else {
          return false;
        }
      },
      blurDate(){
        console.log('3333333333')
      },
      handleTimeChange_task(value) {
        if (value.length) {
          this.addForm.time = 1;
        } else {
          this.addForm.time = '';
        }
        this.pickTime_task = value;
      },
      
  }

你可能感兴趣的:(vue.js,javascript,前端,ant-design-vue)