The Wayback Machine - https://web.archive.org/web/20201015111518/https://github.com/rsuite/rsuite/issues/1315
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

关于日历月份更改的外部动态控制方式 #1315

Open
sharks-wang opened this issue Oct 12, 2020 · 2 comments
Open

关于日历月份更改的外部动态控制方式 #1315

sharks-wang opened this issue Oct 12, 2020 · 2 comments

Comments

@sharks-wang
Copy link

@sharks-wang sharks-wang commented Oct 12, 2020

What problem does this feature solve?

在控制一个日历的月份更改时,需要更改两个日历的月份。例如:左侧小日历更改月份,右侧大日历月份同样更改。此时就需要能控制日历的月份属性。

What does the proposed API look like?

能够在外部控制日历的显示月份,不是单一的通过默认的按钮。

@simonguo
Copy link
Member

@simonguo simonguo commented Oct 12, 2020

你可以通过设置 value 属性,让 Calendar 显示到指定的月份(受控)。

 <Calendar value={new Date('2020-12-01')} />
@sharks-wang
Copy link
Author

@sharks-wang sharks-wang commented Oct 12, 2020

您可以通过设置值属性,让日历显示到指定的月份(预期)。

 <日历 = { 日期('2020-12-01' } / >

已解决 谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.