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

RangePicker无法在日历中不展示秒 #3808

Closed
jinmmd opened this issue Nov 11, 2016 · 2 comments · Fixed by #3831
Closed

RangePicker无法在日历中不展示秒 #3808

jinmmd opened this issue Nov 11, 2016 · 2 comments · Fixed by #3831
Assignees

Comments

@jinmmd
Copy link

jinmmd commented Nov 11, 2016

发生问题的环境是:

  • antd 版本: 2.3.0
  • 操作系统及其版本: win7
  • 浏览器及其版本: chrome 54.0

您做了什么?请提供尽可能详细的重现步骤。

引入RangePicker,增加时间选择,指定格式为“YYYY-MM-DD HH:mm”,如下

<RangePicker showTime format="YYYY-MM-DD HH:mm">
输入框是正常的
2016-11-11_174009

您期待的结果是:

弹出日历选择日期时,输入框中的时间也能根据参数格式化,即不显示秒

实际上的结果是:

2016-11-11_174035

输入框和时间选择框中,希望都能实现格式化(看了下源码,但是没能解决)
2016-11-11_175548

可重现的在线演示

@jinmmd
Copy link
Author

jinmmd commented Nov 11, 2016

且RangePicker无法支持hideDisabledOptions,希望组件启用showTime时,能够将属性传给TimePicker,这样options就能复用了。另外,文档中提到RangePicker的showTime类型为Object or Boolean,默认值为TimePicker Options,但试了下直接传object好像不行。

RaoHai added a commit to RaoHai/ant-design that referenced this issue Nov 14, 2016
afc163 added a commit that referenced this issue Nov 15, 2016
@lock
Copy link

lock bot commented May 3, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators May 3, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants