ant-design / ant-design/pro-components

🐛[BUG]上传按钮ProFormUploadButton现在不支持自定义上传提示的内容

Open
#7,535 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

### 🐛 bug 描述

上传按钮`ProFormUploadButton`现在不支持自定义上传提示的内容

### 📷 复现步骤

https://codesandbox.io/s/shang-chuan-biao-dan-forked-jwf3tg?file=/App.tsx
### 🏞 期望结果

期望`ProFormUploadButton`能像`Upload`一样接受自定义的ReactNode

现在有`title`可以修改“点击上传”的文字,但是不满足需求
### 💻 复现代码

[](https://codesandbox.io/s/shang-chuan-biao-dan-forked-jwf3tg?file=/App.tsx)

### © 版本信息

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

### 🚑 其他信息

image

Contributor guide

Open the contributing guide

Research direction

Start with the linked CodeSandbox reproduction in App.tsx and then locate the ProFormUploadButton implementation in this repository. Compare its supported upload prompt content with Upload's custom ReactNode behavior. Done means the reproduction accepts custom prompt content while the existing title behavior remains supported.

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
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.