通过修改node节点子id的顺序,能实现叶子节点的排序
Open
feature 💡
- Dominant language
- TypeScript
- Stars
- 12.3k
- Forks
- 1.6k
- PR merge metrics
- No merged PRs in 30d
Description
### Describe the feature / 功能描述
我想在树形图维护叶子节点的顺序,但是我修改了NodeData 中 children中id的顺序,重新渲染不会生效,目前是通过维护一个树的数据,重新渲染可以实现,但是每次递归修改树中叶子节点顺序(或属性)代价太大了,希望能支持通过updateNodeData直接修改node节点子id的顺序,重新渲染实现该场景
### Are you willing to contribute? / 是否愿意参与贡献?
✅ Yes / 是
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by tracing updateNodeData and the rerender path for NodeData.children, focusing on how child IDs are converted into leaf order. Done means changing the child ID order through updateNodeData updates the rendered leaf order without recursively rebuilding the entire tree.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- data-visualization
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100