mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
parent
26f09bb38a
commit
884e16e6e1
@ -47,6 +47,8 @@
|
||||
// }
|
||||
|
||||
&-description {
|
||||
margin-top: var(--inputFile-base-des-margin);
|
||||
line-height: 20px;
|
||||
color: var(--inputFile-base-des-color);
|
||||
font-size: var(--inputFile-base-des-fontSize);
|
||||
font-weight: var(--inputFile-base-des-fontWeight);
|
||||
|
@ -1447,7 +1447,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
) : (
|
||||
<>
|
||||
<Button
|
||||
level="default"
|
||||
level="enhance"
|
||||
disabled={disabled}
|
||||
className={cx('FileControl-selectBtn', btnClassName, {
|
||||
'is-disabled':
|
||||
@ -1471,18 +1471,15 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
</Button>
|
||||
</>
|
||||
)}
|
||||
{description
|
||||
? render('desc', description, {
|
||||
className: cx(
|
||||
'FileControl-description',
|
||||
descriptionClassName
|
||||
)
|
||||
})
|
||||
: null}
|
||||
</div>
|
||||
)}
|
||||
</DropZone>
|
||||
|
||||
{description
|
||||
? render('desc', description, {
|
||||
className: cx('FileControl-description', descriptionClassName)
|
||||
})
|
||||
: null}
|
||||
{maxSize && !drag ? (
|
||||
<div className={cx('FileControl-sizeTip')}>
|
||||
{__('File.sizeLimit', {maxSize: prettyBytes(maxSize, 1024)})}
|
||||
|
Loading…
Reference in New Issue
Block a user