摘要: this.$refs.tooltip.getBoundingClientRect() => 用于获取某个元素相对于视窗的位置集合。集合中有top, right, bottom, left等属性。 鼠标跟随:e.clientX - this.$refs.tooltip.getBoundingClientRect().width/2 e.clientY - this.$refs.tooltip.get... 阅读全文