Skip to content

校验表单过多时(页面存在大量input和select),页面会很卡 #966

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

Closed
1 task
QifanChan opened this issue Jul 15, 2019 · 16 comments
Closed
1 task

Comments

@QifanChan
Copy link

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

What problem does this feature solve?

希望在最后提交时再做校验,而不是当时

What does the proposed API look like?

检验时机那个api,仿佛没有起上作用,依旧很卡

@yi-huan
Copy link

yi-huan commented Jul 31, 2019

我也发现表单多会卡, 输入等1-2秒才填进去

@QifanChan
Copy link
Author

QifanChan commented Jul 31, 2019 via email

@yi-huan
Copy link

yi-huan commented Jul 31, 2019

暂时不知道,找找看有没有方案。

@yi-huan
Copy link

yi-huan commented Aug 1, 2019

Reproduction link

Edit on CodeSandbox

弄了个例子,但是自己项目的表单数量比这个少,但是输入还比这个还卡点,不知道为何,删删减减 发现少了控件就不卡,也没什么特别的代码.

例子里不知道为什么后面改的代码都没了。已经保存过了。我没在本地写。丢失了一大片😂

@QifanChan
Copy link
Author

QifanChan commented Aug 1, 2019 via email

@yi-huan
Copy link

yi-huan commented Aug 1, 2019

我看了我本地的,不过不是我写的。
输入框卡顿,下拉的输入不卡,应该是某些绑定事件问题

@tangjinzhou
Copy link
Member

拆分组件,不管是 react 还是 vue,都柔和在一个组件里,都会有性能问题
你只要输入,就会导致Form所在的组件重新 render

@yi-huan
Copy link

yi-huan commented Aug 1, 2019

目前看了官方的例子,好像只有靠自己自行处理表单数据,而不使用Form.create的,不过不要这个自己处理,那么多表单控件 好麻烦。

@QifanChan
Copy link
Author

QifanChan commented Aug 1, 2019 via email

@tangjinzhou
Copy link
Member

ref #1049

@Tairy
Copy link

Tairy commented Aug 2, 2019

求问,这个问题有解决办法么,我们也遇到了,给元素加了 v-model 属性就变得特别卡。

@QifanChan
Copy link
Author

QifanChan commented Aug 2, 2019 via email

@zkwolf
Copy link
Member

zkwolf commented Aug 4, 2019

有试过把Form放到单独组件里去吗,我试了一下,效果好很多

@nqsjd178559344
Copy link

我也遇见了这个问题....

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

@github-actions
Copy link

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

6 participants