diff --git a/packages/table/src/table-body.js b/packages/table/src/table-body.js index 73341f2b5..e48c8d2a9 100644 --- a/packages/table/src/table-body.js +++ b/packages/table/src/table-body.js @@ -314,7 +314,7 @@ export default { // 判断是否text-overflow, 如果是就显示tooltip const cellChild = event.target.querySelector('.cell'); - if (!hasClass(cellChild, 'el-tooltip')) { + if (!(hasClass(cellChild, 'el-tooltip') && cellChild.childNodes.length)) { return; } // use range width instead of scrollWidth to determine whether the text is overflowing