Tencent / Tencent/tdesign-react
[Grid] 允许自定义栅格数量
Open
Nobody has claimed this yet.
💪🏻 enhancement
- Dominant language
- TypeScript
- Stars
- 965
- Forks
- 373
- Avg merge
- 3d 6h
- Merged PRs (30d)
- 17
Description
这个功能解决了什么问题
在当前版本中,TDesign 的 Grid 组件默认提供 12 列的栅格系统。对于某些设计需求而言,这种划分显得过于宽泛,限制了布局的灵活性和精细度。为了满足更多样化的设计要求,尤其是需要更加紧凑、细致布局的情况,希望 Grid 组件可以允许用户自定义整个网格系统的列数,或者提供 12/24/36 的选项。
你建议的方案是什么
如上
Contributor guide
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
Locate the Grid component entry point and its current 12-column behavior. Review the existing Grid tests and documentation before clarifying whether arbitrary counts or only 12/24/36 should be supported. Done means the agreed column-count options work consistently and are covered by tests.
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