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

空的单元格不支持点击事件? #133

Open
KeyX-y opened this issue Mar 5, 2024 · 3 comments
Open

空的单元格不支持点击事件? #133

KeyX-y opened this issue Mar 5, 2024 · 3 comments

Comments

@KeyX-y
Copy link

KeyX-y commented Mar 5, 2024

希望支持
在空的单元格上,支持点击事件,拿到开始、结束时间、动态创建数据
如果在源码上 要怎么改

@w1301625107
Copy link
Owner

dom点击事件能获取鼠标的点击位置,配合cellwidth的startTime可以算出点击位置的时间

@KeyX-y
Copy link
Author

KeyX-y commented Mar 11, 2024

@w1301625107 感谢,已实现
有个疑问,顶部的timeline 默认设置一天,间隔是1个小时,等分24份,但是在屏幕更大的设备上、会显示下一天的时间
我理解,选择开始和结束时间,应该等分屏幕的宽,你的demo就有这个问题

@w1301625107
Copy link
Owner

cellwidth 才是控制了时间条有多长

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

No branches or pull requests

2 participants