From d6a8d5da0b2547923909f24cd1010e6287c741dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Sat, 23 Jul 2022 17:39:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(FileInput):=20=E9=87=8D=E6=9E=84?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0=E8=BE=93=E5=85=A5=E6=A1=86=20#845?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-file-input/src/Input.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-file-input/src/Input.tsx b/packages/react-file-input/src/Input.tsx index 0bc4b05daf..5655807507 100644 --- a/packages/react-file-input/src/Input.tsx +++ b/packages/react-file-input/src/Input.tsx @@ -6,7 +6,7 @@ import { FileInputWarp } from './style'; export interface InputUploadProps extends FileInputProps, InputProps {} export default React.forwardRef((props, ref) => { - const { className, dataLabel = 'Browse', ...other } = props; - const cls = [className].filter(Boolean).join(' ').trim(); + const { className, dataLabel = 'Browse', prefixCls = 'w-fileinput', ...other } = props; + const cls = [prefixCls, className].filter(Boolean).join(' ').trim(); return ; });