Merge "feature: Support custom button for the upload"

This commit is contained in:
Zuul
2022-10-28 10:07:49 +00:00
committed by Gerrit Code Review
2 changed files with 9 additions and 3 deletions

View File

@@ -0,0 +1,4 @@
---
features:
- |
Support custom button in the upload form item

View File

@@ -92,9 +92,11 @@ export default class index extends Component {
};
return (
<Upload {...props}>
{this.props.children || (
<Button>
<UploadOutlined /> {t('Click to Upload')}
</Button>
)}
</Upload>
);
}