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

table总结行怎样四舍五入?round不行,可以给个样板吗? #11343

Closed
wanquantong opened this issue Dec 9, 2024 · 1 comment
Closed

Comments

@wanquantong
Copy link

描述问题:

table总结行怎样四舍五入?round不行

{
  "type": "tpl",
  "tpl": "${ROUND(rows|pick:version|sum,2)}"
}

通过配置 prefixRow 或 affixRow 来为表格顶部或底部添加总结行,
https://aisuda.bce.baidu.com/amis/zh-CN/components/table#总结行

@hury88
Copy link

hury88 commented Dec 12, 2024

image
类似于这种写法
tpl="${items|pick:companyAmount|sum|round}"
效果如下
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants