元素:
<div ref="demo"></div>
this.$refs.demo.offsetHeight;
带单位的高度:
window.getComputedStyle(this.$refs.init).height;
this.$refs.demo.offsetWidth;