ant-design-vue
ant-design-vue copied to clipboard
Dynamically increasing or decreasing the form will cause serious performance consumption
- [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
Steps to reproduce
复现链接中,打开codesandbox控制台,动态增减表单元素,发现会触发所有表单元素内容的重新渲染
What is expected?
增减表单只需要渲染当前元素,而不需要去触发未操作的表单
What is actually happening?
动态增减form表单元素,循环的情况下会将数组中所有数据统一渲染一次
在有些情况下会使用原始:value='' @update:value 的形式,这样就会发现实际上触发了多次的 :value 绑定
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,提前感谢和期待您的贡献。
做不到 另外,vue应该会自动优化了 :value 绑定,不会多次绑定
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
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.