ant-design / ant-design/pro-components

🐛[BUG]BetaSchemaForm layoutType='ModalForm'时, okButtonProps: { danger: true }不生效

Open
#7,775 1 comment 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

https://codesandbox.io/s/fu-ceng-chuang-kou-forked-s8vvq4?file=/App.tsx

![image](https://github.com/ant-design/pro-components/assets/52907799/c3b70a01-5444-4113-aad4-6fb6daac0a5b)

Contributor guide

Open the contributing guide

Research direction

Open the linked CodeSandbox and inspect App.tsx to reproduce the BetaSchemaForm case with layoutType='ModalForm' and okButtonProps: { danger: true }. Trace how these props reach the modal's OK button; done means the danger styling is applied in the reproduced case.

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
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.