baidu / amis

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

input-tree 懒加载数据过多时 不会显示 #10497

Open bestraven opened 1 week ago

bestraven commented 1 week ago

描述问题:

input-tree 懒加载数据过多时 不会显示

截图或视频:

image image image

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

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

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

  3. 粘贴有问题的完整 amis schema 代码: { "type": "input-tree", "id": "cat_list", "name": "room_obj", "unfoldedLevel": 1, "searchable": true, "showOutline": true, "initiallyOpen": false, "heightAuto": true, "onlyLeaf": true, "submitOnChange": true, "joinValues": false, "inputClassName": "no-border bg-white h-full", "source": "/fees/xadmin/api/property/asset/asset/tree", "onEvent": { "change": { "actions": [ { "actionType": "setValue", "componentId": "room", "args": { "value": "${room_obj}" } } ] } } }

  4. 操作步骤 JSON 数据 { "label": "XX花园", "value": 10, "children": [ { "label": "62栋", "value": "10-45", "children": [ { "label": "1-东梯", "value": "10-45-82", "id": 82, "icon": "fa fa-stairs", "defer": true, "deferApi": "/room?id=82" } ], "icon": "fa fa-building" } } 第4层数据为懒加载,当数据量比较多时 出现bug,麻烦看截图

github-actions[bot] commented 1 week ago

👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.

Please review the labels and make any necessary changes.