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

crud组件数据量过大同时cell复杂时,会很卡 #11654

Open
5se7en opened this issue Feb 25, 2025 · 0 comments
Open

crud组件数据量过大同时cell复杂时,会很卡 #11654

5se7en opened this issue Feb 25, 2025 · 0 comments

Comments

@5se7en
Copy link
Contributor

5se7en commented Feb 25, 2025

描述问题:

crud组件数据量过大时同时cell过度复杂时,页面会很卡,能否支持一下table的虚拟列表

截图或视频:

可以的话,尽可能提供截图或视频来补充描述你的问题...

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

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

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

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

{
  "type": "page",
  "body": {
    "type": "crud",
    "syncLocation": false,
    "api": "https://aliyunfc-amis-mock-gmecwxibod.cn-beijing.fcapp.run/api/amis-mock/mock2/sample",
    "columns": [
      {
        "name": "id",
        "label": "ID"
      },
      {
        "name": "engine",
        "label": "Rendering engine"
      },
      {
        "name": "browser",
        "label": "Browser"
      },
      {
        "name": "platform",
        "label": "Platform(s)"
      },
      {
        "name": "version",
        "label": "Engine version"
      },
      {
        "name": "grade",
        "label": "CSS grade",
        "sortable": true
      }
    ]
  }
}
  1. 操作步骤
    amis crud 10条数据切换成100条,列数大概有27列,大概需要6-7s,条数越多,单行cell越复杂。加载的时间越多

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant