按钮颜色
<h1>按钮颜色</h1>
<ul>
<li>样式图例</li>
</ul>
<ol>
<li>无阴影</li>
</ol>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1cc5d194cc8858e8fc8d29b437a4e7d9&file=file.png" alt="" /></p>
<ol>
<li>有阴影</li>
</ol>
<p><img src="https://www.showdoc.com.cn/server/api/attachment/visitFile?sign=1be5c965da2f3e3c2751aaebfbd579a0&file=file.png" alt="" /></p>
<ul>
<li>示例代码</li>
</ul>
<p>注:通过shadow来控制有无阴影</p>
<pre><code class="language-html"><view class="grid col-5 padding-sm">
<view class="margin-tb-sm text-center" wx:for="{{ColorList}}" wx:key>
<button class="cu-btn round bg-{{item.name}} {{shadow?'shadow':''}}">{{item.title}}</button>
</view>
</view></code></pre>