diff --git a/releasenotes/notes/Support-Custom-Button-For-Upload-c44a4ff8e55c5961.yaml b/releasenotes/notes/Support-Custom-Button-For-Upload-c44a4ff8e55c5961.yaml new file mode 100644 index 00000000..2bb5c46d --- /dev/null +++ b/releasenotes/notes/Support-Custom-Button-For-Upload-c44a4ff8e55c5961.yaml @@ -0,0 +1,4 @@ +--- +features: + - | + Support custom button in the upload form item diff --git a/src/components/FormItem/Upload/index.jsx b/src/components/FormItem/Upload/index.jsx index ed081b02..7ae6359f 100644 --- a/src/components/FormItem/Upload/index.jsx +++ b/src/components/FormItem/Upload/index.jsx @@ -92,9 +92,11 @@ export default class index extends Component { }; return ( - + {this.props.children || ( + + )} ); }