Closed AdamYLK closed 3 years ago
1.12.38
http://no.need.code.to.show
default use $createDatePicker to create a picker
the min and max choose time is depends on the real time, no a const value. like new Date() to give the time.
the default min and max time has passed
vue: 2.6.11 better-scroll: 2.2.1
@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]
Version
1.12.38
Reproduction link
http://no.need.code.to.show
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