meixioacomponent 0.2.71 → 0.2.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -452,20 +452,21 @@ export default {
|
|
|
452
452
|
cellMouseEnter(row, column, cell, event) {
|
|
453
453
|
let content = row[`${column.property}`];
|
|
454
454
|
this.tooltip.show = false;
|
|
455
|
-
if (typeof content ==
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
455
|
+
if (typeof content == "number" || typeof content == "string") {
|
|
456
|
+
const { tooltip } = this;
|
|
457
|
+
let style = event.target;
|
|
458
|
+
let position = style.getBoundingClientRect();
|
|
459
|
+
const { top, left } = position;
|
|
460
|
+
const { clientWidth, clientHeight } = style;
|
|
461
|
+
tooltip.width = clientWidth;
|
|
462
|
+
tooltip.height = clientHeight;
|
|
463
|
+
tooltip.top = top;
|
|
464
|
+
tooltip.left = left;
|
|
465
|
+
tooltip.content = content;
|
|
466
|
+
this.$nextTick(() => {
|
|
467
|
+
tooltip.show = true;
|
|
468
|
+
});
|
|
469
|
+
}
|
|
469
470
|
},
|
|
470
471
|
|
|
471
472
|
cellMouseLeave() {
|