File tree Expand file tree Collapse file tree 4 files changed +10
-5
lines changed
examples/dist/capsule-bar Expand file tree Collapse file tree 4 files changed +10
-5
lines changed Original file line number Diff line number Diff line change 9
9
10
10
11
11
<cover-view class="title-bar" style="height: {{titleBarHeight}}rpx;background-color: {{titleBarColor}};">
12
- <cover-view class="title l-title-class" style="color: {{titleColor}};">{{title}}</cover-view>
12
+ <cover-view wx:if="{{!hiddenTitle}}" class="title l-title-class" style="color: {{titleColor}};">{{title}}</cover-view>
13
13
</cover-view>
14
14
15
15
Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ Component({
61
61
hasPadding : {
62
62
type : Boolean ,
63
63
value : true
64
+ } ,
65
+ // 隐藏标题
66
+ hiddenTitle : {
67
+ type : Boolean ,
68
+ value : false
64
69
}
65
70
} ,
66
71
@@ -73,8 +78,8 @@ Component({
73
78
capsuleButtonInfo : null
74
79
} ,
75
80
76
- lifetimes :{
77
- ready :function ( ) {
81
+ lifetimes : {
82
+ ready : function ( ) {
78
83
this . setData ( {
79
84
capsuleButtonInfo : this . getCapsuleButtonInfo ( )
80
85
} ) ;
Original file line number Diff line number Diff line change 15
15
class="title-bar"
16
16
style="height: {{titleBarHeight}}rpx;background-color: {{titleBarColor}};"
17
17
>
18
- <cover-view class="title l-title-class" style="color: {{titleColor}};">{{title}}</cover-view>
18
+ <cover-view wx:if="{{!hiddenTitle}}" class="title l-title-class" style="color: {{titleColor}};">{{title}}</cover-view>
19
19
</cover-view>
20
20
21
21
<!--胶囊按钮-->
You can’t perform that action at this time.
0 commit comments