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] 增加switchMode切换月份事件 #3378

Closed
prprprPro opened this issue Dec 22, 2024 · 2 comments · Fixed by #3385
Closed

[calendar] 增加switchMode切换月份事件 #3378

prprprPro opened this issue Dec 22, 2024 · 2 comments · Fixed by #3385
Labels
enhancement New feature or request

Comments

@prprprPro
Copy link

这个功能解决了什么问题

能够在切换月份时返回到页面上进行处理,在数据量较大或需要动态加载每个月的单独数据时非常有效。

你建议的方案是什么

canlendar.jshandleSwitchModeChange方法的最后加上

this._trigger('switch', {
	value: newValue
});
Copy link
Contributor

👋 @prprprPro,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@anlyyao
Copy link
Collaborator

anlyyao commented Dec 23, 2024

@prprprPro 下个版本将补充一个 panel-change 事件,事件类型为 (year: number, month: number) => void

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants