1 parent 96a9218 commit 2e09d97Copy full SHA for 2e09d97
1 file changed
pages/API/subnvue/subnvue/nav.nvue
@@ -1,8 +1,8 @@
1
<template>
2
<div class="wrapper">
3
<div class="status-bar"></div>
4
- <div class="nav" @click="back">
5
- <text class="back"></text>
+ <div class="nav">
+ <text class="back" @click="back"></text>
6
<text class="title">nvue 渐变色标题栏</text>
7
</div>
8
@@ -30,6 +30,7 @@
30
31
<style>
32
.wrapper {
33
+ flex: 1;
34
background-image: linear-gradient(to right, #a80077, #66ff00);
35
flex-direction: column;
36
}
@@ -38,14 +39,14 @@
38
39
40
.nav {
41
position: relative;
- height: 88px;
42
+ height: 44px;
43
flex: 0;
44
justify-content: center;
45
align-items: center;
46
- .title {
47
- font-size: 36upx;
48
- }
+ .title {
+ font-size: 36upx;
49
+ }
50
.back {
51
position: absolute;
52
left: 3px;
0 commit comments