crazyones110
2/3/2020 - 9:49 AM

Vue中异步子元素高度等于父元素高度

this.$nextTick(() => {
  this.$refs.line.style.height = getComputedStyle(this.$refs.wrapper).height
})