react-component / react-component/tree-select
Is it possible not to show parent, in filterTreeNode
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 312
- Forks
- 204
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
For example my treeData is like.
{
label: 'Color',
key: '0-0',
disabled: false,
children: [
{
label: 'Yellow',
key: '0-0-0',
disabled: false
},
{
label: 'Red',
key: '0-0-1',
disabled: false
},
{
label: 'Green',
key: '0-0-2',
disabled: false
}
]
}
So when i'm searching "Yellow", parent "Color" also will be shown in result. is it possible to somehow split parent and children values in filterTreeNode?
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 at the TreeSelect filterTreeNode search behavior and trace the provided Color/Yellow example through result rendering. Determine whether parent visibility can be separated from child matching; done means the behavior is supported or its limitation is clearly documented and covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100