{# 四态 diff(K12):rows 由 components.diff_rows() 产生(same/added/removed/changed) #} {% for r in rows %} {% if r.state == "same" %} {% elif r.state == "added" %} {% elif r.state == "removed" %} {% else %} {% endif %} {% empty %} {% endfor %}
{{ r.key }}{{ r.new }} {% include "console/_badge.html" with tone="mute" text="未变" %}→ {{ r.new }} {% include "console/_badge.html" with tone="ok" text="新增" %}{{ r.old }} → {% include "console/_badge.html" with tone="err" text="移除" %}{{ r.old }} → {{ r.new }} {% include "console/_badge.html" with tone="warn" text="变更" %}
没有可比对的数据。