From 442d0557563ef4d5da3796348261f900481e64ef Mon Sep 17 00:00:00 2001 From: xusongfu Date: Fri, 28 Oct 2022 14:28:10 +0800 Subject: [PATCH] feature: Support custom button for the upload Support custom button in the upload form item Change-Id: Ib246c437e91814352d75fa2fc2bde9e7c1be8888 --- ...Support-Custom-Button-For-Upload-c44a4ff8e55c5961.yaml | 4 ++++ src/components/FormItem/Upload/index.jsx | 8 +++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 releasenotes/notes/Support-Custom-Button-For-Upload-c44a4ff8e55c5961.yaml 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 || ( + + )} ); }