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

如果我想放大一下时间,最小单位是天该如何修改比较方便? #67

Open
mrdznet opened this issue Jul 4, 2021 · 3 comments

Comments

@mrdznet
Copy link

mrdznet commented Jul 4, 2021

如果我想放大一下时间周,最小单位是天(只保留日期,彻底放弃具体时间),那么该如何修改比较方便么?希望能给个思路。

@w1301625107
Copy link
Owner

scale 直接调到1 day 可以满足吗?

@mrdznet
Copy link
Author

mrdznet commented Jul 5, 2021

好像不行 ,我找到一款可以满足需求的 https://github.com/GGBeng1/Gantt ,然后得结合一下。

@w1301625107
Copy link
Owner

export function getWidthAbout2Times(start, end, arg) {

改下这个,把返回的时间精度变成天,配合 scale 为一天应该可以

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