feature: Support custom button for the upload
Support custom button in the upload form item Change-Id: Ib246c437e91814352d75fa2fc2bde9e7c1be8888
This commit is contained in:
parent
2127390852
commit
442d055756
@ -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