File tree Expand file tree Collapse file tree 12 files changed +37
-15
lines changed Expand file tree Collapse file tree 12 files changed +37
-15
lines changed Original file line number Diff line number Diff line change 46
46
</script >
47
47
48
48
<style lang="scss" scoped>
49
+ @import " @/uview-ui/libs/css/style.components.scss" ;
49
50
.nav-wrap {
50
51
padding : 30 rpx;
51
52
position : relative ;
58
59
}
59
60
60
61
.nav-title {
61
- display : flex ;
62
+ @include vue-flex ;
63
+ flex-direction : row ;
62
64
align-items : center ;
63
65
}
64
66
67
69
}
68
70
69
71
.nav-title__text {
70
- display : flex ;
72
+ @include vue- flex ;
71
73
color : $u-main-color ;
72
74
font-size : 50 rpx;
73
75
font-weight : bold ;
87
89
.nav-desc {
88
90
margin-top : 20 rpx;
89
91
font-size : 28 rpx;
90
- color : $u-content-color ;
92
+ color : $u-content-color ;
91
93
}
92
94
</style >
Original file line number Diff line number Diff line change 6
6
"versionCode" : " 100" ,
7
7
"transformPx" : false ,
8
8
"app-plus" : {
9
+ // 定义nvue页面的flex布局默认为row排列
10
+ "nvue " : {
11
+ "flex-direction" : " row"
12
+ },
9
13
// APP-VUE分包,可提APP升启动速度,2.7.12开始支持,兼容微信小程序分包方案,默认关闭
10
14
"optimization" : {
11
15
"subPackages" : true
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 65
65
66
66
.u-cell-item-box {
67
67
background-color : #FFFFFF ;
68
+ flex-direction : center ;
68
69
}
69
70
</style >
Original file line number Diff line number Diff line change @@ -211,8 +211,9 @@ export default {
211
211
<style lang="scss" scoped>
212
212
@import " ../../libs/css/style.components.scss" ;
213
213
.u-cell {
214
+ @include vue-flex ;
215
+ align-items : center ;
214
216
position : relative ;
215
- display : flex ;
216
217
box-sizing : border-box ;
217
218
width : 100% ;
218
219
padding : 26 rpx 32 rpx;
Original file line number Diff line number Diff line change 181
181
width : 100% ;
182
182
183
183
& __menu {
184
- display : flex ;
184
+ @include vue- flex ;
185
185
position : relative ;
186
186
z-index : 11 ;
187
187
height : 80 rpx;
188
188
189
189
& __item {
190
190
flex : 1 ;
191
- display : flex ;
191
+ @include vue- flex ;
192
192
justify-content : center ;
193
193
align-items : center ;
194
194
201
201
margin-left : 6 rpx;
202
202
transition : transform .3s ;
203
203
align-items : center ;
204
- display : flex ;
204
+ @include vue- flex ;
205
205
206
206
& --rotate {
207
207
transform : rotate (180deg );
Original file line number Diff line number Diff line change @@ -203,7 +203,10 @@ export default {
203
203
@import ' ../../iconfont.css' ;
204
204
205
205
.u-icon {
206
+ /* #ifndef APP-NVUE */
206
207
display : inline-flex ;
208
+ /* #endif */
209
+ flex-direction : row ;
207
210
align-items : center ;
208
211
209
212
& --left {
@@ -251,8 +254,10 @@ export default {
251
254
}
252
255
253
256
& __img {
257
+ /* #ifndef APP-PLUS */
254
258
height : auto ;
255
259
will-change : transform ;
260
+ /* #endif */
256
261
}
257
262
258
263
& __label {
Original file line number Diff line number Diff line change 230
230
</script >
231
231
232
232
<style scoped lang="scss">
233
+ @import " ../../libs/css/style.components.scss" ;
233
234
.u-fixed-placeholder {
234
235
box-sizing : content-box ;
235
236
}
236
237
237
238
.u-tabbar {
238
239
239
240
& __content {
240
- display : flex ;
241
+ @include vue- flex ;
241
242
align-items : center ;
242
243
position : relative ;
243
244
position : fixed ;
277
278
278
279
& __button {
279
280
position : absolute ;
280
- top : 10 rpx ;
281
+ top : 14 rpx ;
281
282
left : 50% ;
282
283
transform : translateX (-50% );
283
284
}
287
288
font-size : 26 rpx;
288
289
line-height : 28 rpx;
289
290
position : absolute ;
290
- bottom : 12 rpx ;
291
+ bottom : 14 rpx ;
291
292
left : 50% ;
292
293
transform : translateX (-50% );
293
294
}
Original file line number Diff line number Diff line change 45
45
/* #ifndef APP-NVUE */
46
46
display : flex ;
47
47
/* #endif */
48
- flex-direction : row ;
48
+ flex-direction : row !important ;
49
49
align-items : center ;
50
50
}
51
51
@@ -169,4 +169,8 @@ text {
169
169
}
170
170
}
171
171
172
-
172
+ // 重置nvue的默认关于flex的样式
173
+ .u-reset-nvue {
174
+ flex-direction : row ;
175
+ align-items : center ;
176
+ }
You can’t perform that action at this time.
0 commit comments