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