docs(site): methods api do not show defaultValue (#1105)

This commit is contained in:
ajaxzheng 2023-12-13 09:22:35 +08:00 committed by GitHub
parent 3d702cbe3b
commit 8982c7fa34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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'
},

View File

@ -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>