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

feat(form): inherit props types from rc-field-form #6399

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nnmax
Copy link

@nnmax nnmax commented Oct 16, 2023

Before:

图片

After:

图片

closed #6398

@1587315093
Copy link
Contributor

貌似原开发者不直接取 rc-field-from 的原因是有些功能属性不一样或是没开放,慢慢pick 出一些属性功能开放

@nnmax
Copy link
Author

nnmax commented Nov 22, 2023

貌似原开发者不直接取 rc-field-from 的原因是有些功能属性不一样或是没开放,慢慢pick 出一些属性功能开放

但是在 JavaScript 层面并没有对其他 props 进行拦截。

https://github.com/ant-design/ant-design-mobile/blob/master/src/components/form/form.tsx#L125C21-L125C21

@nnmax
Copy link
Author

nnmax commented Nov 22, 2023

有些 HTMLElement 原生属性并没有得到 TypeScript 类型提示,比如 id

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 this pull request may close these issues.

继承来自 rc-field-form 的更多的 props 类型
2 participants