Element UI 自定义表格头部、Table-column Scoped Slot
下面是实现代码
在el-table-column标签下加上template标签 template slot=“header” slot-scope=“{ column, $index }” 即可
span标签中是自定义的内容,可以看自己需求更改。
<template slot="header" slot-scope="{ column, $index }">
<span>这里放自定义的内容</span>
</template>