@@ -12,6 +12,7 @@
</view>
<view class="details" @click="rightClick(item)">
<slot name="right"></slot>
+ <u-icon v-if="showArrow" name="icon-xian-11" custom-prefix="xd-icon" size="28" color="#888888"></u-icon>
@@ -39,6 +40,11 @@
titleKeys:{
type: String,
default: 'name'
+ },
+ // 是否显示右边箭头
+ showArrow:{
+ type: Boolean,
+ default: true
}
},
data() {
@@ -117,6 +123,8 @@
.details{
color: #007AFF;
padding-right: 20upx;
+ display: flex;
+ align-items: center;
&:active{
color: #D9363E;