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

2019-02-21 16:56:45 浏览数 (13)

报错截图:

image

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

代码语言:javascript复制
import ball from '../components/ball'
export default {
  component: {
    'run-ball': ball 
  }
},

//使用
<run-ball :newslist="newslist"></run-ball>

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

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

0 人点赞