mirror of
https://github.com/ElemeFE/element.git
synced 2025-12-19 12:04:02 +08:00
622 B
622 B
<script>
var iconList = require('examples/icon.json');
export default {
data() {
return {
icons: iconList
};
}
}
</script>
Icon
Element provides a set of common icons.
Basic usage
Just assign the class name to el-icon-iconName.
:::demo
<i class="el-icon-edit"></i>
<i class="el-icon-share"></i>
<i class="el-icon-delete"></i>
<el-button type="primary" icon="search">Search</el-button>
:::
Icons
- {{'el-icon-' + name}}