renderheader(h, { column, $index }) {
return [
column.label,
h(
'el-tooltip',
{
props: {
content: '',
placement: 'top',
effect:'light'
}
},
[h('span', { class: { 'icon-jiaobiao': true }})]
)
]
},
<el-table-column prop="DELAYDAYS" label="字段" width="220" label-class-name="labelClass"
show-overflow-tooltip align="right" :render-header="renderheader">
<template slot-scope="scope">
<div v-if="scope.row.INVSTATE != '1'" :style="{ color: scope.row.DELAYDAYS <= 30 ? '#606266 !important' : 'red' }">
{{ scope.row.DELAYDAYS }}
</div>
</template>
</el-table-column>