File tree 3 files changed +16
-10
lines changed
3 files changed +16
-10
lines changed Original file line number Diff line number Diff line change 15
15
<text class =" uni-list-item__content-title" >{{ title }}</text >
16
16
<text v-if =" note" class =" uni-list-item__content-note" >{{ note }}</text >
17
17
</view >
18
- <view v-if = " showBadge || showArrow || showSwitch " class =" uni-list-item__extra" >
18
+ <view class =" uni-list-item__extra" >
19
19
<text v-if =" rightText" class =" uni-list-item__extra-text" >{{rightText}}</text >
20
20
<uni-badge v-if =" showBadge" :type =" badgeType" :text =" badgeText" />
21
21
<switch v-if =" showSwitch" :disabled =" disabled" :checked =" switchChecked" @change =" onSwitchChange" />
22
+ <slot name =" right" ></slot >
22
23
<uni-icons v-if =" showArrow" :size =" 20" class =" uni-icon-wrapper" color =" #bbb" type =" arrowright" />
23
24
</view >
24
25
</view >
Original file line number Diff line number Diff line change 1117
1117
"navigationBarTitleText" : " swiper-list"
1118
1118
}
1119
1119
},
1120
- // #endif
1121
- // #ifdef APP-PLUS
1122
- {
1123
- "path" : " swiper-list-nvue/swiper-list-nvue" ,
1124
- "style" : {
1125
- "navigationBarTitleText" : " swiper-list"
1126
- }
1127
- },
1120
+ // #endif
1121
+ // #ifdef APP-PLUS
1122
+ {
1123
+ "path" : " swiper-list-nvue/swiper-list-nvue" ,
1124
+ "style" : {
1125
+ "navigationBarTitleText" : " swiper-list"
1126
+ }
1127
+ },
1128
1128
// #endif
1129
1129
{
1130
1130
"path" : " scheme/scheme" ,
1190
1190
}
1191
1191
]
1192
1192
}
1193
- }
1193
+ }
Original file line number Diff line number Diff line change 10
10
<uni-section title="菜单列表" type="line"></uni-section>
11
11
<uni-list>
12
12
<uni-list-item title="列表右侧带箭头" rightText="右侧文字" />
13
+ <uni-list-item title="右侧插槽" :showArrow="false">
14
+ <template v-slot:right="">
15
+ <image style="width: 40px;height: 40px;" src="/static/logo.png" mode="widthFix"></image>
16
+ </template>
17
+ </uni-list-item>
13
18
<uni-list-item :show-badge="true" title="列表右侧带箭头 + 角标" badge-text="12" />
14
19
<uni-list-item title="列表左侧带略缩图" thumb="https://img-cdn-qiniu.dcloud.net.cn/new-page/uni.png" />
15
20
<uni-list-item :show-extra-icon="true" :extra-icon="extraIcon1" title="列表左侧带扩展图标" />
You can’t perform that action at this time.
0 commit comments