File tree Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Expand file tree Collapse file tree 3 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,13 @@ import App from './App'
67
67
68
68
Vue .config .productionTip = false
69
69
70
+ /* v1.1.2 */
70
71
Vue .component (Button .name , Button)
72
+ Vue .component (Button .Group .name , Button .Group )
73
+
74
+ /* v1.1.3+ Automatically register components under Button, such as Button.Group */
75
+ Vue .use (Button)
76
+
71
77
Vue .prototype .$message = message
72
78
73
79
/* eslint-disable no-new */
Original file line number Diff line number Diff line change @@ -71,7 +71,13 @@ import App from './App'
71
71
72
72
Vue .config .productionTip = false
73
73
74
+ /* v1.1.2 */
74
75
Vue .component (Button .name , Button)
76
+ Vue .component (Button .Group .name , Button .Group )
77
+
78
+ /* v1.1.3+ 自动注册Button下组件,如Button.Group */
79
+ Vue .use (Button)
80
+
75
81
Vue .prototype .$message = message
76
82
77
83
/* eslint-disable no-new */
Original file line number Diff line number Diff line change 1
1
<script >
2
2
import { isZhCN } from ' ../util'
3
3
import sortBy from ' lodash/sortBy'
4
+ import packageInfo from ' ../../package.json'
5
+
4
6
export default {
5
7
props: {
6
8
name: String ,
@@ -66,6 +68,9 @@ export default {
66
68
< a- button ghost size= ' small' onClick= {this .handleClick } class = ' header-lang-button' key= ' lang-button' >
67
69
{isCN ? ' English' : ' 中文' }
68
70
< / a- button>
71
+ < a- select size= ' small' defaultValue= {packageInfo .version } class = ' version' >
72
+ < a- select- option value= {packageInfo .version }> {packageInfo .version }< / a- select- option>
73
+ < / a- select>
69
74
< a- menu selectedKeys= {[' components' ]} mode= ' horizontal' class = ' menu-site' id= ' nav' >
70
75
< a- menu- item key= ' components' >
71
76
{isCN ? ' 组件' : ' Components' }
You can’t perform that action at this time.
0 commit comments