react-component / react-component/tree
`children` of Tree is deprecated. Please use `treeData` instead.
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 1.3k
- Forks
- 490
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 5
Description
<Tree
className="file-tree"
expandedKeys={expandedKeys}
selectedKeys={selectedKeys}
onSelect={this.handleClick}
onExpand={this.handleExpand}
>
{files.map(createNode)}
</Tree>
我需要自定义TreeNode的title,使用这种模式会出现上面的警告信息
rc-tree@3.9.5
Contributor guide
No contributing guide indexed for this repository
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 by reproducing the shown Tree JSX with rc-tree@3.9.5, focusing on the children and treeData APIs and the custom TreeNode title requirement. Confirm what change is needed so the warning disappears while the custom title, selection, expansion, and file rendering continue to work.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100