# 字体图标
组件库内置通用的字体图标库供开发使用。映射编码可参考:
通用字体图标
# 示例
<template>
<div class="wrapper">
<div class="content">
<dof-minibar :backgroundColor="'transparent'" title="1.4 字体图标"></dof-minibar>
<div class="iconBox">
<div class="iconItem">
<dof-iconfont :code="'\u4729'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
<div class="iconItem">
<dof-iconfont :code="'\u4719'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
<div class="iconItem">
<dof-iconfont :code="'\u4758'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
<div class="iconItem">
<dof-iconfont :code="'\u4762'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
<div class="iconItem">
<dof-iconfont :code="'\u4703'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
<div class="iconItem">
<dof-iconfont :code="'\u4705'" :size="50" :color="'#fff'"></dof-iconfont>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.wrapper {
background-color: #151617;
position: relative;
}
.content {
position: fixed;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
}
.iconBox {
padding: 32px;
display: flex;
flex-direction: row;
flex-wrap: wrap;
}
.iconItem {
width: 228px;
height: 228px;
display: flex;
flex-direction: row;
justify-content: center;
align-items: center;
}
</style>
<script>
import { DofMinibar, DofIconfont } from 'dolphin-weex-ui'
export default {
components: { DofMinibar, DofIconfont },
data: () => ({}),
computed: {},
created() {},
methods: {}
}
</script>
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
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
点我扫二维码 查看demo