element icon indicating copy to clipboard operation
element copied to clipboard

date-picker根据开始日期,控制结束日期范围

Open DaWei-GeGe opened this issue 9 years ago • 3 comments

开始日期(startTime)选择后,根据startTime控制结束日期(endTime)。 比如endTime大于startTime

disabledDate (time) {
  return  time.getTime() < this.startTime - 8.64e7
}

DaWei-GeGe avatar Aug 25 '17 09:08 DaWei-GeGe

Hello, this issue has been closed because it does not conform to our issue requirements. Please submit issues with issue-generator. More info can be found in #3693.

element-bot avatar Aug 25 '17 09:08 element-bot

你要的是这种效果吗? https://jsfiddle.net/hwpst4e9/

thomasyus avatar Dec 11 '17 08:12 thomasyus

存在作用域问题,要这样写: disabledDate : time => { return time.getTime() < this.startTime - 8.64e7 }

itart-top avatar Jun 26 '18 06:06 itart-top