<el-table-column label="状态" prop="status" width="180" :render-header="renderHeader"></el-table-column>
renderHeader(h, { column, $index }) {
return [
column.label,
h(
'el-tooltip',
{
props: {
content: (function() {
let label = column.label
switch (label) {
case '状态':
return '该操作仅筛选当页数据'
break
}
})(),
placement: 'top'
}
},
[
h('span', {
class: {
'el-icon-question': true
}
})
]
)
]
},