mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 19:21:34 +08:00
docs(api): add option to add types to @property
This commit is contained in:
20
scripts/docs/templates/common.template.html
vendored
20
scripts/docs/templates/common.template.html
vendored
@ -187,6 +187,17 @@ defined in <$ githubViewLink(doc) $>
|
|||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Attribute</th>
|
<th>Attribute</th>
|
||||||
|
|
||||||
|
<@ set hasTypes = false @>
|
||||||
|
<@ for prop in doc.properties @>
|
||||||
|
<@ if prop.type @>
|
||||||
|
<@ set hasTypes = true @>
|
||||||
|
<@ endif @>
|
||||||
|
<@ endfor @>
|
||||||
|
<@ if hasTypes @>
|
||||||
|
<th>Type</th>
|
||||||
|
<@ endif @>
|
||||||
|
|
||||||
<th>Description</th>
|
<th>Description</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
@ -194,8 +205,17 @@ defined in <$ githubViewLink(doc) $>
|
|||||||
<@ for prop in doc.properties @>
|
<@ for prop in doc.properties @>
|
||||||
<tr>
|
<tr>
|
||||||
<td>
|
<td>
|
||||||
|
<@ if doc.name != 'Icon' @>
|
||||||
|
<@ endif @>
|
||||||
<$ prop.name $>
|
<$ prop.name $>
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
|
<@ if hasTypes @>
|
||||||
|
<td>
|
||||||
|
<$ prop.type.name $>
|
||||||
|
</td>
|
||||||
|
<@ endif @>
|
||||||
|
|
||||||
<td>
|
<td>
|
||||||
<$ prop.description $>
|
<$ prop.description $>
|
||||||
</td>
|
</td>
|
||||||
|
Reference in New Issue
Block a user