{% if widget.selected_count %}已选择 {{ widget.selected_count }} 项{% else %}请选择{% endif %}
{% for group_name, group_choices, group_index in widget.optgroups %} {% if group_name %}

{{ group_name }}

{% endif %} {% for option in group_choices %} {% endfor %} {% endfor %}