Home  >  Article  >  WeChat Applet  >  WeChat applet wxapp content component icon detailed introduction

WeChat applet wxapp content component icon detailed introduction

高洛峰
高洛峰Original
2017-02-14 14:23:162653browse

This article mainly introduces the relevant information about the detailed introduction of the wxapp content component icon of the WeChat applet, and attaches a simple example. Friends in need can refer to it

WeChat applet content component

Related articles:

WeChat Mini Program wxapp content component icon

WeChat Mini Program wxapp content component text

WeChat Mini Program wxapp content component progress

icon

icon.


Attribute name Type Default value Description
type String The type of icon, valid values: success, success_no_circle, info, warn, waiting, cancel, download, search, clear
size Number 23 The size of the icon, The unit is px
color Color The color of the icon, the same as the color of css

Example:

<view class="group">
 <block wx:for="{{iconSize}}">
 <icon type="success" size="{{item}}"/>
 </block>
</view>

<view class="group">
 <block wx:for="{{iconType}}">
 <icon type="{{item}}" size="45"/>
 </block>
</view>


<view class="group">
 <block wx:for="{{iconColor}}">
 <icon type="success" size="45" color="{{item}}"/>
 </block>
</view>

Page({
 data: {
 iconSize: [20, 30, 40, 50, 60, 70],
 iconColor: [
 &#39;red&#39;, &#39;orange&#39;, &#39;yellow&#39;, &#39;green&#39;, &#39;rgb(0,255,255)&#39;, &#39;blue&#39;, &#39;purple&#39;
 ],
 iconType: [
 &#39;success&#39;, &#39;info&#39;, &#39;warn&#39;, &#39;waiting&#39;, &#39;safe_success&#39;, &#39;safe_warn&#39;,
 &#39;success_circle&#39;, &#39;success_no_circle&#39;, &#39;waiting_circle&#39;, &#39;circle&#39;, &#39;download&#39;,
 &#39;info_circle&#39;, &#39;cancel&#39;, &#39;search&#39;, &#39;clear&#39;
 ]
 }
})

icon

微信小程序 wxapp内容组件 icon详细介绍

Thank you for reading, I hope it can help you, thank you for your support of this site!

More WeChat applet wxapp content component icon detailed introduction related articles please pay attention to the PHP Chinese website!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn