pull/165/head
tjz 2018-04-14 21:49:27 +08:00
parent ae2b15ae51
commit 69ecd05c58
2 changed files with 2 additions and 3 deletions

View File

@ -3,7 +3,6 @@ import { isZhCN } from '../util'
import _ from 'lodash' import _ from 'lodash'
export default { export default {
props: { props: {
num: Number,
name: String, name: String,
searchData: Array, searchData: Array,
}, },

View File

@ -150,7 +150,7 @@ export default {
} }
return ( return (
<div class='page-wrapper'> <div class='page-wrapper'>
<Header num={Object.keys(AllDemo).length} searchData={searchData} name={name}/> <Header searchData={searchData} name={name}/>
<a-locale-provider locale={locale}> <a-locale-provider locale={locale}>
<div class='main-wrapper'> <div class='main-wrapper'>
<a-row> <a-row>
@ -162,7 +162,7 @@ export default {
inlineIndent={40} inlineIndent={40}
mode='inline'> mode='inline'>
{this.getDocsMenu(isCN)} {this.getDocsMenu(isCN)}
<a-sub-menu title='Components' key='Components'> <a-sub-menu title={`Components(${searchData.length})`} key='Components'>
{MenuGroup} {MenuGroup}
</a-sub-menu> </a-sub-menu>
</a-menu> </a-menu>