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

dauxcl2d  于 9个月前  发布在  其他
关注(0)|答案(1)|浏览(127)
描述问题:

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

截图或视频:

如何复现(请务必完整填写下面内容):
  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,麻烦看截图
nkkqxpd9

nkkqxpd91#

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

Please review the labels and make any necessary changes.

相关问题