[Bug] 创建甘特图时 records 为空,之后再 setRecords 出现渲染空白
Open
Nobody has claimed this yet.
bug
- Dominant language
- TypeScript
- Stars
- 3.7k
- Forks
- 486
- Avg merge
- 1d 19h
- Merged PRs (30d)
- 16
Description
Version
1.21.0
Link to Minimal Reproduction
无
Steps to Reproduce
- 代码使用官方 demo:https://visactor.io/vtable/demo/gantt/gantt-basic?version=1.21.0
- 将 option 的 records 设为空数组[]。
- 在创建完 ganttInstance 后立即调用 ganttInstance.setRecords(records)。
- 展开某个父节点,左侧表格下方出现渲染空白。
Current Behavior
展开某个父节点,左侧表格下方出现渲染空白
Expected Behavior
展开某个父节点,左侧表格正常渲染
Environment
- OS:
- Browser:
- Framework:
Any additional comments?
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the official Gantt demo at https://visactor.io/vtable/demo/gantt/gantt-basic?version=1.21.0 and reproduce the sequence with records set to [] before calling setRecords(records). Inspect the Gantt rendering path involved when expanding a parent node; done means the lower-left table area renders normally after expansion.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization, frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100