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

港控/mmm° 2022-12-31 07:27 330阅读 0赞

报错截图:

20201229091529317.png

在写一个折叠组件动画,引入该组件时,报了个这样的警告,组件死活引入不到,什么原因呢?

  1. import ball from '../components/ball'
  2. export default {
  3. component: {
  4. 'run-ball': ball
  5. }
  6. },
  7. //使用
  8. <run-ball :newslist="newslist"></run-ball>

上面是我的代码,引入,注册,使用,没有问题啊!

经过仔细对比代码,发现我用的component,应该是components,怪自己不仔细了!

发表评论

表情:
评论列表 (有 0 条评论,330人围观)

还没有评论,来说两句吧...

相关阅读