baidu / amis

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

error throws when add a tabs component #11142

Open cainiaokan opened 2 weeks ago

cainiaokan commented 2 weeks ago

描述问题:

error throws when add a tabs component

Uncaught (in promise) TypeError: Cannot read properties of undefined (reading 'type')

截图或视频:

image

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

  1. 你是如何使用 amis 的? amis-editor

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

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

    {
    "type": "tabs",
    "tabs": [
    {
      "title": "选项卡1",
      "body": [],
      "id": "u:092f1ccaa2bc"
    },
    {
      "title": "选项卡2",
      "body": []
    }
    ],
    "mountOnEnter": true
    }
  4. 操作步骤 add a tabs component in an empty page

cainiaokan commented 2 weeks ago

this bug also occurs in amis 6.7.0 but not 6.6.0 hence we can presume it was introduced in 6.7.0

yuhonyon commented 21 hours ago

我也遇到了, 但是我是6.8.0没问题, 升级6.9.0后报错了 image

也可能之前6.8.0也有 只是6.9.0加了报错浮层才注意到 image