mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-05 05:18:34 +08:00
chore: 文件上传默认拖入文件也应该有视觉反馈 (#3779)
This commit is contained in:
parent
357111c3eb
commit
5b58e689d3
@ -222,6 +222,10 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&-dropzone.is-active &-acceptTip {
|
||||||
|
border-color: var(--info);
|
||||||
|
}
|
||||||
|
|
||||||
&-sum {
|
&-sum {
|
||||||
font-size: var(--fontSizeSm);
|
font-size: var(--fontSizeSm);
|
||||||
|
|
||||||
|
@ -1316,7 +1316,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
|||||||
>
|
>
|
||||||
<input disabled={disabled} {...getInputProps()} />
|
<input disabled={disabled} {...getInputProps()} />
|
||||||
|
|
||||||
{drag ? (
|
{drag || isDragActive ? (
|
||||||
<div
|
<div
|
||||||
className={cx('FileControl-acceptTip')}
|
className={cx('FileControl-acceptTip')}
|
||||||
onClick={this.handleSelect}
|
onClick={this.handleSelect}
|
||||||
|
Loading…
Reference in New Issue
Block a user