-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
make plugin configurable, improve component path resolving
- Loading branch information
Showing
4 changed files
with
93 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
<% if (typeof props !== 'undefined') { %> | ||
<table> | ||
<table> | ||
<tr> | ||
<td>Property name</td> | ||
<td>Type</td> | ||
<td>Required</td> | ||
<td>Default value</td> | ||
<td>Description</td> | ||
</tr> | ||
<% for(var key in props) { %> | ||
<% var val = props[key] %> | ||
<tr> | ||
<td>Property name</td> | ||
<td>Type</td> | ||
<td>Required</td> | ||
<td>Default value</td> | ||
<td>Description</td> | ||
<td><%- key %></td> | ||
<td><%- val.type ? val.type.name : '-' %></td> | ||
<td><%- val.required %></td> | ||
<td><%- val.defaultValue ? val.defaultValue.value.replace(/'/g, '').replace(/"/g, '') : '-' %></td> | ||
<td><%- val.description %></td> | ||
</tr> | ||
<% for(var key in props) { %> | ||
<% var val = props[key] %> | ||
<tr> | ||
<td><%- key %></td> | ||
<td><%- val.type.name %></td> | ||
<td><%- val.required %></td> | ||
<td><%- val.defaultValue.value %></td> | ||
<td><%- val.description %></td> | ||
</tr> | ||
<% } %> | ||
</table> | ||
<% } %> | ||
</table> | ||
<% } else { %> | ||
No props defined in component. | ||
<% } %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters