vue get size of element code example
Example 1: vue js get width of element
this.$refs.refName.clientWidth
Example 2: vue get height of element ref
mounted () {
this.matchHeight()
},
matchHeight () {
let height = this.$refs.infoBox.clientHeight;
}