forked from opentiny/tiny-vue
docs(site): methods api do not show defaultValue (#1105)
This commit is contained in:
parent
3d702cbe3b
commit
8982c7fa34
|
@ -485,7 +485,7 @@ export default {
|
|||
{
|
||||
'name': 'show-header',
|
||||
'type': 'boolean',
|
||||
'defaultValue': 'false',
|
||||
'defaultValue': 'true',
|
||||
'desc': { 'zh-CN': '是否显示表头', 'en-US': 'Whether to display the table header' },
|
||||
'demoId': 'grid-header#header-hide-grid-header'
|
||||
},
|
||||
|
|
|
@ -55,7 +55,7 @@
|
|||
<th width="15%">{{ i18nByKey('name') }}</th>
|
||||
<th width="85%">{{ i18nByKey('desc') }}</th>
|
||||
</tr>
|
||||
<tr v-else-if="key.includes('events')">
|
||||
<tr v-else-if="key.includes('events') || key.includes('methods')">
|
||||
<th width="15%">{{ i18nByKey('name') }}</th>
|
||||
<th width="20%">{{ i18nByKey('propType') }}</th>
|
||||
<th width="65%">{{ i18nByKey('desc') }}</th>
|
||||
|
@ -90,7 +90,7 @@
|
|||
></a>
|
||||
<span v-else v-html="row.type"></span>
|
||||
</td>
|
||||
<td v-if="!key.includes('slots') && !key.includes('events')">
|
||||
<td v-if="!key.includes('slots') && !key.includes('events') && !key.includes('methods')">
|
||||
<span
|
||||
v-html="typeof row.defaultValue === 'string' ? row.defaultValue || '--' : row.defaultValue"
|
||||
></span>
|
||||
|
|
Loading…
Reference in New Issue