(vue)动态获取容器宽高
data() 里:
width: document.querySelector(".bottom-left").clientWidth,
height: document.querySelector(".bottom-left").clientHeight,
方法里:
const conWidth = document.querySelector('#mountNode').clientWidth + 'px'
const conHeight = document.querySelector('#mountNode').clientHeight + 'px'