File tree Expand file tree Collapse file tree 1 file changed +14
-8
lines changed
uview-ui/components/u-section Expand file tree Collapse file tree 1 file changed +14
-8
lines changed Original file line number Diff line number Diff line change 15
15
</view >
16
16
<view class =" u-section__right-info" v-if =" right" :style =" {
17
17
color: subColor
18
- }" @tap =" rightClick" >
18
+ }" @tap =" rightClick" >
19
19
{{subTitle}}
20
20
<view class =" u-section__right-info__icon-arrow u-flex" >
21
- <u-icon name =" arrow-right" size =" 24" :color =" subColor" ></u-icon >
21
+ <u-icon v-if = " arrow " name =" arrow-right" size =" 24" :color =" subColor" ></u-icon >
22
22
</view >
23
23
</view >
24
24
</view >
36
36
* @property {String Number} font -size 主标题的字体大小(默认28)
37
37
* @property {Boolean} bold 主标题是否加粗(默认true)
38
38
* @property {String} color 主标题颜色(默认#303133)
39
+ * @property {Boolean} arrow 是否显示右侧箭头(默认true)
39
40
* @event {Function} click 组件右侧的内容被点击时触发,用于跳转"更多"
40
41
* @example < u- section title= " 今日热门" : right= " false" >< / u- section>
41
42
*/
85
86
lineColor: {
86
87
type: String ,
87
88
default: ' '
89
+ },
90
+ // 是否显示右侧箭头
91
+ arrow: {
92
+ type: Boolean ,
93
+ default: true
88
94
}
89
95
},
90
96
computed: {
108
114
109
115
<style lang="scss" scoped>
110
116
@import " ../../libs/css/style.components.scss" ;
111
-
117
+
112
118
.u-section {
113
119
display : flex ;
114
120
justify-content : space-between ;
115
121
align-items : center ;
116
122
width : 100% ;
117
-
123
+
118
124
& __title {
119
125
position : relative ;
120
126
font-size : 28 rpx;
121
127
padding-left : 20 rpx;
122
128
display : flex ;
123
129
align-items : center ;
124
-
130
+
125
131
& __icon-wrap {
126
132
position : absolute ;
127
133
}
128
-
134
+
129
135
& __text {
130
136
line-height : 1 ;
131
137
}
132
138
}
133
-
139
+
134
140
& __right-info {
135
141
color : $u-tips-color ;
136
142
font-size : 26 rpx;
137
143
display : flex ;
138
144
align-items : center ;
139
-
145
+
140
146
& __icon-arrow {
141
147
margin-left : 6 rpx;
142
148
}
You can’t perform that action at this time.
0 commit comments