react-component / react-component/tree-select
[Feature Request] Allow check parent when no child checked in `treeCheckable` mode
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 312
- Forks
- 204
- Avg merge
- 37m
- Merged PRs (30d)
- 1
Description
目前,treeCheckable 模式下,勾选父级会强制选中子级。建议添加一个 showCheckedStrategy , 允许只勾选父级(勾选子级时仍自动勾选父级)。
示例:

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
The issue names no files or tests; start by locating the treeCheckable selection-handling entry point in the tree-select component. Define how showCheckedStrategy should represent parent-only selection while preserving automatic parent selection from child checks, then verify the behavior with focused coverage for both cases.
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
- 45/100