微信小程序开发指南

基于ColorUI的组件化页面开发


标签颜色

<h1>标签颜色</h1> <ul> <li>样式图例</li> </ul> <p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=acbf64b5b3a03a29cdb840a917bc6fdf&amp;file=file.png" alt="" /></p> <ul> <li>示例代码</li> </ul> <pre><code class="language-html">&lt;view class="padding-sm flex flex-wrap"&gt; &lt;view class="padding-xs" wx:for="{{ColorList}}" wx:key wx:if="{{item.name!='gray'}}"&gt; &lt;view class="cu-tag bg-{{item.name}}"&gt;{{item.title}}&lt;/view&gt; &lt;/view&gt; &lt;view class="padding-xs" wx:for="{{ColorList}}" wx:key wx:if="{{item.name!='gray' &amp;&amp; item.name!='black' &amp;&amp; item.name!='white'}}"&gt; &lt;view class="cu-tag bg-{{item.name}} light"&gt;{{item.title}}&lt;/view&gt; &lt;/view&gt; &lt;/view&gt;</code></pre>

页面列表

ITEM_HTML