Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Descriptions] support evenly distribute multiple items in a row #4253

Closed
zhangpaopao0609 opened this issue Jun 4, 2024 · 1 comment
Closed
Labels
💪🏻 enhancement New feature or request to be published to be published

Comments

@zhangpaopao0609
Copy link
Collaborator

zhangpaopao0609 commented Jun 4, 2024

table layout

Currently, the layout of Descriptions is automatic, similar to an element box. Its width is determined by its content, and we cannot control it. For example, we cannot evenly distribute multiple items in a row. Therefore, we need to support this feature.

The table layout has two modes:

  1. Auto
  2. Fixed

Reference

solution

we need add one api for this feature.

  • tableLayout: as same as the table component

To be discussed

  • the name of API
  • If the user sets the layout to fixed, do we need to handle the content accordingly. For example: text truncation or ellipsis for overflowing content.
  • the default value?

my opinion

  • No processing, the user handles it by himself, and if necessary, it can be added later
  • fixed by default, which is more suitable for the scenario of this component
Copy link
Contributor

github-actions bot commented Jun 4, 2024

👋 @zhangpaopao0609,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💪🏻 enhancement New feature or request to be published to be published
Projects
None yet
Development

No branches or pull requests

2 participants