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

Open
majinkai opened this issue Feb 4, 2025 · 1 comment
Open

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

majinkai opened this issue Feb 4, 2025 · 1 comment
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

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

No branches or pull requests

2 participants