使用 slot="header" 属性 自定义表头
<template>
<el-table
:data="tableData"
style="width: 100%"
>
<el-table-column
type="index"
width="50"
lable="序号"
>
</el-table-column>
<el-table-column
prop="name"
label="姓名"
>
<template slot="header" slot-scope="scope">
<span class="mgrinr1">姓名</span>
<i class="el-icon-question"></i>
</template>
<template slot-scope="scope">
<span>张三</span>
</template>
</el-table-column>
</el-table>
</template>