ant-design-vue icon indicating copy to clipboard operation
ant-design-vue copied to clipboard

Dynamically increasing or decreasing the form will cause serious performance consumption

Open horsecms opened this issue 3 years ago • 2 comments
trafficstars

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

Version

3.2.6

Environment

win 10 chrome vue 3.2.25

Reproduction link

Edit on CodeSandbox

Steps to reproduce

复现链接中,打开codesandbox控制台,动态增减表单元素,发现会触发所有表单元素内容的重新渲染

What is expected?

增减表单只需要渲染当前元素,而不需要去触发未操作的表单

What is actually happening?

动态增减form表单元素,循环的情况下会将数组中所有数据统一渲染一次


在有些情况下会使用原始:value='' @update:value 的形式,这样就会发现实际上触发了多次的 :value 绑定

horsecms avatar Jun 14 '22 06:06 horsecms

Hello @horsecms. We totally like your proposal/feedback, welcome to send us a Pull Request for it. Please send your Pull Request to proper branch, fill the Pull Request Template here, provide changelog/TypeScript/documentation/test cases if needed and make sure CI passed, we will review it soon. We appreciate your effort in advance and looking forward to your contribution!

你好 @horsecms,我们完全同意你的提议/反馈,欢迎直接在此仓库创建一个 Pull Request 来解决这个问题。请将 Pull Request 发到正确的分支,务必填写 Pull Request 内的预设模板,提供改动所需相应的 changelog、TypeScript 定义、测试用例、文档等,并确保 CI 通过,我们会尽快进行 Review,提前感谢和期待您的贡献。

github-actions[bot] avatar Jun 17 '22 06:06 github-actions[bot]

做不到 另外,vue应该会自动优化了 :value 绑定,不会多次绑定

tangjinzhou avatar Jun 17 '22 06:06 tangjinzhou

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[bot] avatar Aug 17 '22 03:08 github-actions[bot]

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[bot] avatar Aug 25 '23 00:08 github-actions[bot]