Pārlūkot izejas kodu

Table: fix table column show-overflow-tooltip bug

Table: fix table column show-overflow-tooltip bug, low version Firefox without innerText, add textContent
Ryan.xu 7 gadi atpakaļ
vecāks
revīzija
292ad8efec
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      packages/table/src/table-body.js

+ 1 - 1
packages/table/src/table-body.js

@@ -343,7 +343,7 @@ export default {
       if (hasClass(cellChild, 'el-tooltip') && cellChild.scrollWidth > cellChild.offsetWidth && this.$refs.tooltip) {
         const tooltip = this.$refs.tooltip;
 
-        this.tooltipContent = cell.innerText;
+        this.tooltipContent = cell.textContent || cell.innerText;
         tooltip.referenceElm = cell;
         tooltip.$refs.popper && (tooltip.$refs.popper.style.display = 'none');
         tooltip.doDestroy();