小程序没有自动找寻组件的功能,需要在全局范围声明全局组件
{
"easycom": {
"autoscan": true,
"custom": {}
},
"pages": [
// ....
],
"globalStyle": {
"navigationBarTextStyle": "black",
"navigationBarTitleText": "uni-app",
"navigationBarBackgroundColor": "#ffffff",
"backgroundColor": "#F8F8F8",
// 在此处声明全局组件位置
"usingComponents": {
"home-tree": "/components/HouseTree/HomeTree"
}
}
}