Tencent / Tencent/tdesign-react

[TreeSelect]建议给选项暴露一个readonly

Open
#3,672 7 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

usage
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

开发中遇到一个需求,父节点需要像折叠面板一样,点击展开但是选不中,expandOnClickNode这个api目前没办法实现选不中的情况下展开。
或者不支持点击展开也行,给一个readonly功能!求求了

Contributor guide

Open the contributing guide

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

Start by reading the TreeSelect implementation and the existing expandOnClickNode API. Clarify whether the desired behavior is a readonly mode, expansion without selection, or both, then check the component's current tests if available. Done means the chosen behavior is exposed consistently and its interaction with expanding and selecting is covered.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.