react-component / react-component/select

[Feature Request] tagsRender 自定义多选模式下所有 tag 的渲染

Open
#633 11 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
938
Forks
482
Avg merge
15h 8m
Merged PRs (30d)
2

Description

可渲染 label 到输入框中。类似如下的效果:
image

  • 单选模式可通过 optionLabelProp 实现
  • 如果多选应该加个 tagsRender 来实现?

此外,如果在没有值的时候单独渲染 label 也不太好实现,通过 placeholder 来做的话还得加上 min-width 的样式以及定制 placeholder 的样式,不太优雅。

不知道这个功能能否可以考虑?

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 provides no file, test, or entry point; begin by locating the Select component’s existing single- and multi-select rendering APIs. Define the desired custom tag and empty-value label behavior, then verify the result against the linked screenshot and both selection modes.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.