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

[FR]: calendar组件设置了日期范围之后,无法定位到今天的位置,打开组件显示的是start-date的那个日期 #2595

Closed
Xhyen opened this issue Oct 13, 2023 · 2 comments · Fixed by #2829
Labels
bug PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR
Milestone

Comments

@Xhyen
Copy link

Xhyen commented Oct 13, 2023

这个功能解决了什么问题?

期望增加或者默认设置成设置了区间之后,定位为今天的日期位置

你期望的组件设计是怎样的?

期望增加或者默认设置成设置了区间之后,定位为今天的日期位置

@Xhyen Xhyen added the Feature Request 新功能请求 label Oct 13, 2023
@eiinu eiinu added the PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR label Nov 28, 2023
@daiwanxing
Copy link
Contributor

daiwanxing commented Nov 30, 2023

目前可行的解决办法,当日历面板打开的时候手动定位今天的日期

calendarRef.value.scrollToDate(dayjs().format("YYYY-MM-DD"));

@eiinu eiinu added the bug label Nov 30, 2023
@eiinu eiinu removed the Feature Request 新功能请求 label Jan 5, 2024
@eiinu eiinu added this to the v4.2.8 milestone Jan 5, 2024
@yh927
Copy link

yh927 commented Jan 10, 2024

calendarRef.value.scrollToDate这个在使用时候会报cssScrollHeight的错误,应该是还没加载到最新日期的dom,所以不好用

@eiinu eiinu linked a pull request Jan 10, 2024 that will close this issue
21 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PR Welcome 已确认存在的问题,或者计划实现的功能,欢迎社区 PR
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants