Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ coverage
yarn.lock
es
package-lock.json
pnpm-lock.yaml
tmp/
.history
.storybook
Expand All @@ -41,4 +42,4 @@ tmp/

# dumi
.dumi/tmp
.dumi/tmp-production
.dumi/tmp-production
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@
},
"dependencies": {
"@rc-component/util": "^1.3.0",
"classnames": "^2.2.5"
"clsx": "^2.1.1"
},
"devDependencies": {
"@rc-component/father-plugin": "^2.0.2",
"@rc-component/np": "^1.0.4",
"@testing-library/jest-dom": "^6.1.5",
"@testing-library/react": "^16.2.0",
"@types/jest": "^30.0.0",
"@types/node": "^24.5.2",
"@types/react": "^18.0.0",
"@types/react-dom": "^18.0.0",
"@umijs/fabric": "^4.0.1",
Expand Down
8 changes: 2 additions & 6 deletions src/AjaxUploader.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/* eslint react/no-is-mounted:0,react/sort-comp:0,react/prop-types:0 */
import clsx from 'classnames';
import { clsx } from 'clsx';
import pickAttrs from '@rc-component/util/lib/pickAttrs';
import React, { Component } from 'react';
import attrAccept from './attr-accept';
Expand Down Expand Up @@ -329,11 +329,7 @@ class AjaxUploader extends Component<UploadProps> {
hasControlInside,
...otherProps
} = this.props;
const cls = clsx({
[prefixCls]: true,
[`${prefixCls}-disabled`]: disabled,
[className]: className,
});
const cls = clsx(prefixCls, { [`${prefixCls}-disabled`]: disabled, [className]: className });
// because input don't have directory/webkitdirectory type declaration
const dirProps: any =
directory || folder ? { directory: 'directory', webkitdirectory: 'webkitdirectory' } : {};
Expand Down