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

处理同一时间段有多条任务 #101

Open
lemonKun opened this issue Jun 9, 2022 · 1 comment
Open

处理同一时间段有多条任务 #101

lemonKun opened this issue Jun 9, 2022 · 1 comment

Comments

@lemonKun
Copy link

lemonKun commented Jun 9, 2022

请问如果同一时间段有多条任务,现在由于gantt-block-item position: absolute,所以这几条任务就会互相重合覆盖;有什么办法能够计算重合任务的数量,并且自动计算高度,撑开每个单元格呢?请大佬提供下思路

@w1301625107
Copy link
Owner

目前的组件是不支持这个自动高度的。只能说找一个变通的方法,适用于重叠数量不多的情况。假设有3个重叠,每个 block-item 则各占据三分之一的高度,待鼠标 hover 的时候修改 css 样式则占满高度。

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