Icon 图标
说明
代码示例
>{}
<template>
<div class="icon-group">
<Icon type="icon-star" />
<Icon type="icon-suo" />
</div>
</template>
<style lang="less">
.icon-group i {
margin: 0.25rem;
font-size: 2em;
color: red;
}
</style>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
API
Icon props
| 属性 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 图标的名称与样式名称 | String | - |
| size | 图标的大小 数字值单位:px,可自定义 rem | Number or String | - |
| color | 图标的颜色 同 css 的 color | String | - |
Quick 文档 0.2.3