前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >did you register the component correctly? For recursive components, make sure to provide the "name"

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

作者头像
honey缘木鱼
发布2019-02-21 16:56:45
6.2K0
发布2019-02-21 16:56:45
举报
文章被收录于专栏:娱乐心理测试娱乐心理测试

报错截图:

image

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

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

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

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

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

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2019.01.07 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档