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

API

Icon props

属性说明类型默认值
type图标的名称与样式名称String-
size图标的大小 数字值单位:px,可自定义 remNumber or String-
color图标的颜色 同 css 的 colorString-

Last Updated: