{% import "lib/descendants.html" as descendants -%} {% macro renderOptionsTable(doc) %} {%- for option in doc.members %} {% endfor -%}
选项说明
{$ option.name $} {$ option.shortDescription | marked $}
{% for ancestor in doc.extendsClauses %}{% if ancestor.doc %}

继承自 {$ ancestor.doc.name $} 装饰器

{$ renderOptionsTable(ancestor.doc) $} {% endif %}{% endfor %} {% endmacro %} {% if doc.members.length %}
{$ renderOptionsTable(doc) $} {$ descendants.renderDescendants(doc, 'decorator', '子类') $}
{% endif %}