|
@@ -340,7 +340,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') && cellChild.scrollWidth > cellChild.offsetWidth) {
|
|
|
|
|
|
+ if (hasClass(cellChild, 'el-tooltip') && cellChild.scrollWidth > cellChild.offsetWidth && this.$refs.tooltip) {
|
|
const tooltip = this.$refs.tooltip;
|
|
const tooltip = this.$refs.tooltip;
|
|
|
|
|
|
this.tooltipContent = cell.innerText;
|
|
this.tooltipContent = cell.innerText;
|