data(){
return {
tableHeader: [
{
label: 'AAA',
minWidth: 80,
prop: 'AAA'
},
{
label: 'BBB',
width: 75,
prop: 'BBB',
template: true
},
{
label: '操作',
width: 150,
prop: 'operate',
template: true,
fixed: 'right'
}
],
}
}
show-overflow-tooltip全局使用
<el-table-column v-for="(item, key) in tableHeader" :key="key" show-overflow-tooltip :item="item"/>
show-overflow-tooltip指定列使用或者指定列不使用
<el-table-column v-for="(item, key) in tableHeader" :key="key" :show-overflow-tooltip="item.prop != 'operate'" :item="item">