File tree Expand file tree Collapse file tree 4 files changed +71
-13
lines changed Expand file tree Collapse file tree 4 files changed +71
-13
lines changed Original file line number Diff line number Diff line change 153
153
border-radius : 4px ;
154
154
margin-right : 16px ;
155
155
}
156
- .content {
156
+ .content , .headerContent {
157
157
flex : auto ;
158
158
color : rgba (0 ,0 ,0 ,.45 );
159
159
line-height : 22px ;
160
+
161
+ .link {
162
+ margin-top : 16px ;
163
+ line-height : 24px ;
164
+
165
+ a {
166
+ font-size : 14px ;
167
+ margin-right : 32px ;
168
+ }
169
+ }
160
170
}
161
171
.extra {
162
172
flex : 0 1 auto ;
188
198
flex : 0 1 25% ;
189
199
margin : 0 2% 8px 0 ;
190
200
}
191
- .content {
201
+ .content , .headerContent {
192
202
flex : 0 1 70% ;
203
+
204
+ .link {
205
+ margin-top : 16px ;
206
+ line-height : 24px ;
207
+
208
+ a {
209
+ font-size : 14px ;
210
+ margin-right : 10px ;
211
+ }
212
+ }
193
213
}
194
214
.extra {
195
215
flex : 1 1 auto ;
Original file line number Diff line number Diff line change 56
56
</script >
57
57
58
58
<style lang="scss" scoped>
59
+ .extra-img {
60
+ margin-top : -60px ;
61
+ text-align : center ;
62
+ width : 195px ;
63
+
64
+ img {
65
+ width : 100% ;
66
+ }
67
+ }
68
+
69
+ .mobile {
59
70
.extra-img {
60
- margin-top : -60 px ;
61
- text-align : center ;
62
- width : 195 px ;
71
+ margin-top : 0 ;
72
+ text-align : center ;
73
+ width : 96 px ;
63
74
64
- img {
65
- width : 100% ;
66
- }
75
+ img {
76
+ width : 100% ;
77
+ }
67
78
}
79
+ }
68
80
</style >
Original file line number Diff line number Diff line change 1
1
<template >
2
2
<a-card :bordered =" false" :bodyStyle =" { padding: '16px 0', height: '100%' }" :style =" { height: '100%' }" >
3
- <div class =" account-settings-info-main" >
3
+ <div class =" account-settings-info-main" :class = " device " >
4
4
<div class =" account-settings-info-left" >
5
5
<a-menu
6
- mode =" inline"
7
- :style =" { border: '0' }"
6
+ : mode =" device == 'mobile' ? 'horizontal' : ' inline' "
7
+ :style =" { border: '0', width: device == 'mobile' ? '560px' : 'auto' }"
8
8
:defaultSelectedKeys =" defaultSelectedKeys"
9
9
type =" inner"
10
10
@openChange =" onOpenChange"
48
48
49
49
<script >
50
50
import PageLayout from ' @/components/layout/PageLayout'
51
- import RouteView from " @/components/layout/RouteView" ;
51
+ import RouteView from " @/components/layout/RouteView"
52
+ import { mapState } from ' vuex'
52
53
53
54
export default {
54
55
components: {
57
58
},
58
59
data () {
59
60
return {
61
+ // horizontal inline
62
+ mode: ' inline' ,
63
+
60
64
openKeys: [],
61
65
defaultSelectedKeys: [],
62
66
81
85
pageTitle: ' '
82
86
}
83
87
},
88
+ computed: {
89
+ ... mapState ({
90
+ device : state => state .app .device ,
91
+ })
92
+ },
84
93
created () {
85
94
this .updateMenu ()
86
95
},
103
112
height : 100% ;
104
113
overflow : auto ;
105
114
115
+ & .mobile {
116
+ display : block ;
117
+
118
+ .account-settings-info-left {
119
+ border-right : unset ;
120
+ border-bottom : 1px solid #e8e8e8 ;
121
+ width : 100% ;
122
+ height : 48px ;
123
+ overflow-x : hidden ;
124
+ overflow-y : auto ;
125
+ }
126
+ .account-settings-info-right {
127
+ padding : 20px 40px ;
128
+ }
129
+ }
130
+
106
131
.account-settings-info-left {
107
132
border-right : 1px solid #e8e8e8 ;
108
133
width : 224px ;
124
149
}
125
150
}
126
151
}
152
+
127
153
</style >
Original file line number Diff line number Diff line change 2
2
<div >
3
3
<div class =" search-head" >
4
4
<div class =" search-input" >
5
- <a-input-search style =" width : 522px " placeholder =" 请输入..." size =" large" enterButton =" 搜索" />
5
+ <a-input-search style =" width : 80 % ; max-width : 522px ; " placeholder =" 请输入..." size =" large" enterButton =" 搜索" />
6
6
</div >
7
7
<div style =" padding : 0 24px " >
8
8
<a-tabs :tabBarStyle =" {margin: 0}" @change =" callback" :activeKey =" activeKey" >
You can’t perform that action at this time.
0 commit comments