单独写了组件,结果运行没有问题,真机测试一直出现找不到组件的问题。

组件的json文件里面,一定要加 “component”: true,

{
  "navigationBarTitleText": "导航栏组件",
  "component": true,
  "usingComponents": {}
}

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-02
  • 2021-10-02
  • 2022-12-23
猜你喜欢
  • 2021-08-01
  • 2021-07-21
  • 2021-09-15
  • 2021-06-24
  • 2022-12-23
  • 2021-11-22
  • 2021-11-22
相关资源
相似解决方案