antd 开始时间<结束时间 结束时间>开始时间


  
     
  

disabledStartDate(startValue) {
     const endValue = new Date(this.queryInfo.endTime).getTime();
     if (!startValue || !endValue) {
       return false;
     }
     return startValue.valueOf() > endValue.valueOf();
},
disabledEndDate(endValue) {
   const startValue = new Date(this.queryInfo.startTime).getTime();
   if (!endValue || !startValue) {
     return false;
   }
   return startValue.valueOf() >= endValue.valueOf();
},

你可能感兴趣的:(vue.js,javascript,ecmascript)