this.$refs.element.style.display = 'none', ts提示類型報錯問題

上代碼

問題緣由

沒有聲明this.$refs.detailWrapper的類型, 因此ts會出現錯誤

解決方法: 以下圖

相關文章
相關標籤/搜索