slot="header"中可以使用slot-scope="scope"来获取接口过来的数据嘛,想做动态表头
<el-table-column min-width="132px">
<template slot="header" slot-scope="scope" style="width:200px;">
<span>{{scope.row.name}}</span>
</template>
<template slot-scope="scope">
<el-checkbox v-model="scope.row.check"></el-checkbox>
</template>
</el-table-column>
``
直接这样就可以了,
titleList数组里面是
{label: '', prop: ''}
这样的对象这样就是表头了,template
标签里面在显示相应数据就行