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'
}
],
}
}
utilisation globale de show-overflow-tooltip
<el-table-column v-for="(item, key) in tableHeader" :key="key" show-overflow-tooltip :item="item"/>
show-overflow-tooltip spécifie la colonne à utiliser ou la colonne spécifiée à ne pas utiliser
<el-table-column v-for="(item, key) in tableHeader" :key="key" :show-overflow-tooltip="item.prop != 'operate'" :item="item">