chore: 文件上传默认拖入文件也应该有视觉反馈 (#3779)

This commit is contained in:
liaoxuezhi 2022-03-16 18:07:35 +08:00 committed by GitHub
parent 357111c3eb
commit 5b58e689d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 1 deletions

View File

@ -222,6 +222,10 @@
} }
} }
&-dropzone.is-active &-acceptTip {
border-color: var(--info);
}
&-sum { &-sum {
font-size: var(--fontSizeSm); font-size: var(--fontSizeSm);

View File

@ -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}