Skip to content

添加 DataTable 的数字格式化默认支持 #3216

Answered by ArgoZhang
densen2014 asked this question in Q&A
Discussion options

You must be logged in to vote

@densen2014 这个很早的时候 2 年前吧,有一个网友就要这样,被我否定了。组件是全球人在用。这种规则不要内置了。内置后确实有一大部分人收益,但是不受益的人要更改这个就很茫然。不符合常理

想用的人多设置两个参数就达到预期效果了 Align FormatString

解决思路

准备扩展一个 TableIntAutoCenterColumn 使用者可以简化这些配置项

<TableIntAutoCenterColumn @bind-Field="context.Count" />

内置如果是 int 自动居中 保留两位数字

请点击👇 Make as answer

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@densen2014
Comment options

densen2014 Apr 7, 2024
Collaborator Author

Answer selected by densen2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
enhancement New feature or request
2 participants
Converted from issue

This discussion was converted from issue #3215 on April 04, 2024 22:38.