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显示日期自动更改的体验问题 #4985

Closed
lidongzhangg opened this issue Feb 21, 2017 · 13 comments · Fixed by #5663
Closed

RangePicker显示日期自动更改的体验问题 #4985

lidongzhangg opened this issue Feb 21, 2017 · 13 comments · Fixed by #5663
Assignees

Comments

@lidongzhangg
Copy link

lidongzhangg commented Feb 21, 2017

Environment(required)

  • antd version:2.6.0
  • OS and its version:OS X 10.11.6
  • Browser and its version:Google Chrome 版本 56.0.2924.87 (64-bit)

What did you do? Please provide steps to re-produce your problem.

例:
使用RangePicker组件,开始时间选择2015-1-1,结束时间选择2016-1-1
选择开始时间日历标题会自动跳到结束时间的上个月

image

点击红色框的日期时,前面已经选中的日期会自动跳转到2017年
正常的思维是,已经选中的开始日期不变,当选择结束日期时,只更改结束日期

What do you expected?

What happen?

Re-producible online demo

@lidongzhangg lidongzhangg changed the title RangePicker体验问题 RangePicker显示日期自动更改的体验问题 Feb 21, 2017
@benjycui
Copy link
Contributor

这个问题在于交互设计就是把这两个面板绑定了

image

@lidongzhangg
Copy link
Author

这样会误以为显示的开始时间就是点击“确定”按钮后出现在文本框的开始时间,而点击“确定”后,显示在文本框的开始时间并不是看到的。如果交互是这样,我能通过接口实现修改交互吗?

@benjycui
Copy link
Contributor

发给交互评估了,个人也觉得不合理。

@benjycui
Copy link
Contributor

benjycui commented Mar 1, 2017

image

@benjycui
Copy link
Contributor

benjycui commented Mar 1, 2017

@lidongzhangg
Copy link
Author

第5步,是不是选中结束时间会切换开始时间面板?
个人觉得修改结束时间时不自动更改开始时间就可以了,已选中的开始时间始终固定不变,开始时间面板显示的时间也不变

@yesmeck
Copy link
Member

yesmeck commented Mar 10, 2017

按 jquery-date-range-picker 逻辑左右两个面板应该完全绑定的。这里第五步的意思是点击左边的箭头切换年份时,右边的年份也要跟着变?

@benjycui
Copy link
Contributor

@yesmeck 内部沟通,交互文字说不清。。

@afc163
Copy link
Member

afc163 commented Mar 21, 2017

市面上 RangePicker 都是左右面板绑定的,我觉得没必要改。

@afc163 afc163 closed this as completed Mar 21, 2017
@benjycui
Copy link
Contributor

Online demo: https://rawgit.com/longbill/jquery-date-range-picker/master/index.html

其实这个例子里面就不是绑定的。

不过现在的问题是,我们最近人手更紧了,有需求建议 PR。

@benjycui benjycui added the help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. label Mar 22, 2017
@afc163 afc163 reopened this Mar 22, 2017
@afc163
Copy link
Member

afc163 commented Mar 22, 2017

@benjycui 这个例子不错。

@lidongzhangg
Copy link
Author

个人觉得,切换切换两次月份就晕了,其他用户也会遇到同样的问题。RangePicker的做法也不一定是最佳做法,这个交互优化一下,比RangePicker更好用:)

@benjycui benjycui assigned benjycui and unassigned yesmeck Mar 29, 2017
@benjycui benjycui added Enhancement and removed help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. labels Mar 29, 2017
afc163 added a commit that referenced this issue Apr 13, 2017
chore: improve ux of RangeCalendar, close: #4985
@lock
Copy link

lock bot commented May 1, 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 and limited conversation to collaborators May 1, 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.

4 participants