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

[tag] 希望支持自定义宽高 #4469

Open
yuqiuwen opened this issue Aug 9, 2024 · 4 comments
Open

[tag] 希望支持自定义宽高 #4469

yuqiuwen opened this issue Aug 9, 2024 · 4 comments
Labels
💭 discussion we are discussing 💪🏻 enhancement New feature or request

Comments

@yuqiuwen
Copy link

yuqiuwen commented Aug 9, 2024

这个功能解决了什么问题

目前tag只有3中大小,内容超过高度之后会溢出

你建议的方案是什么

能自定义高度

Copy link
Contributor

github-actions bot commented Aug 9, 2024

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

@uyarn uyarn added the 💪🏻 enhancement New feature or request label Aug 14, 2024
@uyarn
Copy link
Collaborator

uyarn commented Aug 14, 2024

这个API有点难支持,因为还需要影响到内部的font-size,我们讨论看看

@wenkeming
Copy link
Contributor

这个API有点难支持,因为还需要影响到内部的font-size,我们讨论看看

我觉得可以用minmax(var(--td-comp-size-...), auto)来实现自动高度,把auto换成具体值来实现自定义高度

@yuqiuwen
Copy link
Author

这个API有点难支持,因为还需要影响到内部的font-size,我们讨论看看

目前我是通过重写组件样式实现的

@uyarn uyarn added the 💭 discussion we are discussing label Sep 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💭 discussion we are discussing 💪🏻 enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants