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

继承来自 rc-field-form 的更多的 props 类型 #6398

Open
nnmax opened this issue Oct 16, 2023 · 0 comments · May be fixed by #6399
Open

继承来自 rc-field-form 的更多的 props 类型 #6398

nnmax opened this issue Oct 16, 2023 · 0 comments · May be fixed by #6399
Labels

Comments

@nnmax
Copy link

nnmax commented Oct 16, 2023

Version of antd-mobile

5.32.4

What is this feature about?

rc-field-form 导出了一个 RcFormProps 类型,此类型继承了 React.FormHTMLAttributes。因此它包含有原生 form 元素所支持的所有类型。

这不是一个破坏性改动,只需要小小的修改该行代码就能实现。比如完全继承 RcFormProps 或者使用 Omit<RcFormProps, 'someProps'> 语法来排除某些字段即可。

@nnmax nnmax added the feature label Oct 16, 2023
@nnmax nnmax linked a pull request Oct 16, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant