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

[Feature] VTable-Gantt,各style能否增加Function的支持 #3364

Closed
majinkai opened this issue Feb 4, 2025 · 2 comments · Fixed by #3399
Closed

[Feature] VTable-Gantt,各style能否增加Function的支持 #3364

majinkai opened this issue Feb 4, 2025 · 2 comments · Fixed by #3399
Assignees
Labels
feature 新需求

Comments

@majinkai
Copy link

majinkai commented Feb 4, 2025

What problem does this feature solve?

目前只能通过customLayout实现barStyle等参数根据状态的判断设置,可否增加barStyle对Function的支持

What does the proposed API look like?

barStyle: args => {
  const { taskRecord } = args;
  return {
    barColor: taskRecord.isDelay ? 'red' : 'gray';
  };
}
@majinkai majinkai added the feature 新需求 label Feb 4, 2025
@fangsmile fangsmile self-assigned this Feb 5, 2025
@fangsmile
Copy link
Contributor

可以参照resizable 或 moveable的自定义函数方式 来给VTable-Gantt贡献代码,给我们提pr哦 @majinkai

@fangsmile fangsmile linked a pull request Feb 10, 2025 that will close this issue
21 tasks
@majinkai
Copy link
Author

labelTextStyle、milestoneStyle、hoverBarStyle、selectedBarStyle,这些能否同步增加Function的支持

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

Successfully merging a pull request may close this issue.

2 participants