1.建议使用动态组件引入icon图标
<el-icon>
<component class="icons" :is="scope.row.icon"></component>
</el-icon>
2.is的内容则为图标
icon:<ChatRound />
icon:'chatround'(此处为后端传过来的数据,可以使用字符串小写形式显示)
3.icon是数据内容
1.建议使用动态组件引入icon图标
<el-icon>
<component class="icons" :is="scope.row.icon"></component>
</el-icon>
2.is的内容则为图标
icon:<ChatRound />
icon:'chatround'(此处为后端传过来的数据,可以使用字符串小写形式显示)
3.icon是数据内容