did you register the component correctly? For recursive components, make sure to provide the "name"


報錯截圖:

 

 在寫一個折疊組件動畫,引入該組件時,報了個這樣的警告,組件死活引入不到,什么原因呢?

import ball from '../components/ball'
export default {
  component: {
    'run-ball': ball 
  }
},
 
//使用
<run-ball :newslist="newslist"></run-ball>

上面是我的代碼,引入,注冊,使用,沒有問題啊!

經過仔細對比代碼,發現我用的component,應該是components,怪自己不仔細了!


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM