微信小程序组件解读和分析:四、icon图标
示例代码的运行效果如下:
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
< view class = "page" > < view class = "page__hd" > < view class = "page__title" >Icons</ view > < view class = "page__desc" >图标</ view > </ view > < view class = "page__bd" > < view class = "icon-box" > < icon type = "success" size = "93" ></ icon > < view class = "icon-box__ctn" > < view class = "icon-box__title" >成功</ view > < view class = "icon-box__desc" >用于表示操作顺利达成</ view > </ view > </ view > < view class = "icon-box" > < icon type = "info" size = "93" ></ icon > < view class = "icon-box__ctn" > < view class = "icon-box__title" >提示</ view > < view class = "icon-box__desc" >用于表示信息提示;也常用于缺乏条件的操作拦截,提示用户所需信息</ view > </ view > </ view > < view class = "icon-box" > < icon type = "warn" size = "93" color = "#C9C9C9" ></ icon > < view class = "icon-box__ctn" > < view class = "icon-box__title" >普通警告</ view > < view class = "icon-box__desc" >用于表示操作后将引起一定后果的情况</ view > </ view > </ view > < view class = "icon-box" > < icon type = "warn" size = "93" ></ icon > < view class = "icon-box__ctn" > < view class = "icon-box__title" >强烈警告</ view > < view class = "icon-box__desc" >用于表示操作后将引起严重的不可挽回的后果的情况</ view > </ view > </ view > < view class = "icon-box" > < icon type = "waiting" size = "93" ></ icon > < view class = "icon-box__ctn" > < view class = "icon-box__title" >等待</ view > < view class = "icon-box__desc" >用于表示等待</ view > </ view > </ view > < view class = "icon_sp_area" > < icon type = "success" size = "23" ></ icon > < icon type = "success_no_circle" size = "23" ></ icon > < icon type = "circle" size = "23" ></ icon > < icon type = "warn" size = "23" color = "#F43530" ></ icon > < icon type = "download" size = "23" ></ icon > < icon type = "info_circle" size = "23" ></ icon > < icon type = "cancel" size = "23" ></ icon > < icon type = "search" size = "20" ></ icon > </ view > </ view > </ view > |
01
02
03
04
05
06
07
08
09
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
icon { margin-right : 13px ; } .page__bd { padding-left : 40px ; padding-right : 40px ; text-align : left ; } .icon-box{ margin-bottom : 25px ; display : flex; align-items: center ; } .icon-box__ctn{ flex-shrink: 100 ; } .icon-box__title{ font-size : 20px ; } .icon-box__desc{ margin-top : 6px ; font-size : 12px ; color : #888888 ; } .icon_sp_area { margin-top : 10px ; text-align : left ; } |
属性
|
类型
|
默认值
|
说明
|
type
|
String
|
icon的类型,有效值:success, success_no_circle, info, warn, waiting, cancel, download, search, clear
|
|
size
|
int
|
23
|
icon的大小,单位px
|
color
|
Color
|
icon的颜色,同css的color
|
微信小程序组件解读和分析:四、icon图标的更多相关文章
- 微信小程序组件解读和分析:六、progress进度条
progress进度条组件说明: 进度条,就是表示事情当前完成到什么地步了,可以让用户视觉上感知事情的执行.progress进度条是微信小程序的组件,和HTML5的进度条progress类似. pro ...
- 微信小程序组件解读和分析:五、text文本
text文本组件说明: text 文本就是微信小程序中显示出来的文本. text文本组件的示例代码运行效果如下: 下面是WXML代码: [XML] 纯文本查看 复制代码 ? 1 2 3 4 <v ...
- 微信小程序组件解读和分析:十四、slider滑动选择器
slider滑动选择器组件说明: 滑动选择器. slider滑动选择器示例代码运行效果如下: 下面是WXML代码: [XML] 纯文本查看 复制代码 ? 01 02 03 04 05 06 07 08 ...
- 微信小程序组件解读和分析:十、input输入框
input输入框组件说明: 本文介绍input 输入框的各种参数及特性. input输入框示例代码运行效果如下: 下面是WXML代码: [XML] 纯文本查看 复制代码 ? 01 02 03 04 0 ...
- 微信小程序组件解读和分析:八、checkbox复选项
checkbox复选项组件说明: checkbox是小程序表单组件中的一个组件,作用是在表单中引导用户做出选择. 要使用checkbox组件,还需要在同组中所有的checkbox标签外使用checkb ...
- 微信小程序组件解读和分析:一、view(视图容器 )
view组件说明: 视图容器 跟HTML代码中的DIV一样,可以包裹其他的组件,也可以被包裹在其他的组件内部.用起来比较自由随意,没有固定的结构. view组件的用法: 示例项目的wxml ...
- 微信小程序组件解读和分析:十五、switch 开关选择器
switch 开关选择器组件说明: switch,开关选择器.只能选择或者不选.这种属于表单控件或者查询条件控件. switch 开关选择器示例代码运行效果如下: 下面是WXML代码: [XML] 纯 ...
- 微信小程序组件解读和分析:十三、radio单选项目
radio单选项目组件说明: radio:单选项目. radio-group: 单项选择器,内部由多个<radio/>组成. radio单选项目示例代码运行效果如下: 下面是WXML代码: ...
- 微信小程序组件解读和分析:十二、picker滚动选择器
picker滚动选择器组件说明: picker: 滚动选择器,现支持三种选择器,通过mode属性来区分, 分别是普通选择器(mode = selector),时间选择器(mode = time),日期 ...
随机推荐
- iOS 自己主动释放手动释放混编
当项目为手动释放时,Build Settings中,Objective-c Automatic Reference Conting 为YES 时,想要手动管理一些文件,在CompileSources中 ...
- 【block第四篇】实现
-------------------------------------------欢迎查看block连载博客[专栏]--------------------------------------[b ...
- 两种常见的UITabBarController+UINavigationController模式分析比较
绝大部分软件都采用了UITabBarController+UINavigationController的设计模式,这是一种很主流很经典的设计方式,而另外一种UINavigationController ...
- ajax请求同步与异步的区别
//同步请求 $.ajax({ type:'post', url:"<c:url value='/device/org/' />"+val, data:{'org ...
- 实现日、周、月排行统计 sql
在如今很多系统中,都需要进行日.周.月排行统计,但是在网上寻找 了一番,发现很多都是相对的周.月排行,即周排行则用当前时间减去7天.这样我个人认为并不恰当.如月排行中,假设今天是4月22日,则从3月2 ...
- nginx-Proxy Cache缓存
1.创建目录 mkdir /export/Data/nginx_proxy_cache mkdir /export/Data/nginx_proxy_temp 2.修改http,打开缓存 文件 ...
- Codeforces Round #362 (Div. 2) D. Puzzles
D. Puzzles time limit per test 1 second memory limit per test 256 megabytes input standard input out ...
- hdoj--1872--稳定排序(水题)
稳定排序 Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Total Su ...
- 【158】◀▶ Linux-Bash学习
鸟哥的 Linux 私房菜 Linux 的 26 个命令 Shell 脚本教程 Linux 命令大全 目录——按文件顺序: echo:显示变量内容 printf:格式化输 ...
- activity工作流表结构分析
版权声明:本文为博主原创文章,未经博主允许不得转载. 1.结构设计 1.1. 逻辑结构设计 Activiti使用到的表都是ACT_开头的. ACT_RE_*: ’RE’表示repository( ...