不管是自定以 表头 还是列 都需要template包裹 原因是跟插槽一样
对于表头自定义 要在el-table-column中的template 加上slot='header' 插槽到头部 但是必须加slot-scope="row" 不管用不用都得加
<el-table>
<el-table-column>
自定义头部
<template slot='header' slot-scope="row">
<el-input></el-input>
</template>
自定义列
<template slot-scope='row'>
<span>{{row}}</span>
</template>
</el-table-column>
</el-table>