@@ -30,6 +30,7 @@ import { getSeparatedContent, isValidCount } from '../utils/valueUtil';
30
30
import SelectContext from '../SelectContext' ;
31
31
import type { SelectContextProps } from '../SelectContext' ;
32
32
import Polite from './Polite' ;
33
+ import { SemanticName } from '../Select' ;
33
34
34
35
export type {
35
36
DisplayInfoType ,
@@ -131,6 +132,8 @@ export type BaseSelectPropsWithoutPrivate = Omit<BaseSelectProps, keyof BaseSele
131
132
export interface BaseSelectProps extends BaseSelectPrivateProps , React . AriaAttributes {
132
133
className ?: string ;
133
134
style ?: React . CSSProperties ;
135
+ classNames ?: Partial < Record < SemanticName , string > > ;
136
+ styles ?: Partial < Record < SemanticName , React . CSSProperties > > ;
134
137
title ?: string ;
135
138
showSearch ?: boolean ;
136
139
tagRender ?: ( props : CustomTagProps ) => React . ReactElement ;
@@ -291,6 +294,9 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
291
294
onKeyDown,
292
295
onMouseDown,
293
296
297
+ classNames : selectClassNames ,
298
+ styles,
299
+
294
300
// Rest Props
295
301
...restProps
296
302
} = props ;
@@ -720,9 +726,10 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
720
726
if ( showSuffixIcon ) {
721
727
arrowNode = (
722
728
< TransBtn
723
- className = { classNames ( `${ prefixCls } -arrow` , {
729
+ className = { classNames ( `${ prefixCls } -arrow` , selectClassNames ?. suffix , {
724
730
[ `${ prefixCls } -arrow-loading` ] : loading ,
725
731
} ) }
732
+ style = { styles ?. suffix }
726
733
customizeIcon = { suffixIcon }
727
734
customizeIconProps = { {
728
735
loading,
@@ -812,6 +819,8 @@ const BaseSelect = React.forwardRef<BaseSelectRef, BaseSelectProps>((props, ref)
812
819
) : (
813
820
< Selector
814
821
{ ...props }
822
+ prefixClassName = { selectClassNames ?. prefix }
823
+ prefixStyle = { styles ?. prefix }
815
824
domRef = { selectorDomRef }
816
825
prefixCls = { prefixCls }
817
826
inputElement = { customizeInputElement }
0 commit comments