mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-15 01:41:20 +08:00
f12000f9c2
* feat: add website * chore: fix
30 lines
514 B
Markdown
30 lines
514 B
Markdown
## Icon
|
|
|
|
Element provides a set of common icons.
|
|
|
|
### Basic usage
|
|
|
|
Just assign the class name to `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">Search</el-button>
|
|
|
|
```
|
|
:::
|
|
|
|
### Icons
|
|
|
|
<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>
|