2018-02-01 06:23:59 +00:00
|
|
|
|
<script>
|
|
|
|
|
export default {
|
2018-03-21 05:52:06 +00:00
|
|
|
|
props: {
|
|
|
|
|
num: Number,
|
|
|
|
|
},
|
2018-02-01 06:23:59 +00:00
|
|
|
|
data () {
|
|
|
|
|
return {
|
|
|
|
|
}
|
|
|
|
|
},
|
2018-03-21 05:31:55 +00:00
|
|
|
|
methods: {
|
|
|
|
|
handleClick () {
|
|
|
|
|
const { lang, name } = this.$route.params
|
|
|
|
|
this.$router.push({
|
|
|
|
|
path: `/${lang === 'cn' ? 'us' : 'cn'}/components/${name}`,
|
|
|
|
|
})
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
render () {
|
|
|
|
|
const { lang } = this.$route.params
|
|
|
|
|
return (
|
|
|
|
|
<header id='header'>
|
|
|
|
|
<a-row>
|
|
|
|
|
<a-col xxl={4} xl={5} lg={5} md={6} sm={24} xs={24}>
|
2018-03-21 05:52:06 +00:00
|
|
|
|
<router-link to={{ path: `/${lang}` }} id='logo'>
|
2018-03-22 09:23:51 +00:00
|
|
|
|
<img alt='logo' src='https://raw.githubusercontent.com/vueComponent/ant-design/master/logo.png' />
|
2018-03-21 05:52:06 +00:00
|
|
|
|
<span> VUE-ANTD</span>
|
|
|
|
|
</router-link>
|
2018-03-21 05:31:55 +00:00
|
|
|
|
</a-col>
|
|
|
|
|
<a-col xxl={20} xl={19} lg={19} md={18} sm={0} xs={0}>
|
|
|
|
|
<div id='search-box'>
|
2018-03-21 05:52:06 +00:00
|
|
|
|
进度:{this.num} / 52
|
2018-03-21 05:31:55 +00:00
|
|
|
|
</div>
|
|
|
|
|
<a-button ghost size='small' onClick={this.handleClick} class='header-lang-button' key='lang-button'>
|
|
|
|
|
{lang === 'cn' ? 'English' : '中文'}
|
|
|
|
|
</a-button>
|
|
|
|
|
<a-menu selectedKeys={['components']} mode='horizontal' class='menu-site' id='nav'>
|
|
|
|
|
<a-menu-item key='components'>
|
|
|
|
|
{lang === 'cn' ? '组件' : 'Components'}
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
<a-menu-item key='github'>
|
|
|
|
|
<a href='https://github.com/vueComponent/ant-design'>GitHub</a>
|
|
|
|
|
</a-menu-item>
|
|
|
|
|
</a-menu>
|
|
|
|
|
</a-col>
|
|
|
|
|
</a-row>
|
|
|
|
|
</header>
|
|
|
|
|
)
|
|
|
|
|
},
|
2018-02-01 06:23:59 +00:00
|
|
|
|
}
|
|
|
|
|
</script>
|