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'
6767
6868Vue .config .productionTip = false
6969
70+ /* v1.1.2 */
7071Vue .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+
7177Vue .prototype .$message = message
7278
7379/* eslint-disable no-new */
Original file line number Diff line number Diff line change @@ -71,7 +71,13 @@ import App from './App'
7171
7272Vue .config .productionTip = false
7373
74+ /* v1.1.2 */
7475Vue .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+
7581Vue .prototype .$message = message
7682
7783/* eslint-disable no-new */
Original file line number Diff line number Diff line change 11<script >
22import { isZhCN } from ' ../util'
33import sortBy from ' lodash/sortBy'
4+ import packageInfo from ' ../../package.json'
5+
46export default {
57 props: {
68 name: String ,
@@ -66,6 +68,9 @@ export default {
6668 < a- button ghost size= ' small' onClick= {this .handleClick } class = ' header-lang-button' key= ' lang-button' >
6769 {isCN ? ' English' : ' 中文' }
6870 < / 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>
6974 < a- menu selectedKeys= {[' components' ]} mode= ' horizontal' class = ' menu-site' id= ' nav' >
7075 < a- menu- item key= ' components' >
7176 {isCN ? ' 组件' : ' Components' }
You can’t perform that action at this time.
0 commit comments