🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
![](https://img.kancloud.cn/5e/a2/5ea2ab9b90c54c5b6e557c48ab3c9d42_375x269.png) noborder用来控制有没有边框线,一列有几行由col-n 来控制,这是没有边框线的 ``` <view class="cu-list grid col-4" > <view class="cu-item" v-for="(item,index) in 4" :key="index" > <view class="cuIcon-cardboardfill text-red"> <view class="cu-tag badge" > <block>99</block> </view> </view> <text>vr</text> </view> </view> ``` noborder用来控制有没有边框线,一列有几行由col-n 来控制,这是有边框线的 ``` <view class="cu-list grid col-4 no-border" > <view class="cu-item" v-for="(item,index) in 4" :key="index" > <view class="cuIcon-cardboardfill text-red"> <view class="cu-tag " > </view> </view> <text>vr</text> </view> </view> ``` ![](https://img.kancloud.cn/da/90/da904727892a9ea88e2f0f7c2215fbba_382x550.png) 菜单列表 分为3个状态 这个状态是有箭头 并且是卡片形式 arrow是控制有没有箭头的 ``` <view class="cu-bar bg-white solid-bottom margin-top"> <view class="action"> <text class="cuIcon-title text-orange"></text> 菜单列表 </view> </view> <view class="cu-list menu sm-border card-menu margin-top" > <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-circlefill text-grey"></text> <text class="text-grey">图标 + 标题</text> </view> </view> <view class="cu-item arrow" > <view class="content"> <image src="/static/logo.png" class="png" mode="aspectFit"></image> <text class="text-grey">图片 + 标题</text> </view> </view> <view class="cu-item arrow" > <button class="cu-btn content" open-type="contact"> <text class="cuIcon-btn text-olive"></text> <text class="text-grey">Open-type 按钮</text> </button> </view> <view class="cu-item arrow" > <navigator class="content" hover-class="none" url="../list/list" open-type="redirect"> <text class="cuIcon-discoverfill text-orange"></text> <text class="text-grey">Navigator 跳转</text> </navigator> </view> <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-emojiflashfill text-pink"></text> <text class="text-grey">头像组</text> </view> <view class="action"> <view class="cu-avatar-group"> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg);"></view> </view> <text class="text-grey text-sm">4 人</text> </view> </view> <view class="cu-item arrow"> <view class="content"> <text class="cuIcon-btn text-green"></text> <text class="text-grey">按钮</text> </view> <view class="action"> <button class="cu-btn round bg-green shadow"> <text class="cuIcon-upload"></text> 上传</button> </view> </view> <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-tagfill text-red margin-right-xs"></text> <text class="text-grey">标签</text> </view> <view class="action"> <view class="cu-tag round bg-orange light">音乐</view> <view class="cu-tag round bg-olive light">电影</view> <view class="cu-tag round bg-blue light">旅行</view> </view> </view> <view class="cu-item arrow"> <view class="content"> <text class="cuIcon-warn text-green"></text> <text class="text-grey">文本</text> </view> <view class="action"> <text class="text-grey text-sm">小目标还没有实现!</text> </view> </view> <view class="cu-item"> <view class="content padding-tb-sm"> <view> <text class="cuIcon-clothesfill text-blue margin-right-xs"></text> 多行Item</view> <view class="text-gray text-sm"> <text class="cuIcon-infofill margin-right-xs"></text> 小目标还没有实现!</view> </view> <view class="action"> <switch class="switch-sex checked skin"></switch> </view> </view> </view> ``` ![](https://img.kancloud.cn/83/b2/83b2bcc9bda130bfdbece8ff6eb31d24_376x549.png) * 由card-menu 来控制是否是卡片形式。 * 由 sm-border来控制边框是否撑满屏幕,没有边框外边距。 ``` <view class="cu-bar bg-white solid-bottom margin-top"> <view class="action"> <text class="cuIcon-title text-orange"></text> 菜单列表 </view> </view> <view class="cu-list menu sm-border margin-top" > <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-circlefill text-grey"></text> <text class="text-grey">图标 + 标题</text> </view> </view> <view class="cu-item arrow" > <view class="content"> <image src="/static/logo.png" class="png" mode="aspectFit"></image> <text class="text-grey">图片 + 标题</text> </view> </view> <view class="cu-item arrow" > <button class="cu-btn content" open-type="contact"> <text class="cuIcon-btn text-olive"></text> <text class="text-grey">Open-type 按钮</text> </button> </view> <view class="cu-item arrow" > <navigator class="content" hover-class="none" url="../list/list" open-type="redirect"> <text class="cuIcon-discoverfill text-orange"></text> <text class="text-grey">Navigator 跳转</text> </navigator> </view> <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-emojiflashfill text-pink"></text> <text class="text-grey">头像组</text> </view> <view class="action"> <view class="cu-avatar-group"> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81005.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big25002.jpg);"></view> <view class="cu-avatar round sm" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big91012.jpg);"></view> </view> <text class="text-grey text-sm">4 人</text> </view> </view> <view class="cu-item arrow"> <view class="content"> <text class="cuIcon-btn text-green"></text> <text class="text-grey">按钮</text> </view> <view class="action"> <button class="cu-btn round bg-green shadow"> <text class="cuIcon-upload"></text> 上传</button> </view> </view> <view class="cu-item arrow" > <view class="content"> <text class="cuIcon-tagfill text-red margin-right-xs"></text> <text class="text-grey">标签</text> </view> <view class="action"> <view class="cu-tag round bg-orange light">音乐</view> <view class="cu-tag round bg-olive light">电影</view> <view class="cu-tag round bg-blue light">旅行</view> </view> </view> <view class="cu-item arrow"> <view class="content"> <text class="cuIcon-warn text-green"></text> <text class="text-grey">文本</text> </view> <view class="action"> <text class="text-grey text-sm">小目标还没有实现!</text> </view> </view> <view class="cu-item"> <view class="content padding-tb-sm"> <view> <text class="cuIcon-clothesfill text-blue margin-right-xs"></text> 多行Item</view> <view class="text-gray text-sm"> <text class="cuIcon-infofill margin-right-xs"></text> 小目标还没有实现!</view> </view> <view class="action"> <switch class="switch-sex checked skin"></switch> </view> </view> </view> ``` ![](https://img.kancloud.cn/b9/ed/b9edebda59aaf060ea6a2ceba7cea6da_375x423.png) ``` <view class="cu-bar bg-white solid-bottom margin-top"> <view class="action"> <text class="cuIcon-title text-orange "></text> 消息列表 </view> </view> <view class="cu-list menu-avatar"> <view class="cu-item"> <view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big10001.jpg);"></view> <view class="content"> <view class="text-grey">凯尔</view> <view class="text-gray text-sm flex"> <view class="text-cut"> <text class="cuIcon-infofill text-red margin-right-xs"></text> 我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。我已天理为凭,踏入这片荒芜,不再受凡人的枷锁遏制。 </view> </view> </view> <view class="action"> <view class="text-grey text-xs">22:20</view> <view class="cu-tag round bg-grey sm">5</view> </view> </view> <view class="cu-item"> <view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/img/champion/Taric.png);"> <view class="cu-tag badge">99+</view> </view> <view class="content"> <view class="text-grey"> <view class="text-cut">瓦洛兰之盾-塔里克</view> <view class="cu-tag round bg-orange sm">战士</view> </view> <view class="text-gray text-sm flex"> <view class="text-cut"> 塔里克是保护者星灵,用超乎寻常的力量守护着符文之地的生命、仁爱以及万物之美。塔里克由于渎职而被放逐,离开了祖国德玛西亚,前去攀登巨神峰寻找救赎,但他找到的却是来自星界的更高层的召唤。现在的塔里克与古代巨神族的神力相融合,以瓦洛兰之盾的身份,永不疲倦地警惕着阴险狡诈的虚空腐化之力。 </view> </view> </view> <view class="action"> <view class="text-grey text-xs">22:20</view> <view class="cuIcon-notice_forbid_fill text-gray"></view> </view> </view> <view class="cu-item "> <view class="cu-avatar radius lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/img/champion/Morgana.png);"></view> <view class="content"> <view class="text-pink"><view class="text-cut">莫甘娜</view></view> <view class="text-gray text-sm flex"> <view class="text-cut">凯尔,你被自己的光芒变的盲目!</view></view> </view> <view class="action"> <view class="text-grey text-xs">22:20</view> <view class="cu-tag round bg-red sm">5</view> </view> </view> <view class="cu-item grayscale"> <view class="cu-avatar radius lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81007.jpg);"></view> <view class="content"> <view><view class="text-cut">伊泽瑞尔</view> <view class="cu-tag round bg-orange sm">断开连接...</view> </view> <view class="text-gray text-sm flex"> <view class="text-cut"> 等我回来一个打十个</view></view> </view> <view class="action"> <view class="text-grey text-xs">22:20</view> <view class="cu-tag round bg-red sm">5</view> </view> </view> <view class="cu-item cur"> <view class="cu-avatar radius lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big81020.jpg);"> <view class="cu-tag badge"></view> </view> <view class="content"> <view> <view class="text-cut">瓦罗兰大陆-睡衣守护者-新手保护营</view> <view class="cu-tag round bg-orange sm">6人</view> </view> <view class="text-gray text-sm flex"> <view class="text-cut"> 伊泽瑞尔:<text class="cuIcon-locationfill text-orange margin-right-xs"></text> 传送中...</view></view> </view> <view class="action"> <view class="text-grey text-xs">22:20</view> <view class="cuIcon-notice_forbid_fill text-gray"></view> </view> </view> </view> ```