vue获取元素宽、高、距离左边距离,右,上距离等还有XY坐标轴的方法 this.$refs['通过设置ref获取到的dom元素'].getBoundingClientRect();//示例:获取元素距离顶部的距离thi 元素宽高