这里有新鲜出炉的微信小程序入门,程序狗速度看过来!
微信小程序(weixinxiaochengxu),简称小程序,缩写 XCX,英文名 mini program,是一种不需要下载安装即可使用的应用,它实现了应用 "触手可及" 的梦想,用户扫一扫或搜一下即可打开应用。
这篇文章主要介绍了微信小程序 icon 组件详细及实例代码的相关资料, 需要的朋友可以参考下
属性:
效果图:
test.wxml
- <!--成功图标-->
- <icon type="success" size="40" />
- <!--安全成功标志图标-->
- <icon type="safe_success" size="40" />
- <!--提示信息图标-->
- <icon type="info" size="40" />
- <!--带圆的信息提示图标-->
- <icon type="info_circle" size="40" />
- <!--不带圆的成功图标-->
- <icon type="success_no_circle" size="40" />
- <!--带圆的成功图标-->
- <icon type="success_circle" size="40" />
- <!--警告图标-->
- <icon type="warn" size="40" />
- <!--带圆的等待图标-->
- <icon type="waiting_circle" size="40" />
- <!--等待图标-->
- <icon type="waiting" size="40" />
- <!--下载图标-->
- <icon type="download" size="40" />
- <!--取消图标-->
- <icon type="cancel" size="40" />
- <!--清除图标-->
- <icon type="clear" size="40" />
- <!--成功图标集合-->
- <View style="margin-top:30px;">
- <icon type="success" size="30" color="green" />
- <icon type="success" size="40" color="blue" />
- <icon type="success" size="50" color="red" />
- </View>
- <!--取消图标集合-->
- <View style="margin-top:30px;">
- <icon type="cancel" size="30" color="green" />
- <icon type="cancel" size="40" color="blue" />
- <icon type="cancel" size="50" color="red" />
- </View>
来源: http://www.phperz.com/article/17/0712/330922.html