File tree Expand file tree Collapse file tree
examples/dist/capsule-bar Expand file tree Collapse file tree Original file line number Diff line number Diff line change 99
1010
1111 <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>
1313 </cover-view>
1414
1515
Original file line number Diff line number Diff line change @@ -61,6 +61,11 @@ Component({
6161 hasPadding : {
6262 type : Boolean ,
6363 value : true
64+ } ,
65+ // 隐藏标题
66+ hiddenTitle : {
67+ type : Boolean ,
68+ value : false
6469 }
6570 } ,
6671
@@ -73,8 +78,8 @@ Component({
7378 capsuleButtonInfo : null
7479 } ,
7580
76- lifetimes :{
77- ready :function ( ) {
81+ lifetimes : {
82+ ready : function ( ) {
7883 this . setData ( {
7984 capsuleButtonInfo : this . getCapsuleButtonInfo ( )
8085 } ) ;
Original file line number Diff line number Diff line change 1515 class="title-bar"
1616 style="height: {{titleBarHeight}}rpx;background-color: {{titleBarColor}};"
1717 >
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>
1919 </cover-view>
2020
2121 <!--胶囊按钮-->
You can’t perform that action at this time.
0 commit comments