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

👑 [需求] ProForm 表单 form 元素的 nativeElement #8471

Closed
zlinggnilz opened this issue Jun 5, 2024 · 0 comments · Fixed by #8632
Closed

👑 [需求] ProForm 表单 form 元素的 nativeElement #8471

zlinggnilz opened this issue Jun 5, 2024 · 0 comments · Fixed by #8632

Comments

@zlinggnilz
Copy link

提问前先看看:

https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md

🔩 所属模块或组件

ProForm

🥰 需求描述

Antd Form 可以通过 ref 获取到 form 元素的 nativeElement。来自于 rc-field-form。
ProForm 没有提供 API 或 ref 可以获取 nativeElement。

⛰ 功能需求适用场景

需要对表单内部做处理时需要。尤其是页面上存在多个表单,submit时只对当前表单做处理。
目前是在 ProForm 外层增加了一个div,通过div来处理。如果可以提供 nativeElement,则不需要额外增加 div。

🧐 解决方案

通过 ref 或其他 API

🚑 其他信息

@zlinggnilz zlinggnilz changed the title 👑 [需求] ProForm 表单元素的 nativeElement 👑 [需求] ProForm 表单 form 元素的 nativeElement Jun 7, 2024
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

Successfully merging a pull request may close this issue.

1 participant