微信小程序开发指南

基于ColorUI的组件化页面开发


头像颜色

<h1>头像颜色</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=7c3cdd7f010e6ee5f099d5afc82c57ca&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <pre><code class="language-html">&lt;view class="padding-sm"&gt; &lt;view class="cu-avatar round lg bg-{{item.name}} margin-xs" wx:for="{{ColorList}}" wx:key&gt; &lt;text class="avatar-text"&gt;{{item.name}}&lt;/text&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML