mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 21:08:55 +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 {
|
||||
font-size: var(--fontSizeSm);
|
||||
|
||||
|
@ -1316,7 +1316,7 @@ export default class FileControl extends React.Component<FileProps, FileState> {
|
||||
>
|
||||
<input disabled={disabled} {...getInputProps()} />
|
||||
|
||||
{drag ? (
|
||||
{drag || isDragActive ? (
|
||||
<div
|
||||
className={cx('FileControl-acceptTip')}
|
||||
onClick={this.handleSelect}
|
||||
|
Loading…
Reference in New Issue
Block a user