ant-design / ant-design/pro-components

🐛[BUG] ProCard className Style 给到二给去了,应该放在顶级。给到二级导到样式根本没法调

Open
#7,912 1 comment 0 reactions 0 assignees View on GitHub
👏🏻 Welcome pr card
Dominant language
TypeScript
Stars
4.8k
Forks
1.4k
Avg merge
10h 44m
Merged PRs (30d)
3

Description

### 🐛 bug 描述

ProCard className Style 给到二给去了,应该放在顶级。给到二级导到样式根本没法调
image
image

image
## 上图无法控制的边框

### 📷 复现步骤

```

```
生成的结果
```




```
然而在上级 border-inline-end border-block-end 无法调整,导至界面上有边框线。加上了bordered也无法去掉。
### 🏞 期望结果

希望把css class 向上移动一级放在父级,而不是子级

### 💻 复现代码

### © 版本信息

- ProComponents 版本: [2.6.40]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]

### 🚑 其他信息

Contributor guide

Open the contributing guide

Research direction

Start at the ProCard component implementation and reproduce the issue with the provided split="horizontal" example. Trace where className is applied relative to the parent and child elements; done means the class is on the intended parent and its border styles can be controlled as expected.

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.