VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 甘特图中,当tasksShowMode为Tasks_Separate时,使用setRecords使用不同数据进行第二次渲染时,type: project的父级甘特图不会自动计算时间区间

Open YUST2020 opened this issue 2 months ago • 1 comments

Version

1.22.0

Link to Minimal Reproduction

https://visactor.io/vtable/demo/gantt/gantt-project-taskShowMode

Steps to Reproduce

1.打开上述链接 2.删除第220行:tasksShowMode: VTableGantt.TYPES.TasksShowMode.Project_Sub_Tasks_Inline, 3. 增加下列代码

setTimeout(() => {
  ganttInstance.setRecords([{
    id: 0,
    name: 'Planning',
    type: 'project',
    children: [
      {
        id: 1,
        name: 'Michael Smith 1',
        start: '2024-11-15',
        end: '2024-11-16',
        avatar: 'https://lf9-dp-fe-cms-tos.byteorg.com/obj/bit-cloud/VTable/custom-render/wolf.jpg'
      }
    ]
  }])
}, 1000)
  1. 当1s延迟后,观察到顶部父级甘特条并没有正确显示出来,在拖动子级条后才正确显示
Image

Current Behavior

父级甘特条在setRecords后并没有正确显示出来

Expected Behavior

父级甘特条在setRecords后能够正确显示出来

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

YUST2020 avatar Oct 24 '25 10:10 YUST2020

感谢你的反馈! 如果有开发者对这个 issue 感兴趣,请在issue下方留言“认领该issue”,留言后开始你的创作提pr给我们! 欢迎大家参与开源共建!我们非常感激每一位贡献者,提交pr后我们将为参与共建的开发者准备一份礼品。 参与共建可参考:https://visactor.io/vtable/guide/Contribution_Guide 与官方开发者交流问题可以下载飞书app扫码加入飞书群: 飞书20241029-170312 再次感谢你的支持!

Thank you for your feedback! We have received your question and will deal with it later. If any developer is interested in this issue, please leave a message "claim this issue" below the issue. Welcome to participate in open source co-construction! We are very grateful to every contributor. After submitting the PR, we will prepare a gift for the developers who participated in the co-construction. For participation in co-construction, please refer to: https://visactor.io/vtable/guide/Contribution_Guide To communicate with official developers, you can download the Feishu app and scan the QR code to join the Feishu group! Thank you again for your support!

fangsmile avatar Oct 27 '25 11:10 fangsmile