mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
29 lines
553 B
Markdown
29 lines
553 B
Markdown
|
## Icon 图标
|
||
|
|
||
|
提供了一套常用的图标集合。
|
||
|
|
||
|
### 使用方法
|
||
|
|
||
|
直接通过设置类名为 `el-icon-iconName` 来使用即可。例如:
|
||
|
|
||
|
:::demo
|
||
|
```html
|
||
|
<i class="el-icon-edit"></i>
|
||
|
<i class="el-icon-share"></i>
|
||
|
<i class="el-icon-delete"></i>
|
||
|
<el-button type="primary" icon="el-icon-search">搜索</el-button>
|
||
|
|
||
|
```
|
||
|
:::
|
||
|
|
||
|
### 图标集合
|
||
|
|
||
|
<ul class="icon-list">
|
||
|
<li v-for="name in $icon" :key="name">
|
||
|
<span>
|
||
|
<i :class="'el-icon-' + name"></i>
|
||
|
<span class="icon-name">{{'el-icon-' + name}}</span>
|
||
|
</span>
|
||
|
</li>
|
||
|
</ul>
|