2
2
3
3
<div id =" userLayout" :class =" ['user-layout-wrapper', isMobile && 'mobile']" >
4
4
<div class =" container" >
5
- <div : class =" wrpCls " >
6
- <select-lang : class =" prefixCls " />
5
+ <div class =" user-layout-lang " >
6
+ <select-lang class =" select-lang-trigger " />
7
7
</div >
8
- <div class =" top" >
9
- <div class =" header" >
10
- <a href =" /" >
11
- <img src =" ~@/assets/logo.svg" class =" logo" alt =" logo" >
12
- <span class =" title" >Ant Design</span >
13
- </a >
8
+ <div class =" user-layout-content" >
9
+ <div class =" top" >
10
+ <div class =" header" >
11
+ <a href =" /" >
12
+ <img src =" ~@/assets/logo.svg" class =" logo" alt =" logo" >
13
+ <span class =" title" >Ant Design</span >
14
+ </a >
15
+ </div >
16
+ <div class =" desc" >
17
+ {{ $t('layouts.userLayout.title') }}
18
+ </div >
14
19
</div >
15
- <div class =" desc" >
16
- {{ $t('layouts.userLayout.title') }}
17
- </div >
18
- </div >
19
-
20
- <router-view />
21
20
22
- <div class =" footer" >
23
- <div class =" links" >
24
- <a href =" _self" >帮助</a >
25
- <a href =" _self" >隐私</a >
26
- <a href =" _self" >条款</a >
27
- </div >
28
- <div class =" copyright" >
29
- Copyright © ; 2018 vueComponent
21
+ <router-view />
22
+
23
+ <div class =" footer" >
24
+ <div class =" links" >
25
+ <a href =" _self" >帮助</a >
26
+ <a href =" _self" >隐私</a >
27
+ <a href =" _self" >条款</a >
28
+ </div >
29
+ <div class =" copyright" >
30
+ Copyright © ; 2018 vueComponent
31
+ </div >
30
32
</div >
31
33
</div >
32
34
</div >
@@ -42,20 +44,6 @@ export default {
42
44
components: {
43
45
SelectLang
44
46
},
45
- props: {
46
- prefixCls: {
47
- type: String ,
48
- default: ' ant-pro-global-header-index-action'
49
- }
50
- },
51
- computed: {
52
- wrpCls () {
53
- return {
54
- ' ant-pro-global-header-index-right' : true ,
55
- [` ant-pro-global-header-index-${ (this .isMobile || ! this .topMenu ) ? ' light' : this .theme } ` ]: true
56
- }
57
- }
58
- },
59
47
mixins: [deviceMixin],
60
48
mounted () {
61
49
document .body .classList .add (' userLayout' )
@@ -68,28 +56,45 @@ export default {
68
56
69
57
<style lang="less" scoped>
70
58
#userLayout .user-layout-wrapper {
71
- height : 100% ;
59
+ height : 100% ;
72
60
73
- & .mobile {
74
- .container {
75
- .main {
76
- max-width : 368px ;
77
- width : 98% ;
78
- }
61
+ & .mobile {
62
+ .container {
63
+ .main {
64
+ max-width : 368px ;
65
+ width : 98% ;
79
66
}
80
67
}
68
+ }
81
69
82
- .container {
70
+ .container {
71
+ width : 100% ;
72
+ min-height : 100% ;
73
+ background : #f0f2f5 url(~@/assets/background.svg ) no-repeat 50% ;
74
+ background-size : 100% ;
75
+ // padding: 50px 0 84px;
76
+ position : relative ;
77
+
78
+ .user-layout-lang {
83
79
width : 100% ;
84
- min-height : 100% ;
85
- background : #f0f2f5 url(~@/assets/background.svg ) no-repeat 50% ;
86
- background-size : 100% ;
87
- padding : 50px 0 84px ;
88
- position : relative ;
89
-
90
- a {
91
- text-decoration : none ;
80
+ height : 40px ;
81
+ line-height : 44px ;
82
+ text-align : right ;
83
+
84
+ .select-lang-trigger {
85
+ cursor : pointer ;
86
+ padding : 12px ;
87
+ margin-right : 24px ;
88
+ display : inline-flex ;
89
+ align-items : center ;
90
+ justify-content : center ;
91
+ font-size : 18px ;
92
+ vertical-align : middle ;
92
93
}
94
+ }
95
+
96
+ .user-layout-content {
97
+ padding : 32px 0 24px ;
93
98
94
99
.top {
95
100
text-align : center ;
@@ -163,5 +168,11 @@ export default {
163
168
}
164
169
}
165
170
}
171
+
172
+ a {
173
+ text-decoration : none ;
174
+ }
175
+
166
176
}
177
+ }
167
178
</style >
0 commit comments