File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed
packages/webdoc-default-template/tmpl
components/members-explorer Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 1212 const doc = obj;
1313 const members = doc.members;
1414
15+ if (members.length === 0) return;
16+
1517 const publicProperties = this.plugins.categoryFilter(doc, {
1618 access: "public",
1719 type: "PropertyDoc"
Original file line number Diff line number Diff line change 5353 require,
5454 sources,
5555 }) ?>
56+ <?js } else if (doc.type === "FunctionDoc") { ?>
57+ <?js if (doc.params) { ?><?js= this.partial("components/member/params.tmpl", doc.params) ?><?js } ?>
58+ <?js if (doc.returns) { ?><?js= this.partial("components/member/returns.tmpl", doc.returns) ?><?js } ?>
5659 <?js } ?>
5760
58- <?js= this.partial("components/summary/index.tmpl", doc) ?>
61+ <?js if (doc.members.length > 0) { ?>
62+ <?js= this.partial("components/summary/index.tmpl", doc) ?>
63+ <?js } ?>
5964
6065 <?js= this.partial("components/members.tmpl", {
6166 title: "Public Properties",
110115 <div class="footer-gap" style="min-height: 48px;"></div>
111116 <?js= this.partial("footer") ?>
112117</main>
113- <?js= this.partial("components/members-explorer/index.tmpl", doc) ?>
118+ <?js= this.partial("components/members-explorer/index.tmpl", doc) ?>
You can’t perform that action at this time.
0 commit comments