fix:文件上传组件样式问题 (#2044)

This commit is contained in:
hsm-lv 2021-06-02 22:34:24 +08:00 committed by GitHub
parent c59e5b3a2a
commit f6ea255eab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1118,6 +1118,8 @@ export default class FileControl extends React.Component<FileProps, FileState> {
description,
hideUploadButton,
className,
btnClassName,
btnUploadClassName,
classnames: cx,
translate: __,
render,
@ -1176,7 +1178,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
<Button
level="default"
disabled={disabled}
className={cx('FileControl-selectBtn')}
className={cx('FileControl-selectBtn', btnClassName)}
onClick={this.handleSelect}
>
<Icon icon="upload" className="icon" />
@ -1296,7 +1298,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
<Button
level="default"
disabled={!hasPending}
className={cx('FileControl-uploadBtn')}
className={cx('FileControl-uploadBtn', btnUploadClassName)}
onClick={this.toggleUpload}
>
{__(uploading ? 'File.pause' : 'File.start')}