feat: 百分比后添加↑↓箭头指示趋势方向

This commit is contained in:
yumoqing 2026-06-03 10:39:38 +08:00
parent 066baae242
commit 5ed5053bfd
2 changed files with 2 additions and 2 deletions

View File

@ -78,7 +78,7 @@
{ {
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "{{trend.percentage|round(1)}}%", "text": "{{trend.percentage|round(1)}}%{% if trend.trend == 'up' %} ↑{% elif trend.trend == 'down' %} ↓{% endif %}",
"fontSize": "12px", "fontSize": "12px",
"fontWeight": "600", "fontWeight": "600",
"color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}" "color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}"

View File

@ -79,7 +79,7 @@
{ {
"widgettype": "Text", "widgettype": "Text",
"options": { "options": {
"text": "{{trend.percentage|round(1)}}%", "text": "{{trend.percentage|round(1)}}%{% if trend.trend == 'up' %} ↑{% elif trend.trend == 'down' %} ↓{% endif %}",
"fontSize": "12px", "fontSize": "12px",
"fontWeight": "600", "fontWeight": "600",
"color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}" "color": "{% if trend.trend == 'up' %}#22c55e{% elif trend.trend == 'down' %}#ef4444{% else %}#94a3b8{% endif %}"