show-overflow-tooltip
true:當(dāng)內(nèi)容過長被隱藏時(shí)顯示 tooltip
false:默認(rèn)值
<el-table-column label="文件路徑" prop="filePath" align="center" width="220" show-overflow-tooltip=true>
</el-table-column>
也可以結(jié)合el-popover組件自己來實(shí)現(xiàn)
<el-table-column label="文件路徑" prop="filePath" align="center" width="220">
<template slot-scope="scope">
<el-popover placement="top-start" title="文件路徑" width="250" trigger="hover" >
<div>{{scope.row.filePath}}</div>
<span slot="reference">{{ scope.row.filePath.substr(0,30)+'...' }}</span>
</el-popover>
</template>
</el-table-column>