|
@@ -328,7 +328,7 @@ export default {
|
|
if ((rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) && this.$refs.tooltip) {
|
|
if ((rangeWidth + padding > cellChild.offsetWidth || cellChild.scrollWidth > cellChild.offsetWidth) && this.$refs.tooltip) {
|
|
const tooltip = this.$refs.tooltip;
|
|
const tooltip = this.$refs.tooltip;
|
|
// TODO 会引起整个 Table 的重新渲染,需要优化
|
|
// TODO 会引起整个 Table 的重新渲染,需要优化
|
|
- this.tooltipContent = cell.textContent || cell.innerText;
|
|
|
|
|
|
+ this.tooltipContent = cell.innerText || cell.textContent;
|
|
tooltip.referenceElm = cell;
|
|
tooltip.referenceElm = cell;
|
|
tooltip.$refs.popper && (tooltip.$refs.popper.style.display = 'none');
|
|
tooltip.$refs.popper && (tooltip.$refs.popper.style.display = 'none');
|
|
tooltip.doDestroy();
|
|
tooltip.doDestroy();
|