feat: 百分比后添加↑↓箭头指示趋势方向
This commit is contained in:
parent
066baae242
commit
5ed5053bfd
@ -78,7 +78,7 @@
|
||||
{
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "{{trend.percentage|round(1)}}%",
|
||||
"text": "{{trend.percentage|round(1)}}%{% if trend.trend == 'up' %} ↑{% elif trend.trend == 'down' %} ↓{% endif %}",
|
||||
"fontSize": "12px",
|
||||
"fontWeight": "600",
|
||||
"color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}"
|
||||
|
||||
@ -79,7 +79,7 @@
|
||||
{
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"text": "{{trend.percentage|round(1)}}%",
|
||||
"text": "{{trend.percentage|round(1)}}%{% if trend.trend == 'up' %} ↑{% elif trend.trend == 'down' %} ↓{% endif %}",
|
||||
"fontSize": "12px",
|
||||
"fontWeight": "600",
|
||||
"color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user