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

[statistic] 支持非数字展示 #4817

Open
HHaoWang opened this issue Dec 8, 2024 · 1 comment
Open

[statistic] 支持非数字展示 #4817

HHaoWang opened this issue Dec 8, 2024 · 1 comment
Labels
🎨 design Design and interactive

Comments

@HHaoWang
Copy link
Contributor

HHaoWang commented Dec 8, 2024

这个功能解决了什么问题

除了基本的数值展示外,还有很多非数字形式的数值展示,例如时间(xx分xx秒)、角度(xx度xx分)等,这类数值并不采用十进制形式,采用x.xx形式不符合使用习惯,现有的format仅支持number->number,无法解决上述这种非十进制数值的展示问题

你建议的方案是什么

扩展format参数,使其能够支持number->string形式,或者增加value slot,以支持灵活的数值展示

Copy link
Contributor

github-actions bot commented Dec 8, 2024

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

@PengYYYYY PengYYYYY added the 🎨 design Design and interactive label Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🎨 design Design and interactive
Projects
None yet
Development

No branches or pull requests

2 participants