在vue中父元素设置min-heigt,子元素设置height:100%,没法自适应高度///vue中获取动态元素的宽高值
{{closeButton.text}}mounted(){//解决方法this.$nextTick与getBoundingClientRect()this.$nextTick(()=>{this.$refs.line.style.height=`${this.$refs.wrapper.getBoundingClientRect().height}px`})},执行this.$refs.wrap