element icon indicating copy to clipboard operation
element copied to clipboard

[Bug Report] el-date-picker的type设为datetimerange也就是日期时间段选择的时候,无法限制到时分秒,比如我要今天的当前时间后才能选择,只能设置到天,不能设到时分秒

Open junhunlrw opened this issue 1 year ago • 5 comments

Element UI version

2.15.13

OS/Browsers version

windows / chrome

Vue version

2.7.14

Reproduction Link

https://codepen.io/junhunlrw/pen/NWOExjm

Steps to reproduce

1、定义时间段的dom 2、设置options: pickerOptions:{ disabledDate(time) { return time.getTime() < Date.now() - 8.64e7; } }

What is Expected?

希望当前时间之前的日期和时间都不能选择,比如当前时间为‘2023-05-19 16:34:22’,如果开始时间选了今天,那么时间选择那里就要把16:34:22之前的时间都禁掉

What is actually happening?

只能禁用掉年月日,禁不掉时分秒,一样可以选择当前时间之前的时分秒

junhunlrw avatar May 19 '23 08:05 junhunlrw