-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Open
Labels
Description
描述问题:
inputTree配置懒加载的行,鼠标hover后按钮不会展示,没配置懒加载的行能显示
截图或视频:
如何复现(请务必完整填写下面内容):
-
你是如何使用 amis 的?
npm -
amis 版本是什么?请先在最新 beta 版本测试问题是否存在
-
粘贴有问题的完整
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
}
]
}
]
}
}
- 操作步骤
配置上面的schema,然后鼠标悬浮到“我下面是懒加载的”,“编辑”“新增”等按钮不会展示。展开懒加载后,鼠标悬浮后按钮才会展示。