我在el-dialog 里面使用el-carousel组件,在组件el-carousel里定义ref=”carousel”,在方法里使用this.$refs.carousel.setActiveItem为undefined 解决办法: 参考http://www.codes51.com/itwd/4280575.html