Skip to content

Commit 69ecd05

Browse files
committed
fix doc
1 parent ae2b15a commit 69ecd05

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

site/components/header.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { isZhCN } from '../util'
33
import _ from 'lodash'
44
export default {
55
props: {
6-
num: Number,
76
name: String,
87
searchData: Array,
98
},

site/components/layout.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ export default {
150150
}
151151
return (
152152
<div class='page-wrapper'>
153-
<Header num={Object.keys(AllDemo).length} searchData={searchData} name={name}/>
153+
<Header searchData={searchData} name={name}/>
154154
<a-locale-provider locale={locale}>
155155
<div class='main-wrapper'>
156156
<a-row>
@@ -162,7 +162,7 @@ export default {
162162
inlineIndent={40}
163163
mode='inline'>
164164
{this.getDocsMenu(isCN)}
165-
<a-sub-menu title='Components' key='Components'>
165+
<a-sub-menu title={`Components(${searchData.length})`} key='Components'>
166166
{MenuGroup}
167167
</a-sub-menu>
168168
</a-menu>

0 commit comments

Comments
 (0)