Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tree组件严重bug,数据过多,渲染失败 #11721

Open
xiukun opened this issue Mar 6, 2025 · 2 comments
Open

tree组件严重bug,数据过多,渲染失败 #11721

xiukun opened this issue Mar 6, 2025 · 2 comments
Labels
bug Something isn't working need confirm

Comments

@xiukun
Copy link
Contributor

xiukun commented Mar 6, 2025

描述问题:

tree组件严重bug,数据过多,超过100条数据,渲染失败
virtualThreshold默认100,修改为200则正常渲染,超过开启虚拟滚动数的值,就失败了。

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

  1. 你是如何使用 amis 的?
    sdknpm其他...
    sdk,npm

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

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

{
  "type": "input-tree",
  "label": "",
  "name": "tree",
  "id": "u:90df6b3c03d2",
  "multiple": true,
  "enableNodePath": false,
  "hideRoot": true,
  "showIcon": true,
  "initiallyOpen": true,
  "autoCheckChildren": true,
  "className": "",
  "source": {
    "url": "https://apifoxmock.com/m1/3546534-2258203-default/common/tree",
    "method": "get"
  },
  "labelField": "label",
  "valueField": "value",
  "onlyChildren": true,
  "showOutline": true,
  "mode": "normal",
  "heightAuto": true,
  "virtualThreshold": 60
}
  1. 操作步骤
    请简单描述一下复现的操作步骤...
Copy link

github-actions bot commented Mar 6, 2025

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

Please review the labels and make any necessary changes.

@github-actions github-actions bot added the bug Something isn't working label Mar 6, 2025
@AlohaL
Copy link

AlohaL commented Mar 7, 2025

在sdk/rest.js文件中,搜索height:void 0!==o?o:266,修改为height:266就行了

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working need confirm
Projects
None yet
Development

No branches or pull requests

2 participants