docs: update docs
parent
9b7e441e2c
commit
c2a5c8fe8c
|
@ -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 */
|
||||
|
|
|
@ -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 */
|
||||
|
|
|
@ -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'}
|
||||
|
|
Loading…
Reference in New Issue