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

Calendar Selectable function #3042

Closed
RifeWang opened this issue Sep 14, 2016 · 8 comments
Closed

Calendar Selectable function #3042

RifeWang opened this issue Sep 14, 2016 · 8 comments
Assignees
Labels
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.

Comments

@RifeWang
Copy link

calendar组件顶部的年份和月份的下拉选择框显示的都是点,选中了某一天后,也没有暴露的API响应事件

@afc163
Copy link
Member

afc163 commented Sep 14, 2016

calendar 是日历,不是日期选择,目前没有选择行为。

@afc163 afc163 closed this as completed Sep 14, 2016
@RifeWang
Copy link
Author

我不想要DatePicker的下拉框,只想要一个日历,另外日历也可以有选择行为啊

@RifeWang
Copy link
Author

@afc163 我还是觉得日历组件太过于简单,暴露的API太少

@afc163 afc163 reopened this Nov 16, 2016
@afc163
Copy link
Member

afc163 commented Nov 16, 2016

Calendar 还是需要相应的选中行为:http://react-component.github.io/calendar/examples/full-calendar.html

@afc163 afc163 added the Feature label Nov 16, 2016
@afc163 afc163 changed the title calendar组件问题 calendar 缺少选择行为 Nov 16, 2016
@afc163 afc163 changed the title calendar 缺少选择行为 calendar 选择功能 Nov 16, 2016
@jinmmd
Copy link

jinmmd commented Dec 2, 2016

支持,我在使用日历组件时也有同样需求,需要能够在被点击的日期上获取值并操作。目前通过dateCellRender无法满足这一需求。
一种应用场景是,博客的日历,点击日期可以展示出对应的博文。

@afc163 afc163 added the help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request. label Jan 7, 2017
@benjycui
Copy link
Contributor

如下调整可好?

  • value defaultValue alias 为 showDate defaultShowDate 以明确含义。
  • 新增 selectedDate defaultSelectedDateonSelect 来满足选择功能。

@benjycui
Copy link
Contributor

FYI 在 react-component 这一层 selectedValue 才是用户选中的值,value 意思是当前展示的面板。

概念和 antd 这一层混淆了。。

@afc163 afc163 changed the title calendar 选择功能 Calendar Selectable function Feb 18, 2017
@benjycui benjycui self-assigned this Feb 28, 2017
@afc163 afc163 mentioned this issue Mar 1, 2017
1 task
@afc163 afc163 assigned afc163 and unassigned benjycui Mar 1, 2017
@afc163 afc163 closed this as completed Mar 28, 2017
@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 as resolved 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
help wanted The suggestion or request has been accepted, we need you to help us by sending a pull request.
Projects
None yet
Development

No branches or pull requests

4 participants