ant-design / ant-design/pro-components
🐛[BUG] upload组件在只读表单里删除按钮仍然存在,这是否属于bug?
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
提问前先看看:
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md
### 🐛 bug 描述
upload组件在只读表单里仍然可以删除图片,这是否属于bug?
### 📷 复现步骤
官网demo可复现
https://procomponents.ant.design/components/field-set#proformtext-demo-components-other-readonly
### 🏞 期望结果
期望在只读表单里仅保留预览按钮,删除按钮隐藏
### 💻 复现代码
https://procomponents.ant.design/components/field-set#proformtext-demo-components-other-readonly
### © 版本信息
- ProComponents 版本: [e.g. 4.0.0]
- umi 版本
- 浏览器环境
- 开发环境 [e.g. mac OS]
### 🚑 其他信息

Contributor guide
Research direction
Start with the linked ProFormText readonly demo and reproduce the Upload component behavior there. Trace the readonly form's upload rendering and verify that the completed change hides the delete button while retaining the preview button; the issue names no source file or test.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100