Thanks to visit codestin.com
Credit goes to github.com

Skip to content

inputTree配置懒加载的行,鼠标hover后按钮不会展示 #10873

@thinkingc

Description

@thinkingc

描述问题:

inputTree配置懒加载的行,鼠标hover后按钮不会展示,没配置懒加载的行能显示

截图或视频:

image

image

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

  1. 你是如何使用 amis 的?
    npm

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

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

{
  "type": "page",
  "body": {
    "type": "form",
    "api": "https://aliyunfc-amis-mock-gmecwxibod.cn-beijing.fcapp.run/api/amis-mock/mock2/form/saveForm",
    "body": [
      {
        "type": "input-tree",
        "name": "tree",
        "label": "Tree",
        "creatable": true,
        "removable": true,
        "editable": true,
        "deferApi": "https://aliyunfc-amis-mock-gmecwxibod.cn-beijing.fcapp.run/api/amis-mock/mock2/form/deferOptions?label=${label}&waitSeconds=2",
        "options": [
          {
            "label": "Folder A",
            "value": 1,
            "collapsed": true,
            "children": [
              {
                "label": "file A",
                "value": 2
              },
              {
                "label": "file B",
                "value": 3
              }
            ]
          },
          {
            "label": "这下面是懒加载的",
            "value": 4,
            "defer": true
          },
          {
            "label": "file D",
            "value": 5
          }
        ]
      }
    ]
  }
}
  1. 操作步骤
    配置上面的schema,然后鼠标悬浮到“我下面是懒加载的”,“编辑”“新增”等按钮不会展示。展开懒加载后,鼠标悬浮后按钮才会展示。

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions