Open bestraven opened 1 week ago
input-tree 懒加载数据过多时 不会显示
你是如何使用 amis 的? SDK
amis 版本是什么?请先在最新 beta 版本测试问题是否存在 6.5.0
粘贴有问题的完整 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}" } } ] } } }
amis schema
操作步骤 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,麻烦看截图
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
描述问题:
input-tree 懒加载数据过多时 不会显示
截图或视频:
如何复现(请务必完整填写下面内容):
你是如何使用 amis 的? SDK
amis 版本是什么?请先在最新 beta 版本测试问题是否存在 6.5.0
粘贴有问题的完整
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}" } } ] } } }操作步骤 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,麻烦看截图