微信小程序开发指南

基于ColorUI的组件化页面开发


列表左滑

<h1>列表左滑</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=d9f5c323cfb77cf74251849e85635753&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <pre><code class="language-html"> &lt;view class="cu-list menu-avatar"&gt; &lt;view class="cu-item {{modalName=='move-box-'+ index?'move-cur':''}}" wx:for="{{4}}" wx:key bindtouchstart="ListTouchStart" bindtouchmove="ListTouchMove" bindtouchend="ListTouchEnd" data-target="move-box-{{index}}"&gt; &lt;view class="cu-avatar round lg" style="background-image:url(https://ossweb-img.qq.com/images/lol/web201310/skin/big2100{{index+1}}.jpg);"&gt;&lt;/view&gt; &lt;view class="content"&gt; &lt;view class="text-grey"&gt;文晓港&lt;/view&gt; &lt;view class="text-gray text-sm"&gt; &lt;text class="cuIcon-infofill text-red"&gt;&lt;/text&gt; 消息未送达&lt;/view&gt; &lt;/view&gt; &lt;view class="action"&gt; &lt;view class="text-grey text-xs"&gt;22:20&lt;/view&gt; &lt;view class="cu-tag round bg-grey sm"&gt;5&lt;/view&gt; &lt;/view&gt; &lt;view class="move"&gt; &lt;view class="bg-grey"&gt;置顶&lt;/view&gt; &lt;view class="bg-red"&gt;删除&lt;/view&gt; &lt;/view&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML