Commit 01ed14f5 authored by TtTao's avatar TtTao

新增:Section是否显示右侧箭头

parent a9758b91
......@@ -18,7 +18,7 @@
}" @tap="rightClick">
{{subTitle}}
<view class="u-section__right-info__icon-arrow u-flex">
<u-icon name="arrow-right" size="24" :color="subColor"></u-icon>
<u-icon v-if="arrow" name="arrow-right" size="24" :color="subColor"></u-icon>
</view>
</view>
</view>
......@@ -36,6 +36,7 @@
* @property {String Number} font-size 主标题的字体大小(默认28)
* @property {Boolean} bold 主标题是否加粗(默认true)
* @property {String} color 主标题颜色(默认#303133)
* @property {Boolean} arrow 是否显示右侧箭头(默认true)
* @event {Function} click 组件右侧的内容被点击时触发,用于跳转"更多"
* @example <u-section title="今日热门" :right="false"></u-section>
*/
......@@ -85,6 +86,11 @@
lineColor: {
type: String,
default: ''
},
// 是否显示右侧箭头
arrow: {
type: Boolean,
default: true
}
},
computed: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment