-
-
Notifications
You must be signed in to change notification settings - Fork 41
/
Copy pathdocstrap.ejs
97 lines (91 loc) · 3.41 KB
/
docstrap.ejs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
</p></div></div> <%# Prematurely close JSDoc default template tags %>
<% if(props.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-props">Props</h3>
<table class="table table-responsive table-hover table-striped" data-jsdoc-vuejs="table-props">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Required?</th>
<th>Description</th>
</tr>
</thead>
<tbody><% props.forEach(function(prop) { %><tr>
<td><code><%- prop.name %></code></td>
<td><%- renderType(prop.type) %></td>
<td><%- typeof prop.defaultvalue === 'undefined' ? '-' : `<code>${prop.defaultvalue}</code>` %></td>
<td><%- prop.optional ? 'No' : '<b>Yes</b>' %></td>
<td><%- typeof prop.description === 'undefined' ? '-' : prop.description %></td>
</tr><% }) %></tbody>
</table>
<% } %>
<% if(data.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-data">Data</h3>
<table class="table table-responsive table-hover table-striped" data-jsdoc-vuejs="table-data">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Default value</th>
<th>Description</th>
</tr>
</thead>
<tbody><% data.forEach(function(d) { %><tr>
<td><code><%- d.name %></code></td>
<td><%- renderType(d.type) %></td>
<td><%- typeof d.defaultvalue === 'undefined' ? '-' : `<code>${d.defaultvalue}</code>` %></td>
<td><%- typeof d.description === 'undefined' ? '-' : d.description %></td>
</tr><% }) %></tbody>
</table>
<% } %>
<% if(computed.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-computed">Computed</h3>
<table class="table table-responsive table-hover table-striped" data-jsdoc-vuejs="table-computed">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><% computed.forEach(function(c) { %><tr>
<td><code><%- c.name %></code></td>
<td><%- renderType(c.type) %></td>
<td><%- typeof c.description === 'undefined' ? '-' : c.description %></td>
</tr><% }) %></tbody>
</table>
<% } %>
<% if(event.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-event">Events</h3>
<table data-jsdoc-vuejs="table-event" class="table table-responsive table-hover table-striped">
<thead>
<tr>
<th>Name</th>
<th>Payload Type</th>
<th>Description</th>
</tr>
</thead>
<tbody><% event.forEach(function(c) { %><tr>
<td><code><%- c.name %></code></td>
<td><%- renderType(c.type) %></td>
<td><%- typeof c.description === 'undefined' ? '-' : c.description %></td>
</tr><% }) %></tbody>
</table>
<% } %>
<% if(slots.length > 0) { %>
<h3 class="subsection-title" style="margin-top: 1em" data-jsdoc-vuejs="section-event">Slots</h3>
<table data-jsdoc-vuejs="table-event" class="table table-responsive table-hover table-striped">
<thead>
<tr>
<th>Name</th>
<th>Description</th>
</tr>
</thead>
<tbody><% slots.forEach(function(c) { %><tr>
<td><code><%- c.name %></code></td>
<td><%- typeof c.description === 'undefined' ? '-' : c.description %></td>
</tr><% }) %></tbody>
</table>
<% } %>
<div class="container-overview"><div><p> <%# Re-open JSDoc template tags %>