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设置showTime #15936

Closed
1 task
xiaoxintang opened this issue Apr 8, 2019 · 7 comments
Closed
1 task

RangePicker设置showTime #15936

xiaoxintang opened this issue Apr 8, 2019 · 7 comments
Assignees
Labels
🤔 Need Reproduce We cannot reproduce your problem Usage

Comments

@xiaoxintang
Copy link
Contributor

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

http://unreal

Steps to reproduce

设置showTime={{disabled:true}}无效

What is expected?

可以禁用,因为需要设置默认时分秒

What is actually happening?

还是可以选择

Environment Info
antd 3.15.0
React 16.8.4
System macos 10.14.4
Browser Google Chrome 73.0.3683.86

需要选择时间区域开始时间的时分秒为00:00:00,结束时间时分秒为23:59:59

@afc163 afc163 added the 🤔 Need Reproduce We cannot reproduce your problem label Apr 8, 2019
@ant-design-bot
Copy link
Contributor

ant-design-bot commented Apr 8, 2019

Hello @xiaoxintang. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @xiaoxintang, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。

@xiaoxintang
Copy link
Contributor Author

xiaoxintang commented Apr 15, 2019

Hello @xiaoxintang. Please provide a online reproduction by forking this link https://u.ant.design/codesandbox-repro or a minimal GitHub repository. Issues labeled by Need Reproduce will be closed if no activities in 7 days.

你好 @xiaoxintang, 我们需要你提供一个在线的重现实例以便于我们帮你排查问题。你可以通过点击 此处 创建一个 codesandbox 或者提供一个最小化的 GitHub 仓库。7 天内未跟进的 issue 将会被自动关闭。

image
其实就是这个TimePicker Options支持程度的问题,没必要提供在线重现实例吧??100%复现啊

@f48vj
Copy link

f48vj commented Apr 16, 2019

https://codesandbox.io/s/2xvwy4ojqp
预期不让选择时间 但是可以设置默认值

CodeSandbox
The online code editor tailored for web applications

@zombieJ
Copy link
Member

zombieJ commented Apr 16, 2019

TimePicker 的 disabled 是它的输入框禁用,DatePicker & RangePicker 是没有 TimePicker 的输入框的,只有下拉选择禁用,参考一下这个例子:
https://ant.design/components/date-picker-cn/#components-date-picker-demo-disabled-date

@ant-design-bot
Copy link
Contributor

Hello @xiaoxintang, we use GitHub issues to trace bugs or discuss plans of Ant Design. So, please don't ask usage questions here. You can try to ask questions on Stack Overflow or Segment Fault, then apply tag antd and react to your question.

你好 @xiaoxintang,Ant Design Issue 板块是用于 bug 反馈与需求讨论的地方。请勿询问如何使用的问题,你可以试着在 Stack Overflow 或者 Segment Fault 中提问(记得添加 antdreact 标签哦~)。

@ght5935
Copy link

ght5935 commented May 13, 2019

<RangePicker showTime format="YYYY-MM-DD HH:mm:ss" onChange={this.onTimeChange} />
1557729584(1)
点击选择时间
1557729666(1)
这里的月份不应该显示,所选的月份么

@AlanZhang456
Copy link

这个只要更新antd版本至3.13.5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🤔 Need Reproduce We cannot reproduce your problem Usage
Projects
None yet
Development

No branches or pull requests

7 participants