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

[Bug Report] formily/element ArrayTable 稍微渲染一点数据量就卡 #3816

Open
1 task done
liam61 opened this issue May 12, 2023 · 4 comments
Open
1 task done

Comments

@liam61
Copy link

liam61 commented May 12, 2023

  • I have searched the issues of this repository and believe that this is not a duplicate.

Reproduction link

Edit on CodeSandbox

Steps to reproduce

from Link

渲染 50行 * 50列的数据,时间长达 10s 量级,渲染一样的数据 formily/antd 秒加载,而且没有样式错位

渲染过程:

  1. table header 样式异常

  2. table 长时间白屏

  3. table cell 样式不对

  4. table 样式正常

  5. table 可滚动,可交互

Performance

image

What is expected?

  1. 减少计算时长
  2. UI 渲染正常

What is actually happening?

看了下代码,不清楚是 formily 还是 element 的问题,我感觉可能出在响应式绑定上

Package

@formily/element@2.2.20


@janryWang
Copy link
Collaborator

试试react的array table,卡不卡

@liam61
Copy link
Author

liam61 commented May 15, 2023

react antd arraytable 试过了,不卡的,渲染同等数据量,没有出现样式错误

渲染过程:

  1. 渲染 table header 正常
  2. 每列 和 table cell 直接渲染好
  3. table 可滚动,可交互

我不知道是不是 react 分片机制的影响,performance 中及时计算量最大的时候,fps 也是正常的

image

@janryWang
Copy link
Collaborator

可以考虑再深入深入排查一下,提个 PR 解决这个问题,因为 vue 生态都社区共建的,能提一个 PR 把这个问题解决,那对社区的帮助也是非常大的😀

@liam61
Copy link
Author

liam61 commented May 15, 2023

好的,我看看吧,没怎么写过 vue😂

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

No branches or pull requests

2 participants