docs: add tab & root, fix default value display
This commit is contained in:
parent
4df408c74e
commit
c7f6965c72
4 changed files with 78 additions and 27 deletions
|
|
@ -47,9 +47,12 @@ for (var propName in base) {
|
|||
doc.push('</div>')
|
||||
|
||||
|
||||
|
||||
for (var k in widgets.categories) {
|
||||
var category = widgets.categories[k]
|
||||
if (k == 'Containers') {
|
||||
category.push('root')
|
||||
category.push('tab')
|
||||
}
|
||||
|
||||
doc.push(`
|
||||
|
||||
|
|
@ -94,7 +97,7 @@ for (var k in widgets.categories) {
|
|||
dynamic = widgets.widgets[type].dynamicProps.includes(propName) ? '<i class="dynamic-prop-icon" title="dynamic"></i>' : ''
|
||||
|
||||
doc.push(`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>')}</code> | ${help} |`
|
||||
| <h4 id="${permalink}">${propName}${dynamic}<a class="headerlink" href="#${permalink}" title="Permanent link">#</a></h4> | \`${prop.type.replace(/\|/g,'\`|<br/>\`')}\` | <code>${(JSON.stringify(prop.value, null, ' ') || '').replace(/\n/g,'<br/>').replace('{','\\{')}</code> | ${help} |`
|
||||
)
|
||||
separator = false
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue