datepicker default min max time have problem
AdamYLK opened this issue · comments
AdamCoder commented
Version
1.12.38
Reproduction link
Steps to reproduce
default use $createDatePicker to create a picker
What is expected?
the min and max choose time is depends on the real time, no a const value.
like new Date() to give the time.
What is actually happening?
the default min and max time has passed
Dependencies Version
vue: 2.6.11
better-scroll: 2.2.1
QiuShuiBai commented
@AdamYLK This is not a bug. But you can customize min and max as needed.
As example:
min: [new date().getFullYear() - 4, 1, 1, 0, 0, 0]