Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker 组件,默认日期没设置在 minDate 和 maxDate 范围内 #1033

Closed
meng009 opened this issue Mar 22, 2017 · 1 comment · Fixed by #1035
Closed

DatePicker 组件,默认日期没设置在 minDate 和 maxDate 范围内 #1033

meng009 opened this issue Mar 22, 2017 · 1 comment · Fixed by #1035
Assignees

Comments

@meng009
Copy link

meng009 commented Mar 22, 2017

DatePicker组件,设置了最大值和最小值,如果当前日期没有在这个范围里面,点击选择日期,在不拉选日期时,直接确定。默认的是当前的日期。那么设置最大值和最小值就失去了意义了。

@warmhug
Copy link
Contributor

warmhug commented Mar 22, 2017

这个我觉得需要你自己去保障在范围内,不要用默认的当前的日期即可。
现在你可以这么理解:最大最小日期范围、就是给你在滑动选择时的一个限制。
组件也可以考虑增强下、把默认日期、设置到最大最小范围内。


建议: issue 的标题、正文,不要写的一样。请认真提 issue !!

@warmhug warmhug changed the title DatePicker组件,设置了最大值和最小值,如果当前日期没有在这个范围里面,点击选择日期,在不拉选日期,直接确定。默认的是当前的日期 DatePicker 组件,默认日期没设置在 minDate 和 maxDate 范围内 Mar 22, 2017
@paranoidjk paranoidjk self-assigned this Mar 22, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants