VTable icon indicating copy to clipboard operation
VTable copied to clipboard

[Bug] 创建甘特图时 records 为空,之后再 setRecords 出现渲染空白

Open motan2008 opened this issue 3 months ago • 1 comments

Version

1.21.0

Link to Minimal Reproduction

Steps to Reproduce

  1. 代码使用官方 demo:https://visactor.io/vtable/demo/gantt/gantt-basic?version=1.21.0
  2. 将 option 的 records 设为空数组[]。
  3. 在创建完 ganttInstance 后立即调用 ganttInstance.setRecords(records)。
  4. 展开某个父节点,左侧表格下方出现渲染空白。
Image

Current Behavior

展开某个父节点,左侧表格下方出现渲染空白

Expected Behavior

展开某个父节点,左侧表格正常渲染

Environment

- OS:
- Browser:
- Framework:

Any additional comments?

No response

motan2008 avatar Oct 14 '25 01:10 motan2008

上面不初始化空数组也会复现。只要在有父子结构的数据中,调用 setRecords 或者 updateTaskRecord 后,在折叠或展开父任务时都会出现渲染空白

motan2008 avatar Oct 14 '25 08:10 motan2008