甘特图 API方法setParent页面内容setParent Description 为任务分配一个父任务 setParent: (task: Task, pid: number | string) => voidParameters task - (required) Task - 任务对象 pid - (required) number | string - 父任务的ID Examplegantt.setParent(gantt.getTask(2), 20);gantt.updateTask(2);Need help?Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.