Skip to content

Commit d6a8d5d

Browse files
committed
refactor(FileInput): 重构上传输入框 uiwjs#845
1 parent 692cb3e commit d6a8d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/react-file-input/src/Input.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { FileInputWarp } from './style';
66
export interface InputUploadProps extends FileInputProps, InputProps {}
77

88
export default React.forwardRef<HTMLInputElement, InputUploadProps>((props, ref) => {
9-
const { className, dataLabel = 'Browse', ...other } = props;
10-
const cls = [className].filter(Boolean).join(' ').trim();
9+
const { className, dataLabel = 'Browse', prefixCls = 'w-fileinput', ...other } = props;
10+
const cls = [prefixCls, className].filter(Boolean).join(' ').trim();
1111
return <FileInputWarp ref={ref} data-label={dataLabel} className={cls} {...other} type="file" />;
1212
});

0 commit comments

Comments
 (0)