page has a list
<template v-for="(list, index) in lists">
<el-table>
<el-table-column
...
width="200">
</el-table-column>
<!-- -->
<el-table-column
:render-header="renderLastHeader"
width="200">
</el-table-column>
</el-table>
</template>
methods: {
renderLastHeader (h, { column, $index }) {
//
return (
<div>
<el-button type="text" size="small">
<i class="el-icon-plus" onClick={this.addColOption}></i>
</el-button>
<el-button type="text" size="small">
<i class="el-icon-plus" onClick={this.addColOptions}></i>
</el-button>
</div>
)
},
addColOption () {
// list
},
addColOptions () {}
element: the function render-header does not allow arguments. How can index in my list get
in this function?