File tree Expand file tree Collapse file tree 3 files changed +47
-6
lines changed
Expand file tree Collapse file tree 3 files changed +47
-6
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vue-ui-docs" ,
33 "version" : " 1.0.0" ,
4- "private" : true ,
54 "scripts" : {
65 "serve" : " vue-cli-service serve" ,
76 "build" : " vue-cli-service build" ,
3231 "sass-loader" : " ^8.0.2" ,
3332 "vue-template-compiler" : " ^2.6.11"
3433 },
34+ "keywords" : [
35+ " vue" ,
36+ " components" ,
37+ " markdown"
38+ ],
39+ "repository" : {
40+ "type" : " git" ,
41+ "url" : " https://github.com/kitorv/vue-ui-docs.git"
42+ },
43+ "homepage" : " https://kitorv.github.io/vue-ui-docs/" ,
44+ "bugs" : {
45+ "url" : " https://github.com/kitorv/vue-ui-docs/issues"
46+ },
3547 "eslintConfig" : {
3648 "root" : true ,
3749 "env" : {
Original file line number Diff line number Diff line change 77 <div class =" home--header-title" >
88 VUE-UI-DOCS
99 </div >
10+ <div class =" home--header-github" @click =" handleGitbubClick" >
11+ <img src =" ../images/github.svg" />
12+ </div >
1013 </div >
1114 <div class =" home--left" >
1215 <div class =" home--left-title" >开发指南</div >
1316 <router-link class =" home--left-link" to =" /" >快速上手</router-link >
1417 <router-link class =" home--left-link" to =" /changelog"
15- >更新日志</ router-link
16- >
18+ >更新日志
19+ </ router-link >
1720 <div class =" home--left-title" >组件</div >
18- <router-link class =" home--left-link" to =" /component/button"
19- > Button 按钮</ router-link
20- >
21+ <router-link class =" home--left-link" to =" /component/button" >
22+ Button 按钮
23+ </ router-link >
2124 </div >
2225 <div class =" home--content" >
2326 <div class =" home--content-page" >
3336export default {
3437 data () {
3538 return {};
39+ },
40+ methods: {
41+ handleGitbubClick () {
42+ window .open (" https://github.com/kitorv/vue-ui-docs" );
43+ }
3644 }
3745};
3846 </script >
@@ -127,6 +135,26 @@ export default {
127135 }
128136}
129137
138+ .home--header-github {
139+ position : absolute ;
140+ height : 40px ;
141+ width : 40px ;
142+ right : 20px ;
143+ top : 10px ;
144+ color : #444444 ;
145+ transition : all 0.3s ;
146+ cursor : pointer ;
147+
148+ & :hover {
149+ transform : scale (1.2 );
150+ }
151+
152+ > img {
153+ height : 100% ;
154+ width : 100% ;
155+ }
156+ }
157+
130158.router-link-exact-active {
131159 color : #41a259 !important ;
132160 background-color : #eeffde !important ;
You can’t perform that action at this time.
0 commit comments