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] GanttTable设置tasksShowMode之后,scheduleCreatable需要可以创建排期 #3235

Closed
maInfinity opened this issue Dec 30, 2024 · 4 comments · Fixed by #3244
Closed
Assignees
Labels
feature 新需求

Comments

@maInfinity
Copy link

Version

1.14.1

Link to Minimal Reproduction

https://visactor.com/vtable/demo/gantt/gantt-interaction-creation-button

Steps to Reproduce

给gantt指定tashsShowMode(不论何种模式)

Current Behavior

指定之后, scheduleCreatable无法再生效。

Expected Behavior

希望scheduleCreatable能生效,仍然能通过点击右侧时间区域中的格子添加排期。

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

@maInfinity maInfinity added the bug Something isn't working label Dec 30, 2024
@fangsmile fangsmile self-assigned this Dec 31, 2024
@maInfinity
Copy link
Author

maInfinity commented Dec 31, 2024

目前 - 点击创建排期:仅当该行没有任务时可以点击并创建。若该行存在一个任务了,即使点击的格子中并没有任务也不再允许创建排期。
期望 - 点击创建排期:只要点击的那个格子没有任务就可以创建。

请问这个能一并也加上吗。 因为子任务布局中,一行可能会有多个任务。希望可以每个格子都可以通过点击创建排期(至少能捕获事件,实际创建排期可以通过捕获事件中的startDate endDate record等参数,利用自定义的交互实现增加。)

@fangsmile fangsmile changed the title [Bug] GanttTable设置tasksShowMode之后,scheduleCreatable无效 [Feature] GanttTable设置tasksShowMode之后,scheduleCreatable需要可以创建排期 Dec 31, 2024
@fangsmile fangsmile added feature 新需求 and removed bug Something isn't working labels Dec 31, 2024
@fangsmile
Copy link
Contributor

fangsmile commented Dec 31, 2024

一行有多个任务的这种情况没有办法自动创建呀,因为不知道给谁创建排期。
sub_tasks_separate tasks_separate才能自动创建,因为和源数据的对应关系比较明确 @maInfinity
我这块会放开, 需要业务方通过点击创建按钮的事件来自行弹出创建对话框

@maInfinity
Copy link
Author

感谢回复!

@fangsmile
Copy link
Contributor

@maInfinity 1.14.4-alpha.3 这个版本已经支持 可以试用下

fangsmile added a commit that referenced this issue Jan 8, 2025
…lecreatable

feat: tasksShowMode sub_task mode support createSchedule #3235
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