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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "meixioacomponent",
3
- "version": "0.2.71",
3
+ "version": "0.2.72",
4
4
  "private": false,
5
5
  "author": "YuRi",
6
6
  "main": "lib/meixioacomponent.umd.min.js",
@@ -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 == Boolean || typeof content == Object || !content)
456
- return;
457
- const { tooltip } = this;
458
- let style = event.target;
459
- let position = style.getBoundingClientRect();
460
- tooltip.width = style.clientWidth;
461
- tooltip.height = style.clientHeight;
462
- tooltip.top = position.top;
463
- tooltip.left = position.left;
464
- tooltip.content = content;
465
-
466
- this.$nextTick(() => {
467
- tooltip.show = true;
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() {