vue.js - [Vue 警告]:未知的自定义元素:- 您是否正确注册了组件?对于递归组件,
解决方案
The sub string item
should be capitalized to Item
:
name:'TabBarItem'
and in App.vue :
import TabBarItem from ...
...
components:{
TabBarItem,TabBar
}
because tab-bar-item
expects a component named TabBarItem
, it converts PascalCase
to kebab-case
推荐阅读
- php - Laravel app->make(ClassA) 类和 new ClassA() 有什么区别
- python-3.x - 我无法识别正确的 Xpath 与 chrome-webdriver 使用 python 来自动登录过程
- python - 比较一个 Excel 文件中的两个不同工作表
- asp.net-core - EntityFramework Core 2:使用过滤列表的一对多映射
- ms-word - 如何更改 Word Docx 的页码
- jestjs - 节点模块的 Jest 重置模拟
- bundle - 如何通过在 android 中使用广告侦听器从另一个活动中设置按钮的可见性
- angular - 在构建 Angular 应用程序时传递自定义选项
- titanium - TypeError:Ti.App.getArguments 不是函数
- reactjs - 材料 ui TextField 中的必需属性在提交时不起作用