# bz-icon 图标
# 基本用法
字体图标
扫码预览
用BoosHi扫码或PC端点击
<template>
<view class="demo-ui-page">
<view class="demo-content">
<view class="demo-title">bz-icon 图标</view>
<demo-cell>
<bz-grid minmax="100px" spacingX="4px" spacingY="4px">
<view
class="demo-icon-item"
v-for="(item, index) in params.list"
:key="index"
>
<bz-icon
:size="params.size"
:color="params.color"
:type="item"
></bz-icon>
<view class="demo-icon-text"
><text selectable>{{ item }}</text></view
>
</view>
</bz-grid>
</demo-cell>
</view>
</view>
</template>
<script>
export default {
data() {
return {
params: {
size: "30px",
color: "#5D68E8",
list: [
"user",
"more-fill",
"success-fill",
"info-fill",
"warning-fill",
"close-fill",
"delete-fill",
"caret",
"fabulous-fill",
"fabulous",
"star-fill",
"star",
"question",
"import",
"print",
"toward-down",
"toward-up",
"expand",
"collapse",
"board",
"setting",
"safe",
"eye",
"eye-close",
"global",
"home-fill",
"home",
"menu",
"scan",
"filter",
"search",
"message",
"share",
"data",
"location",
"classify",
"pc",
"videotape",
"gold",
"history",
"wallet",
"time",
"ball",
"file",
"email",
"message",
"dustbin",
"left",
"right",
"sound",
"circle",
"refresh",
"emoji",
"return",
"comment",
"more",
"image",
"add",
"close",
"link",
"download",
"at",
"change",
"edit",
"docs",
"relation",
"more-single",
],
},
};
},
};
</script>
<style lang="scss" scoped>
.demo-content {
padding: 12px 0;
font-size: 14px;
}
.demo-icon-item {
display: flex;
height: 80px;
flex-direction: column;
justify-content: center;
align-items: center;
color: #666;
text-align: center;
border: 1px solid #ddd;
padding: 10px;
}
.demo-icon-text {
margin-top: 5px;
user-select: text;
}
</style>
1
2
3
4
5
6
7
8
9
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
2
3
4
5
6
7
8
9
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
展开 刷新 关闭
# 属性说明
属性名 | 类型 | 默认值 | 必填 | 说明 |
---|---|---|---|---|
color | String | - | - | 图标颜色 |
type | String | - | 是 | 图标类型值 |
size | String | 20px | - | 图标大小 |