docs: update docs

pull/225/head
tangjinzhou 2018-09-22 21:28:36 +08:00
parent 9b7e441e2c
commit c2a5c8fe8c
3 changed files with 17 additions and 0 deletions

View File

@ -67,7 +67,13 @@ import App from './App'
Vue.config.productionTip = false
/* v1.1.2 */
Vue.component(Button.name, Button)
Vue.component(Button.Group.name, Button.Group)
/* v1.1.3+ Automatically register components under Button, such as Button.Group */
Vue.use(Button)
Vue.prototype.$message = message
/* eslint-disable no-new */

View File

@ -71,7 +71,13 @@ import App from './App'
Vue.config.productionTip = false
/* v1.1.2 */
Vue.component(Button.name, Button)
Vue.component(Button.Group.name, Button.Group)
/* v1.1.3+ 自动注册Button下组件如Button.Group */
Vue.use(Button)
Vue.prototype.$message = message
/* eslint-disable no-new */

View File

@ -1,6 +1,8 @@
<script>
import { isZhCN } from '../util'
import sortBy from 'lodash/sortBy'
import packageInfo from '../../package.json'
export default {
props: {
name: String,
@ -66,6 +68,9 @@ export default {
<a-button ghost size='small' onClick={this.handleClick} class='header-lang-button' key='lang-button'>
{isCN ? 'English' : '中文'}
</a-button>
<a-select size='small' defaultValue={packageInfo.version} class='version'>
<a-select-option value={packageInfo.version}>{packageInfo.version}</a-select-option>
</a-select>
<a-menu selectedKeys={['components']} mode='horizontal' class='menu-site' id='nav'>
<a-menu-item key='components'>
{isCN ? '组件' : 'Components'}