didi / cube-ui

:large_orange_diamond: A fantastic mobile ui lib implement by Vue

Home Page:https://didi.github.io/cube-ui/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

datepicker default min max time have problem

AdamYLK opened this issue · comments

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

@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]