Merge "feature: Support custom button for the upload"
This commit is contained in:
commit
b971ad860f
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Support custom button in the upload form item
|
@ -92,9 +92,11 @@ export default class index extends Component {
|
||||
};
|
||||
return (
|
||||
<Upload {...props}>
|
||||
<Button>
|
||||
<UploadOutlined /> {t('Click to Upload')}
|
||||
</Button>
|
||||
{this.props.children || (
|
||||
<Button>
|
||||
<UploadOutlined /> {t('Click to Upload')}
|
||||
</Button>
|
||||
)}
|
||||
</Upload>
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user