this.$refs.element.style.display = 'none', ts提示类型报错问题

上代码

问题缘由

没有声明this.$refs.detailWrapper的类型, 因此ts会出现错误

解决方法: 以下图

相关文章
相关标签/搜索