react-component / react-component/tree-select

[Feature Request] Allow check parent when no child checked in `treeCheckable` mode

Open
#401 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
312
Forks
204
Avg merge
37m
Merged PRs (30d)
1

Description

目前,treeCheckable 模式下,勾选父级会强制选中子级。建议添加一个 showCheckedStrategy , 允许只勾选父级(勾选子级时仍自动勾选父级)。

示例:

image

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.