baidu / amis

前端低代码框架,通过 JSON 配置就能生成各种页面。
https://baidu.github.io/amis/
Apache License 2.0
16.47k stars 2.4k forks source link

app多页应用类型组件配置后重叠 #10504

Open river1017 opened 1 week ago

river1017 commented 1 week ago

描述问题:

当在编辑页配置了app类型的组件后,点击会导致页面重叠

截图或视频:

配置数据如下: { "type": "app", "id": "u:3a9f5b75cd84", "brandName": "应用开发", "pages": [ { "label": "Home", "url": "/", "redirect": "/hook" }, { "children": [ { "label": "概览", "url": "setting", "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=setting" }, { "label": "函数配置", "url": "config", "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionConfig" }, { "label": "函数商店", "url": "shop", "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionShop" }, { "label": "函数列表", "url": "hook", "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionList" } ] } ] } 代码编辑页: image 编辑页点击后效果: image

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的? 使用官方的demo进行测试,拉取最新的代码到本地后配置也存在问题

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在

  3. 粘贴有问题的完整 amis schema 代码:

    {
    "type": "app",
    "id": "u:3a9f5b75cd84",
    "brandName": "应用开发",
    "pages": [
    {
      "label": "Home",
      "url": "/",
      "redirect": "/hook"
    },
    {
      "children": [
        {
          "label": "概览",
          "url": "setting",
          "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=setting"
        },
        {
          "label": "函数配置",
          "url": "config",
          "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionConfig"
        },
        {
          "label": "函数商店",
          "url": "shop",
          "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionShop"
        },
        {
          "label": "函数列表",
          "url": "hook",
          "schemaApi": "get:/api/smartpage/amis/v1/page/schema?websitePath=lichen&path=functionList"
        }
      ]
    }
    ]
    }
  4. 操作步骤 正常配置页面,不过是配置的app类型的页面数据