mirror of https://github.com/ElemeFE/element
Table: not display tooltip when cell is empty (#13152)
* Update table-body.js * Update table-body.jspull/13207/head
parent
2c32ff99b1
commit
87baaad394
|
@ -314,7 +314,7 @@ export default {
|
||||||
|
|
||||||
// 判断是否text-overflow, 如果是就显示tooltip
|
// 判断是否text-overflow, 如果是就显示tooltip
|
||||||
const cellChild = event.target.querySelector('.cell');
|
const cellChild = event.target.querySelector('.cell');
|
||||||
if (!hasClass(cellChild, 'el-tooltip')) {
|
if (!(hasClass(cellChild, 'el-tooltip') && cellChild.childNodes.length)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
// use range width instead of scrollWidth to determine whether the text is overflowing
|
// use range width instead of scrollWidth to determine whether the text is overflowing
|
||||||
|
|
Loading…
Reference in New Issue