Tencent / Tencent/tdesign-react

[ConfigProvider] 全局特性,希望可给Input、Select等组件设置size属性

Open
#2,839 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

💪🏻 enhancement 💭 discussion
Dominant language
TypeScript
Stars
965
Forks
373
Avg merge
3d 6h
Merged PRs (30d)
17

Description

什么问题

项目需要给Select 、Input组件设置一致的大小,而不希望在每一次使用组件时单独设置。

组件功能无需二次封装,因此希望可以统一设置。

你建议的方案是什么

希望能够在ConfigProvider中支持配置

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 ConfigProvider entry point and then inspect how size is handled in the Input and Select components. Confirm the intended configuration behavior and identify the relevant component tests; done means both components can receive a consistent size through ConfigProvider without per-use configuration.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.