WeChat applet wxapp content component icon detailed introduction

高洛峰
Release: 2017-02-14 14:23:16
Original
2476 people have browsed it

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 nameTypeDefault value Description
typeString The type of icon, valid values: success, success_no_circle, info, warn, waiting, cancel, download, search, clear
sizeNumber23The size of the icon, The unit is px
colorColor The color of the icon, the same as the color of css

Example:


 
 
 



 
 
 




 
 
 
Copy after login

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

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!

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!