File tree Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Expand file tree Collapse file tree 3 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -28,6 +28,7 @@ coverage
2828yarn.lock
2929es
3030package-lock.json
31+ pnpm-lock.yaml
3132tmp /
3233.history
3334.storybook
4142
4243# dumi
4344.dumi /tmp
44- .dumi /tmp-production
45+ .dumi /tmp-production
Original file line number Diff line number Diff line change 3838 },
3939 "dependencies" : {
4040 "@rc-component/util" : " ^1.3.0" ,
41- "classnames " : " ^2.2.5 "
41+ "clsx " : " ^2.1.1 "
4242 },
4343 "devDependencies" : {
4444 "@rc-component/father-plugin" : " ^2.0.2" ,
4545 "@rc-component/np" : " ^1.0.4" ,
4646 "@testing-library/jest-dom" : " ^6.1.5" ,
4747 "@testing-library/react" : " ^16.2.0" ,
4848 "@types/jest" : " ^30.0.0" ,
49+ "@types/node" : " ^24.5.2" ,
4950 "@types/react" : " ^18.0.0" ,
5051 "@types/react-dom" : " ^18.0.0" ,
5152 "@umijs/fabric" : " ^4.0.1" ,
Original file line number Diff line number Diff line change 11/* eslint react/no-is-mounted:0,react/sort-comp:0,react/prop-types:0 */
2- import clsx from 'classnames ' ;
2+ import { clsx } from 'clsx ' ;
33import pickAttrs from '@rc-component/util/lib/pickAttrs' ;
44import React , { Component } from 'react' ;
55import attrAccept from './attr-accept' ;
@@ -329,11 +329,7 @@ class AjaxUploader extends Component<UploadProps> {
329329 hasControlInside,
330330 ...otherProps
331331 } = this . props ;
332- const cls = clsx ( {
333- [ prefixCls ] : true ,
334- [ `${ prefixCls } -disabled` ] : disabled ,
335- [ className ] : className ,
336- } ) ;
332+ const cls = clsx ( prefixCls , { [ `${ prefixCls } -disabled` ] : disabled , [ className ] : className } ) ;
337333 // because input don't have directory/webkitdirectory type declaration
338334 const dirProps : any =
339335 directory || folder ? { directory : 'directory' , webkitdirectory : 'webkitdirectory' } : { } ;
You can’t perform that action at this time.
0 commit comments