ant-design / ant-design/pro-components

🧐[问题]ModalForm设置className没有作用到dialog上面,添加到了Form表单上

Open
#7,783 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

使用ModalForm,设置了ClassName,我想将className添加到dialog上面,但是实际情况是添加到了Form表单上,我该如何设置,能够确保正确的添加到dialog上面?

``
![1697351843615](https://github.com/ant-design/pro-components/assets/19159340/109ba322-6e1a-4be1-8b4e-950ed7122686)

但是使用Modal,是可以将className添加到dialog上面的。
``
![image](https://github.com/ant-design/pro-components/assets/19159340/dfe488a7-5c1f-4837-9c78-c8f07044bfae)
如果使用ModalForm怎么设置ClassName,让他添加到dialog上面?

Contributor guide

Open the contributing guide

Research direction

Start by comparing the ModalForm and Modal entry points, focusing on where each component forwards className. Reproduce the reported examples and trace the rendered dialog versus form elements. Done means ModalForm can apply the requested className to the dialog without losing the form behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.