图片适配解决方案

  1. css
  2. .image{
  3. width: 100%;
  4. height: 100%;
  5. position: fixed;
  6. top: 0;
  7. left: 0;
  8. object-fit: cover;
  9. }

引用自定义组件

  • 首先将自己的组件的json文件中配置 "component":true
  • 然后在需要使用组件的地方设置 ```json “usingComponents”: { “Nav” : “../../Components/Nav/Nav” }

`` 如果需要全局配置,则需要在app.json` 中设置