mirror of https://github.com/ElemeFE/element
parent
6db51156b1
commit
4f00d7dea8
|
@ -340,7 +340,7 @@ export default {
|
|||
// 判断是否text-overflow, 如果是就显示tooltip
|
||||
const cellChild = event.target.querySelector('.cell');
|
||||
|
||||
if (hasClass(cellChild, 'el-tooltip') && cellChild.scrollWidth > cellChild.offsetWidth) {
|
||||
if (hasClass(cellChild, 'el-tooltip') && cellChild.scrollWidth > cellChild.offsetWidth && this.$refs.tooltip) {
|
||||
const tooltip = this.$refs.tooltip;
|
||||
|
||||
this.tooltipContent = cell.innerText;
|
||||
|
|
Loading…
Reference in New Issue