ant-design / ant-design/pro-components
🧐[问题]ProFormUploadButton被再封装后,设置了required规则,如何在删除或上传取消时单独校验
Open
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 1.4k
- Avg merge
- 10h 44m
- Merged PRs (30d)
- 3
Description
{/* 封装部分 */}
export const AliyunOSSUpload = (props) => {
.........
return (
{/* }>Click to Upload */}
);
};
===========================
{/* 调用部分 */}
Contributor guide
Research direction
Start with the AliyunOSSUpload wrapper and its ProFormUploadButton usage, then inspect how upload cancellation and file deletion interact with the required rule in the form component. Confirm the current validation behavior and determine what should happen after each action; done means the required message is checked independently when no file remains.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100