2017-05-18 04:28:45 +00:00
|
|
|
## Icon
|
2016-11-10 13:46:55 +00:00
|
|
|
|
|
|
|
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>
|
2017-10-19 04:11:47 +00:00
|
|
|
<el-button type="primary" icon="el-icon-search">Search</el-button>
|
2016-11-10 13:46:55 +00:00
|
|
|
|
|
|
|
```
|
|
|
|
:::
|
|
|
|
|
|
|
|
### Icons
|
|
|
|
|
|
|
|
<ul class="icon-list">
|
2019-04-25 04:19:38 +00:00
|
|
|
<li v-for="name in $icon" :key="name">
|
2016-11-10 13:46:55 +00:00
|
|
|
<span>
|
|
|
|
<i :class="'el-icon-' + name"></i>
|
2017-12-12 04:45:09 +00:00
|
|
|
<span class="icon-name">{{'el-icon-' + name}}</span>
|
2016-11-10 13:46:55 +00:00
|
|
|
</span>
|
|
|
|
</li>
|
2017-08-10 10:07:40 +00:00
|
|
|
</ul>
|