vue 获取标签元素的api 直接把项目中代码搬过来简单明了 <div class="tab-bottom borderTop-1px" ref="tabItem"> this.$refs.tabItem.style.display = 'flex';